Specification of I/O range. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | gtvarslice (var, dimord, start, count, stride) |
| subroutine | gtvarslicec (var, string, err) |
| subroutine | limit_one (string) |
Specification of I/O range.
These subroutines are provided as gtdata_generic#Slice through gtdata_generic.
Definition in file gtvarslice.f90.
| subroutine gtvarslice | ( | type(gt_variable), intent(in) | var, |
| integer, intent(in) | dimord, | ||
| integer, intent(in), optional | start, | ||
| integer, intent(in), optional | count, | ||
| integer, intent(in), optional | stride ) |
Specify I/O range numerically
Specifies the I/O range of variable var.
Sets the I/O range of the dimord-th dimension of variable var to count elements starting from start with stride interval. If start, count, or stride is omitted, 1 is assumed. There is no argument to return success/failure. If an unspecifiable range is given, the widest range containing the specified range is set.
Slice is a generic name for multiple subroutines; other methods using strings or numbers are also available.
| [in] | var | Variable handle |
| [in] | dimord | Dimension order number |
| [in] | start | Start position (optional) |
| [in] | count | Number of elements (optional) |
| [in] | stride | Stride interval (optional) |
Definition at line 63 of file gtvarslice.f90.
References dc_trace::beginsub(), dc_trace::dbgmessage(), dc_trace::endsub(), gtdata_internal_map::gtvar_dump(), gtdata_internal_map::map_lookup(), gtdata_internal_map::map_set(), gtdata_internal_vartable::ndims(), gtdata_internal_vartable::query_growable(), and dc_error::storeerror().
| subroutine gtvarslicec | ( | type(gt_variable), intent(inout) | var, |
| character(len = *), intent(in) | string, | ||
| logical, intent(out) | err ) |
Specify I/O range by string
Specifies the I/O range of variable var according to string. string uses range specification expressions described in "5.4 Comma notation" of the gtool4 netCDF convention. Examples:
Here, <dim> is a dimension number or name, <lower>, <upper> are coordinate values or grid numbers prefixed with "^", and <stride> is a grid count.
Currently err always returns .false..
Slice is a generic name for multiple subroutines; other methods using strings or numbers are also available.
| [in,out] | var | Variable handle |
| [in] | string | Range specification string |
| [out] | err | Error flag |
Definition at line 209 of file gtvarslice.f90.
References dc_trace::beginsub(), dc_trace::endsub(), dc_url::gt_comma, gtdata_internal_map::gtvar_dump(), and limit_one().
| subroutine gtvarslicec::limit_one | ( | character(len = *), intent(in) | string | ) |
Definition at line 238 of file gtvarslice.f90.
References dc_trace::beginsub(), dc_trace::dbgmessage(), dc_trace::endsub(), dc_url::gt_circumflex, dc_url::gt_colon, dc_url::gt_equal, dc_types::sp_eps, and dc_types::token.