Skip to content

Commit

Permalink
Update develop-ref after #1619, #1617, and #1616 (#1621)
Browse files Browse the repository at this point in the history
* Getting rid of compiler warnings in PB2NC by replacing several instances of the NULL pointer with the nul character (\0) instead.

* Fix typo in config_options.rst.

* Feature 1408 var_name_for_grib_code (#1617)

* #1408 Added get_var_id

* #1408 Check variable name in the configuration to use the variable name instewad of grib code

* #1408 Added point2grid_ascii2nc_surfrad_DW_PSP_by_name

* Feature 1580 2d time (#1616)

* #1580 Added get_grid_from_lat_lon_vars

* #1580 Added get_grid_from_lat_lon_vars and support 2D time variable

* #1580 Support int type variable without scale_factor and add_offset attributes

* #1580 Support 2D time variable. Implemented filtering by valid_time

* #1580 Bug fix: read time with dimension 0

* #1580 Support time variable with no dimension

* #1580 Initial release

* #1580 Added point2grid_2D_time

* #1580 Check project attribute for GOES

* #1580 Changed NULL to 0 to avoid co,pilation warning

* #1580 Added point2grid_2D_time

* #1580 Added "point2grid configuration file" section

* #1580 Changed to_grid for point2grid_NCCF_UK & point2grid_2D_time

Co-authored-by: Howard Soh <hsoh@kiowa.rap.ucar.edu>
Co-authored-by: John Halley Gotway <johnhg@kiowa.rap.ucar.edu>

* feature 1580 nccf (#1619)

* #1580 Correct the precision at _apply_scale_factor

* #1580 Added unit test plot_data_plane_NCCF_time

* #1580 Changed argument type to double at _apply_scale_factor(double)

Co-authored-by: hsoh-u <hsoh@ucar.edu>
Co-authored-by: Howard Soh <hsoh@kiowa.rap.ucar.edu>
Co-authored-by: John Halley Gotway <johnhg@kiowa.rap.ucar.edu>
  • Loading branch information
4 people committed Jan 14, 2021
1 parent b26a891 commit 5178055
Show file tree
Hide file tree
Showing 12 changed files with 545 additions and 398 deletions.
2 changes: 1 addition & 1 deletion met/docs/Users_Guide/config_options.rst
Expand Up @@ -1117,7 +1117,7 @@ of several entires defining the climatology file names and fields to be used.
time_interp_method = DW_MEAN;
day_interval = 31;
hour_interal = 6;
hour_interval = 6;
}
**climo_stdev**
Expand Down
56 changes: 55 additions & 1 deletion met/docs/Users_Guide/reformat_point.rst
Expand Up @@ -952,4 +952,58 @@ The point2grid tool will output a gridded NetCDF file containing the following:
6. The probability field which is the probability of the event defined by the **-prob_cat_thresh** command line option. The output variable name includes the threshold used to define the probability. Ranges from 0 to 1.


7. The probability mask field which is a binary field that represents whether or not there is probability data at that grid point. Can be either “0” or “1” with “0” meaning the probability value does not exist and a value of “1” meaning that the probability value does exist.
7. The probability mask field which is a binary field that represents whether or not there is probability data at that grid point. Can be either “0” or “1” with “0” meaning the probability value does not exist and a value of “1” meaning that the probability value does exist.

For MET observation input and CF complaint NetCDF input with 2D time variable: The latest observation time within the target grid is saved as the observation time. If the "valid_time" is configured at the configuration file, the valid_time from the configuration file is saved into the output file.

point2grid configuration file
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


The default configuration file for the point2grid tool named **Point2GridConfig_default** can be found in the installed *share/met/config* directory. It is recommended that users make a copy of this file prior to modifying its contents.

The point2grid configuration file is optional and only necessary when defining the variable name instead of GRIB code or filtering by time. The contents of the default MADIS2NC configuration file are described below.

_______________


.. code-block:: none
version = "VN.N";
The configuration options listed above are common to many MET tools and are described in :numref:`config_options`.

__________________


.. code-block:: none
valid_time = "YYYYMMDD_HHMMSS";
This entry is a string to override the obseration time into the output and to filter observation data by time.

.. code-block:: none
obs_window = {
beg = -5400;
end = 5400;
}
The configuration option listed above is common to many MET tools and are described in :numref:`config_options`.

.. code-block:: none
var_name_map = [
{ key = "1"; val = "PRES"; }, // GRIB: Pressure
{ key = "2"; val = "PRMSL"; }, // GRIB: Pressure reduced to MSL
{ key = "7"; val = "HGT"; }, // GRIB: Geopotential height
{ key = "11"; val = "TMP"; }, // GRIB: Temperature
{ key = "15"; val = "TMAX"; }, // GRIB: Max Temperature
...
]
This entry is an array of dictionaries, each containing a **GRIB code** string and mathcing **variable name** string which define a mapping of GRIB code to the output variable names.



0 comments on commit 5178055

Please sign in to comment.