Skip to content

Commit

Permalink
Update data_io.rst
Browse files Browse the repository at this point in the history
Updated netCDF reading documentation
  • Loading branch information
CPKalb authored Nov 14, 2024
1 parent d99bc3d commit 6bea41f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docs/Users_Guide/data_io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The MET tools use following attributes and variables for input CF Compliant NetC

3. The "`coordinates <https://cfconventions.org/Data/cf-conventions/cf-conventions-1.9/cf-conventions.html#coordinate-types>`_" attribute for the data variables. It contains the coordinate variable names.

4. The "`grid_mapping <https://cfconventions.org/Data/cf-conventions/cf-conventions-1.9/cf-conventions.html#appendix-grid-mappings>`_" attribute for the data variables for projections and the matching grid mapping variable (optional for the latitude_longitude projection).
4. The "`grid_mapping <https://cfconventions.org/Data/cf-conventions/cf-conventions-1.9/cf-conventions.html#appendix-grid-mappings>`_" attribute for the data variables for projections and the matching grid mapping variable (optional for latitude_longitude and rotated_latitude_longitude projections).

5. The gridded data should be evenly spaced horizontally and vertically.

Expand Down Expand Up @@ -78,7 +78,7 @@ Here are examples for the grid mapping variable ("edr" is the data variable):
grid_mapping:GRIB_earth_shape = "spherical" ;
grid_mapping:GRIB_earth_shape_code = 0 ;
When the grid mapping variable is not available, MET detects the latitude_longitude projection in following order:
When the grid mapping variable is not available, MET can detect either a latitude_longitude or rotated_latitude_longitude projection. It detects the latitude_longitude projection in following order:

1. the lat/lon projection from the dimensions

Expand All @@ -98,6 +98,14 @@ MET gets the valid time from the time variable and the "forecast_reference_time"

2. TRMM_3B42_daily_filename (3B42_daily.<yyyy>.<mm>.<dd>.7.G3.nc)

For rotated_latitude_longitude projections, MET detects the projection using the following logic:

1. Looking for a variable that has the same name as a dimension.

2. If a variable is found, checking to make sure the variable has a standard name attribute and that that attribute is not empty.

3. Checking to see if the standard name attribute is called either grid_latitude for latitude variables or grid_longitude for the longitude variable.

.. list-table:: Valid strings for the "units" attribute.
:widths: auto
:header-rows: 1
Expand Down

0 comments on commit 6bea41f

Please sign in to comment.