Ncep provider - #34
Conversation
| display_name = 'NCEP GFS Provider' | ||
| description = 'Services avaliable through the NOAA NCEP Server.' | ||
| organization_name = 'National Centers for Environmental Prediction' | ||
| organization_abbr = 'NCEP' No newline at end of file |
| 'svc://cuahsi-hydroshare:hs_geo': {}, | ||
| 'svc://cuahsi-hydroshare:hs_norm': {}, | ||
| 'svc://noaa-ncep:ncep_gfs': {'properties': [{'default': None, | ||
| 'description': 'YYYYMMDD', |
There was a problem hiding this comment.
E128 continuation line under-indented for visual indent
| 'svc://cuahsi-hydroshare:hs_norm': {}, | ||
| 'svc://noaa-ncep:ncep_gfs': {'properties': [{'default': None, | ||
| 'description': 'YYYYMMDD', | ||
| 'name': 'date', |
There was a problem hiding this comment.
E128 continuation line under-indented for visual indent
| 'svc://noaa-ncep:ncep_gfs': {'properties': [{'default': None, | ||
| 'description': 'YYYYMMDD', | ||
| 'name': 'date', | ||
| 'type': 'String'}, |
There was a problem hiding this comment.
E128 continuation line under-indented for visual indent
| 'description': 'YYYYMMDD', | ||
| 'name': 'date', | ||
| 'type': 'String'}, | ||
| {'default': None, |
There was a problem hiding this comment.
E128 continuation line under-indented for visual indent
| 'description': 'Paramerter', | ||
| 'name': 'format', | ||
| 'range': [['enkf', 'enkf'], | ||
| ['gdas', 'gdas'], |
There was a problem hiding this comment.
E128 continuation line under-indented for visual indent
| 'description': 'Parameter3', | ||
| 'name': 'product', | ||
| 'range': [["0.50 deg 'full' file description", | ||
| "0.50 deg 'full' file description"], |
There was a problem hiding this comment.
E128 continuation line under-indented for visual indent
| 'name': 'product', | ||
| 'range': [["0.50 deg 'full' file description", | ||
| "0.50 deg 'full' file description"], | ||
| ['32km Lambert Conformal grid', '32km Lambert Conformal grid'], |
There was a problem hiding this comment.
E128 continuation line under-indented for visual indent
| ['global longitude-latitude grid (1.0 deg)', | ||
| 'global longitude-latitude grid (1.0 deg)']], | ||
| 'type': 'ObjectSelector'}], | ||
| 'title': 'NCEP GFS Service Download Options'} |
There was a problem hiding this comment.
E121 continuation line under-indented for hanging indent
* Added the cuahsi coverage fix. The change was not getting all the resources and just getting all resources that had a coverage from the world. * Made kwargs the standard over using options, params, and kwargs. * Updated the load_providers to only update if update-cache is True or if the global is None.
|
|
||
| providers = {name: driver.DriverManager('quest.services', name, invoke_on_load=True, invoke_kwds={'name': name}).driver for name in web_services} | ||
| if update_cache or the_providers is None: | ||
| providers = {name: driver.DriverManager('quest.services', name, invoke_on_load=True, invoke_kwds={'name': name}).driver for name in web_services} |
There was a problem hiding this comment.
E501 line too long (153 > 120 characters)
| if len(settings.get('USER_SERVICES', [])) > 0: | ||
| for uri in settings.get('USER_SERVICES', []): | ||
| try: | ||
| drv = driver.DriverManager('quest.services', 'user', invoke_on_load=True, invoke_kwds={'uri': uri}).driver |
There was a problem hiding this comment.
E501 line too long (126 > 120 characters)
|
|
||
| return metadata | ||
|
|
||
| class NCEPProvider(ProviderBase): |
There was a problem hiding this comment.
E302 expected 2 blank lines, found 1
| 'global longitude-latitude grid (1.0 deg)']], | ||
| 'type': 'ObjectSelector'}], | ||
| 'title': 'NCEP GFS Service Download Options'}, | ||
| 'svc://noaa-ncep:ncep_nam': {'properties': [{'default': None, |
There was a problem hiding this comment.
E131 continuation line unaligned for hanging indent
| 'type': 'ObjectSelector'}], | ||
| 'title': 'NCEP GFS Service Download Options'}, | ||
| 'svc://noaa-ncep:ncep_nam': {'properties': [{'default': None, | ||
| 'description': 'YYYYMMDD', |
There was a problem hiding this comment.
E128 continuation line under-indented for visual indent
| 'title': 'NCEP GFS Service Download Options'}, | ||
| 'svc://noaa-ncep:ncep_nam': {'properties': [{'default': None, | ||
| 'description': 'YYYYMMDD', | ||
| 'name': 'date', |
There was a problem hiding this comment.
E128 continuation line under-indented for visual indent
| 'svc://noaa-ncep:ncep_nam': {'properties': [{'default': None, | ||
| 'description': 'YYYYMMDD', | ||
| 'name': 'date', | ||
| 'type': 'String'}, |
There was a problem hiding this comment.
E128 continuation line under-indented for visual indent
| 'description': 'YYYYMMDD', | ||
| 'name': 'date', | ||
| 'type': 'String'}, | ||
| {'default': None, |
There was a problem hiding this comment.
E128 continuation line under-indented for visual indent
| 'NAM 215 AWIPS Grid - CONUS (20-km Resolution)'], | ||
| ['NAM 216 AWIPS Grid - Regional - Alaska (45-km Resolution)', | ||
| 'NAM 216 AWIPS Grid - Regional - Alaska (45-km Resolution)'], | ||
| ['NAM 218 AWIPS Grid - CONUS (12-km Resolution; full complement of pressure level fields and some surface-based fields)', |
There was a problem hiding this comment.
E501 line too long (126 > 120 characters)
| ['NAM 216 AWIPS Grid - Regional - Alaska (45-km Resolution)', | ||
| 'NAM 216 AWIPS Grid - Regional - Alaska (45-km Resolution)'], | ||
| ['NAM 218 AWIPS Grid - CONUS (12-km Resolution; full complement of pressure level fields and some surface-based fields)', | ||
| 'NAM 218 AWIPS Grid - CONUS (12-km Resolution; full complement of pressure level fields and some surface-based fields)'], |
There was a problem hiding this comment.
E501 line too long (127 > 120 characters)
| 'NAM 221 AWIPS Grid - High Resolution North American Master Grid (32-km Resolution)'], | ||
| ['NAM 221 AWIPS Grid - N. American Master (32-km Resolution) (GOES Simulated Brightness Temp.)', | ||
| 'NAM 221 AWIPS Grid - N. American Master (32-km Resolution) (GOES Simulated Brightness Temp.)'], | ||
| ['NAM 242 AWIPS Grid - Over Alaska (11.25 KM Resolution; full complement of pressure level fields and some surface-based fields)', |
There was a problem hiding this comment.
E501 line too long (135 > 120 characters)
| ['NAM 221 AWIPS Grid - N. American Master (32-km Resolution) (GOES Simulated Brightness Temp.)', | ||
| 'NAM 221 AWIPS Grid - N. American Master (32-km Resolution) (GOES Simulated Brightness Temp.)'], | ||
| ['NAM 242 AWIPS Grid - Over Alaska (11.25 KM Resolution; full complement of pressure level fields and some surface-based fields)', | ||
| 'NAM 242 AWIPS Grid - Over Alaska (11.25 KM Resolution; full complement of pressure level fields and some surface-based fields)'], |
There was a problem hiding this comment.
E501 line too long (136 > 120 characters)
| ['global longitude-latitude grid (1.0 deg)', | ||
| 'global longitude-latitude grid (1.0 deg)']], | ||
| 'type': 'ObjectSelector'}], | ||
| 'title': 'NCEP GFS Service Download Options'}, |
There was a problem hiding this comment.
E121 continuation line under-indented for hanging indent
* I got the basic authentication piece setup for the nasa provider. * Made a small fix to the authentication fix. This provider is working again. * Nasa provider syntax fix. * Minor updates (#38) * Added the cuahsi coverage fix. The change was not getting all the resources and just getting all resources that had a coverage from the world. * Made kwargs the standard over using options, params, and kwargs. * Updated the load_providers to only update if update-cache is True or if the global is None. * I got the basic authentication piece setup for the nasa provider. * Made a small fix to the authentication fix. This provider is working again. * Nasa provider syntax fix. * I never added the uncommented the nasa download options to the tests in data.py. This fixes the tests.
# Conflicts: # quest/services/noaa_ncep.py
|
|
||
| def _read_granules(self, short_name, page_num): | ||
| try: | ||
| return requests.get(granules_url % (short_name, page_num), auth=(self.info['username'], self.info['password'])).json()['feed']['entry'] |
There was a problem hiding this comment.
E501 line too long (147 > 120 characters)
| display_name = 'NCEP Provider' | ||
| description = 'Services avaliable through the NOAA NCEP Server.' | ||
| organization_name = 'National Centers for Environmental Prediction' | ||
| organization_abbr = 'NCEP' No newline at end of file |
| SERVICE_FEATURE_DOWNLOAD_OPTIONS = [ | ||
| # ('svc://nasa:srtm-3-arc-second/G1034711987-LPDAAC_ECS' , None), | ||
| # ('svc://nasa:srtm-30-arc-second/G1005651728-LPDAAC_ECS', None), | ||
| ('svc://nasa:srtm-3-arc-second/G1034711987-LPDAAC_ECS' , None), |
| DOWNLOAD_OPTIONS_FROM_ALL_SERVICES = { | ||
| # 'svc://nasa:srtm-3-arc-second': {}, | ||
| # 'svc://nasa:srtm-30-arc-second': {}, | ||
| 'svc://nasa:srtm-3-arc-second': {}, |
There was a problem hiding this comment.
E121 continuation line under-indented for hanging indent
| 'description': 'Parameter3', | ||
| 'name': 'product', | ||
| 'range': [['NAM', 'NAM'], | ||
| ['NAM - Binary Universal Form for the Representation of meteorological data (BUFR)', |
There was a problem hiding this comment.
E128 continuation line under-indented for visual indent
…for getting the status of a providers authentication. (#41)
sdc50
left a comment
There was a problem hiding this comment.
Tests failing because of the NASA provider, which will be fixed in a future PR.
Added the ncep provider, updated the docs, and added ncep_client and terrapin to the environment files for python 2 and 3.