Skip to content

Commit

Permalink
added NWM and ERA docs; fixed NWM docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan D. Snow committed May 15, 2017
1 parent 9bf9479 commit fc48612
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ GRID API

api/grid/lsm_tools
api/grid/hrrr_tools
api/grid/era_tools
api/grid/nwm_tools

Modeling API
============
Expand Down
19 changes: 19 additions & 0 deletions docs/api/grid/era_tools.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
**************************************
ERA output to GSSHA input (ERAtoGSSHA)
**************************************
- https://software.ecmwf.int/wiki/display/CKB/What+is+ERA5

- http://www.ecmwf.int/en/research/climate-reanalysis/era-interim


ERAtoGSSHA
===========

.. autoclass:: gsshapy.grid.ERAtoGSSHA
:show-inheritance:

Download ERA
============
.. autofunction:: gsshapy.grid.era_to_gssha.download_era5_for_gssha

.. autofunction:: gsshapy.grid.era_to_gssha.download_interim_for_gssha
10 changes: 10 additions & 0 deletions docs/api/grid/nwm_tools.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
*******************************************************
National Water Model output to GSSHA input (NWMtoGSSHA)
*******************************************************
http://water.noaa.gov/about/nwm

NWMtoGSSHA
===========

.. autoclass:: gsshapy.grid.NWMtoGSSHA
:show-inheritance:
8 changes: 5 additions & 3 deletions gsshapy/grid/nwm_to_gssha.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class NWMtoGSSHA(GRIDtoGSSHA):
Example::
from datetime import datetime
from gsshapy.grid import NWMtoGSSHA
Expand All @@ -48,7 +49,7 @@ class NWMtoGSSHA(GRIDtoGSSHA):
)
out_gage_file = 'E:\\GSSHA\\era5_rain1.gag
out_gage_file = 'E:\\GSSHA\\era5_rain1.gag'
e2g.lsm_precip_to_gssha_precip_gage(out_gage_file,
lsm_data_var="RAINRATE",
precip_type="ACCUM")
Expand All @@ -58,13 +59,14 @@ class NWMtoGSSHA(GRIDtoGSSHA):
['pressure', 'PSFC'],
['relative_humidity', ['Q2D','T2D', 'PSFC']],
['wind_speed', ['U2D', 'V2D']],
['direct_radiation', 'SWDOWN'], ???
['diffusive_radiation', 'SWDOWN'], ???
['direct_radiation', 'SWDOWN'], # ???
['diffusive_radiation', 'SWDOWN'], # ???
['temperature', 'T2D'],
['cloud_cover', '????'],
]
e2g.lsm_data_to_arc_ascii(data_var_map_array)
"""
def __init__(self,
gssha_project_folder,
Expand Down

0 comments on commit fc48612

Please sign in to comment.