New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature new olcil2 datasets #438
Feature new olcil2 datasets #438
Conversation
satpy/readers/nc_olci.py
Outdated
class BitFlags(object): | ||
"""Manipulate flags stored bitwise. | ||
""" | ||
flag_list = ['INVALID',u'WATER',u'LAND',u'CLOUD',u'SNOW_ICE', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E231 missing whitespace after ','
satpy/readers/nc_olci.py
Outdated
"""Manipulate flags stored bitwise. | ||
""" | ||
flag_list = ['INVALID',u'WATER',u'LAND',u'CLOUD',u'SNOW_ICE', | ||
u'INLAND_WATER',u'TIDAL',u'COSMETIC',u'SUSPECT', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E231 missing whitespace after ','
satpy/readers/nc_olci.py
Outdated
""" | ||
flag_list = ['INVALID',u'WATER',u'LAND',u'CLOUD',u'SNOW_ICE', | ||
u'INLAND_WATER',u'TIDAL',u'COSMETIC',u'SUSPECT', | ||
u'HISOLZEN',u'SATURATED',u'MEGLINT',u'HIGHGLINT', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E231 missing whitespace after ','
satpy/readers/nc_olci.py
Outdated
flag_list = ['INVALID',u'WATER',u'LAND',u'CLOUD',u'SNOW_ICE', | ||
u'INLAND_WATER',u'TIDAL',u'COSMETIC',u'SUSPECT', | ||
u'HISOLZEN',u'SATURATED',u'MEGLINT',u'HIGHGLINT', | ||
u'WHITECAPS',u'ADJAC',u'WV_FAIL',u'PAR_FAIL', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E231 missing whitespace after ','
satpy/readers/nc_olci.py
Outdated
u'INLAND_WATER',u'TIDAL',u'COSMETIC',u'SUSPECT', | ||
u'HISOLZEN',u'SATURATED',u'MEGLINT',u'HIGHGLINT', | ||
u'WHITECAPS',u'ADJAC',u'WV_FAIL',u'PAR_FAIL', | ||
u'AC_FAIL',u'OC4ME_FAIL',u'OCNN_FAIL', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E231 missing whitespace after ','
satpy/readers/nc_olci.py
Outdated
def getbitmask(self, wqsf, items=[]): | ||
""" """ | ||
items = ["INVALID","SNOW_ICE","INLAND_WATER","SUSPECT", | ||
"AC_FAIL","CLOUD","HISOLZEN","OCNN_FAIL", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E231 missing whitespace after ','
satpy/readers/nc_olci.py
Outdated
""" """ | ||
items = ["INVALID","SNOW_ICE","INLAND_WATER","SUSPECT", | ||
"AC_FAIL","CLOUD","HISOLZEN","OCNN_FAIL", | ||
"CLOUD_MARGIN","CLOUD_AMBIGUOUS","LOWRW","LAND"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E231 missing whitespace after ','
satpy/readers/nc_olci.py
Outdated
|
||
# mask = reduce(np.logical_or, [bflags[item] for item in items]) | ||
# landmask = bflags[u'LAND'] | ||
# return mask, landmask |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
W291 trailing whitespace
satpy/readers/nc_olci.py
Outdated
# mask = reduce(np.logical_or, [bflags[item] for item in items]) | ||
# landmask = bflags[u'LAND'] | ||
# return mask, landmask | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
W293 blank line contains whitespace
satpy/readers/nc_olci.py
Outdated
# landmask = bflags[u'LAND'] | ||
# return mask, landmask | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
W293 blank line contains whitespace
satpy/readers/nc_olci.py
Outdated
class BitFlags(object): | ||
"""Manipulate flags stored bitwise. | ||
""" | ||
flag_list = ['INVALID','WATER','LAND','CLOUD','SNOW_ICE', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E231 missing whitespace after ','
satpy/readers/nc_olci.py
Outdated
"""Manipulate flags stored bitwise. | ||
""" | ||
flag_list = ['INVALID','WATER','LAND','CLOUD','SNOW_ICE', | ||
'INLAND_WATER','TIDAL','COSMETIC','SUSPECT', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E231 missing whitespace after ','
satpy/readers/nc_olci.py
Outdated
""" | ||
flag_list = ['INVALID','WATER','LAND','CLOUD','SNOW_ICE', | ||
'INLAND_WATER','TIDAL','COSMETIC','SUSPECT', | ||
'HISOLZEN','SATURATED','MEGLINT','HIGHGLINT', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E231 missing whitespace after ','
satpy/readers/nc_olci.py
Outdated
flag_list = ['INVALID','WATER','LAND','CLOUD','SNOW_ICE', | ||
'INLAND_WATER','TIDAL','COSMETIC','SUSPECT', | ||
'HISOLZEN','SATURATED','MEGLINT','HIGHGLINT', | ||
'WHITECAPS','ADJAC','WV_FAIL','PAR_FAIL', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E231 missing whitespace after ','
satpy/readers/nc_olci.py
Outdated
'INLAND_WATER','TIDAL','COSMETIC','SUSPECT', | ||
'HISOLZEN','SATURATED','MEGLINT','HIGHGLINT', | ||
'WHITECAPS','ADJAC','WV_FAIL','PAR_FAIL', | ||
'AC_FAIL','OC4ME_FAIL','OCNN_FAIL', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E231 missing whitespace after ','
satpy/readers/nc_olci.py
Outdated
'KDM_FAIL', | ||
'Extra_2', | ||
|
||
'CLOUD_AMBIGUOUS','CLOUD_MARGIN','BPAC_ON','WHITE_SCATT', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E231 missing whitespace after ','
satpy/readers/nc_olci.py
Outdated
'Extra_2', | ||
|
||
'CLOUD_AMBIGUOUS','CLOUD_MARGIN','BPAC_ON','WHITE_SCATT', | ||
'LOWRW','HIGHRW'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E231 missing whitespace after ','
satpy/readers/nc_olci.py
Outdated
class BitFlags(object): | ||
"""Manipulate flags stored bitwise. | ||
""" | ||
flag_list = ['INVALID', 'WATER', 'LAND', 'CLOUD', 'SNOW_ICE', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
W291 trailing whitespace
satpy/readers/nc_olci.py
Outdated
"""Manipulate flags stored bitwise. | ||
""" | ||
flag_list = ['INVALID', 'WATER', 'LAND', 'CLOUD', 'SNOW_ICE', | ||
'INLAND_WATER', 'TIDAL', 'COSMETIC', 'SUSPECT', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
W291 trailing whitespace
satpy/readers/nc_olci.py
Outdated
""" | ||
flag_list = ['INVALID', 'WATER', 'LAND', 'CLOUD', 'SNOW_ICE', | ||
'INLAND_WATER', 'TIDAL', 'COSMETIC', 'SUSPECT', | ||
'HISOLZEN', 'SATURATED', 'MEGLINT', 'HIGHGLINT', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
W291 trailing whitespace
satpy/readers/nc_olci.py
Outdated
flag_list = ['INVALID', 'WATER', 'LAND', 'CLOUD', 'SNOW_ICE', | ||
'INLAND_WATER', 'TIDAL', 'COSMETIC', 'SUSPECT', | ||
'HISOLZEN', 'SATURATED', 'MEGLINT', 'HIGHGLINT', | ||
'WHITECAPS', 'ADJAC', 'WV_FAIL', 'PAR_FAIL', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
W291 trailing whitespace
satpy/readers/nc_olci.py
Outdated
'INLAND_WATER', 'TIDAL', 'COSMETIC', 'SUSPECT', | ||
'HISOLZEN', 'SATURATED', 'MEGLINT', 'HIGHGLINT', | ||
'WHITECAPS', 'ADJAC', 'WV_FAIL', 'PAR_FAIL', | ||
'AC_FAIL', 'OC4ME_FAIL', 'OCNN_FAIL', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
W291 trailing whitespace
satpy/readers/nc_olci.py
Outdated
'AC_FAIL', 'OC4ME_FAIL', 'OCNN_FAIL', | ||
|
||
'Extra_1', | ||
'KDM_FAIL', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
W291 trailing whitespace
satpy/readers/nc_olci.py
Outdated
|
||
'Extra_1', | ||
'KDM_FAIL', | ||
'Extra_2', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
W291 trailing whitespace
satpy/readers/nc_olci.py
Outdated
'KDM_FAIL', | ||
'Extra_2', | ||
|
||
'CLOUD_AMBIGUOUS', 'CLOUD_MARGIN', 'BPAC_ON', 'WHITE_SCATT', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
W291 trailing whitespace
satpy/readers/nc_olci.py
Outdated
|
||
def getbitmask(self, wqsf, items=[]): | ||
""" """ | ||
items = ["INVALID", "SNOW_ICE", "INLAND_WATER", "SUSPECT", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
W291 trailing whitespace
satpy/readers/nc_olci.py
Outdated
def getbitmask(self, wqsf, items=[]): | ||
""" """ | ||
items = ["INVALID", "SNOW_ICE", "INLAND_WATER", "SUSPECT", | ||
"AC_FAIL", "CLOUD", "HISOLZEN", "OCNN_FAIL", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
W291 trailing whitespace
Codecov Report
@@ Coverage Diff @@
## master #438 +/- ##
==========================================
+ Coverage 72.86% 72.94% +0.07%
==========================================
Files 133 132 -1
Lines 17582 17546 -36
==========================================
- Hits 12812 12799 -13
+ Misses 4770 4747 -23
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in general.
satpy/etc/areas.def
Outdated
@@ -396,6 +396,15 @@ REGION: baws { | |||
AREA_EXTENT: (-475617, 5324430, 924383, 6724430) | |||
}; | |||
|
|||
REGION: baws_merc { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove your custom areas from this file. This file format is on it's way out anyway, and for custom area definition, we believe it's better to have them in a local file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Roger that!
satpy/readers/nc_olci.py
Outdated
""" | ||
Arguments: | ||
- `value`: an array | ||
- `meaning`: a dict |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the documentation doesn't match the function prototype, please fix it or remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
This adds support for new datasets to the olci l2 reader
git diff origin/master **/*py | flake8 --diff