Search for variables in a netCDF file. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | gdncvarsearchinit (iter, urlbase) |
| subroutine | gdncvarsearchnext (iter, url, end) |
Search for variables in a netCDF file.
To enumerate all variables in a file:
Definition in file gdncvarsearch.f90.
| subroutine gdncvarsearchinit | ( | type(gd_nc_variable_search), intent(out) | iter, |
| character(len = *), intent(in) | urlbase ) |
Initialize variable search iterator
| [out] | iter | Search iterator |
| [in] | urlBase | Base URL for the file |
Definition at line 38 of file gdncvarsearch.f90.
References dc_trace::beginsub(), dc_trace::dbgmessage(), dc_trace::endsub(), and dc_types::string.
| subroutine gdncvarsearchnext | ( | type(gd_nc_variable_search), intent(inout) | iter, |
| character(len = *), intent(out) | url, | ||
| logical, intent(out) | end ) |
Get next variable in search
Returns the URL of the next variable. Dimension-only variables (without corresponding coordinate variable) are also included.
| [in,out] | iter | Search iterator |
| [out] | url | Variable URL |
| [out] | end | True when all variables enumerated |
Definition at line 80 of file gdncvarsearch.f90.
References dc_trace::beginsub(), dc_trace::dbgmessage(), dc_trace::endsub(), gdncfileclose(), and dc_types::string.