Fortran module handling observation locations.
subroutine qg_locs_mod::c_qg_loc_test |
( |
integer(c_int), intent(in) |
c_key_locs, |
|
|
type(c_ptr), intent(in) |
config, |
|
|
integer(c_int), intent(in) |
klocs, |
|
|
real(c_double), dimension(klocs), intent(in) |
klats, |
|
|
real(c_double), dimension(klocs), intent(in) |
klons, |
|
|
real(c_double), dimension(klocs), intent(in) |
kz |
|
) |
| |
|
private |
Generate locations for interpolation test.
c_qg_loc_test() generates a list of user-specified and/or randomly-generated locations. It was originally intended to be used with the test::testStateInterpolation() routine but it may also be adapted for other applications. The user can specify a list of specific locations to be tested (optional) by setting the "lats" and "lons" items in the "StateTest" section of the config file. Alternatively or in addition to these specific locations, the user may request that Nrandom random locations be generated. If neither lats/lons nor Nrandom is specified in the config file, then two random locations are generated.
- Date
- April 2, 2018: Created (M. Miesch, JCSDA)
- Warning
- the lats and lons arrays in the input file are assumed to be degrees (for uniformity relative to other models). These are converted to normalized x and y coordinates when they are stored in the LocationsQG object as defined here. The height specified in the input file is assumed to be normalized already, so it will take on a value between 0 and 1.
-
Since the interpolate() member function of State objects does not interpolate in height (z). the z coordinate as recorded in the LocationsQG object refers to an integer level of 1 or 2. If the user does not explicitly specify the (normalized) height for each latitude and longitude in the config file, then the level is set to a default value of 1.
- See also
- qg::LocationsQG
- Parameters
-
[in] | c_key_locs | key to F90 Locations object |
[in] | config | Configuration (typically State.StateGenerate) |
[in] | klocs | Number of user-specified locations |
[in] | klats | user-specified latitudes (degrees) |
[in] | klons | user-specified longitudes (degrees) |
[in] | kz | user-specified heights (normalized between 0-1) |
- Warning
- qg_loc_test() latitudes and longitudes are assumed to be in normalized coordinates between 0 and 1
Definition at line 87 of file qg_locs_mod.F90.