Skip to content

Commit

Permalink
Adding IMPROVE discovery module (#850)
Browse files Browse the repository at this point in the history
* ADD: Adding new function for accessing IMPROVE data

* ADD: Adding IMPROVE tests

* ADD: Adding example and updating improve script to add in metadata

* ENH: IMPROVE updates to description

* ENH: updating example to show how to write out as well

* ENH: Updating tests

* Update __init__.py
  • Loading branch information
AdamTheisen authored Aug 22, 2024
1 parent c20753b commit eed7afd
Show file tree
Hide file tree
Showing 5 changed files with 456 additions and 2 deletions.
3 changes: 2 additions & 1 deletion act/discovery/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@

__getattr__, __dir__, __all__ = lazy.attach(
__name__,
submodules=['arm', 'cropscape', 'airnow', 'noaapsl', 'neon', 'surfrad'],
submodules=['arm', 'asos', 'airnow', 'cropscape', 'improve', 'noaapsl', 'neon', 'surfrad'],
submod_attrs={
'arm': ['download_arm_data', 'get_arm_doi'],
'asos': ['get_asos_data'],
'airnow': ['get_airnow_bounded_obs', 'get_airnow_obs', 'get_airnow_forecast'],
'cropscape': ['get_crop_type'],
'improve': ['get_improve_data'],
'noaapsl': ['download_noaa_psl_data'],
'neon': ['get_neon_site_products', 'get_neon_product_avail', 'download_neon_data'],
'surfrad': ['download_surfrad_data'],
Expand Down
1 change: 0 additions & 1 deletion act/discovery/airnow.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ def get_airnow_forecast(token, date, zipcode=None, latlon=None, distance=25):
+ str(token)
)

print(url)
df = pd.read_csv(url)

# converting to xarray dataset object
Expand Down
Loading

0 comments on commit eed7afd

Please sign in to comment.