Skip to content

Commit

Permalink
fixes #16
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelaye committed Feb 16, 2022
1 parent 8d3ef50 commit 5e6c93f
Show file tree
Hide file tree
Showing 5 changed files with 141 additions and 71 deletions.
123 changes: 81 additions & 42 deletions docs/hirise.html

Large diffs are not rendered by default.

63 changes: 39 additions & 24 deletions notebooks/04_hirise.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion planetarypy/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.21.3"
__version__ = "0.21.4"
22 changes: 19 additions & 3 deletions planetarypy/hirise.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# AUTOGENERATED! DO NOT EDIT! File to edit: notebooks/04_hirise.ipynb (unless otherwise specified).

__all__ = ['storage_root', 'baseurl', 'rdrindex', 'OBSID', 'ProductPathfinder', 'RGB_NOMAP', 'RGB_NOMAPCollection',
'SOURCE_PRODUCT']
'SOURCE_PRODUCT', 'RED_PRODUCT', 'IR_PRODUCT', 'BG_PRODUCT']

# Cell

Expand Down Expand Up @@ -336,8 +336,6 @@ def plot_da(self, xslice=None, yslice=None):
)

# Cell


class RGB_NOMAPCollection:
"""Class to deal with a set of RGB_NOMAP products."""

Expand Down Expand Up @@ -491,3 +489,21 @@ def download(self, overwrite=False):
except HTTPError as e:
logger.error(e.__str__())



# Cell
class RED_PRODUCT(SOURCE_PRODUCT):
"This exists to support creating a RED_PRODUCT_ID from parts of a SOURCE_PRODUCT id."
def __init__(self, obsid, ccdno, channel, **kwargs):
self.ccds = self.red_ccds
super().__init__(f'{obsid}_RED{ccdno}_{channel}', **kwargs)

# Cell
class IR_PRODUCT(SOURCE_PRODUCT):
def __init__(self, obsid, ccdno, channel):
self.ccds = self.ir_ccds
super().__init__(f'{obsid}_IR{ccdno}_{channel}', **kwargs)
class BG_PRODUCT(SOURCE_PRODUCT):
def __init__(self, obsid, ccdno, channel):
self.ccds = self.ir_ccds
super().__init__(f'{obsid}_BG{ccdno}_{channel}', **kwargs)
2 changes: 1 addition & 1 deletion settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ keywords = planetary science, data analysis
author = Michael Aye
author_email = [email protected]
copyright = K.-Michael Aye
version = 0.21.3
version = 0.21.4
min_python = 3.7
audience = Developers
language = English
Expand Down

0 comments on commit 5e6c93f

Please sign in to comment.