YetAnotherCoupler 3.5.2
|
Go to the source code of this file.
Functions | |
void | yac_read_coords (int ncid, char const *lon_name, char const *lat_name, double **lon, double **lat, size_t *len) |
int | yac_check_coord_units (int ncid, int varid) |
int yac_check_coord_units | ( | int | ncid, |
int | varid ) |
Checks the variable for an attribute with the name "units". If it is available and contains the string "degree", this routine will return 1, 0 otherwise.
Definition at line 45 of file read_grid.c.
void yac_read_coords | ( | int | ncid, |
char const * | lon_name, | ||
char const * | lat_name, | ||
double ** | lon, | ||
double ** | lat, | ||
size_t * | len ) |
reads a coordinate array from a netcdf file, tries to interpret the units attribute of the variable and will convert the coordinates into radiant if necessary
[in] | ncid | |
[in] | lon_name | name of longitude array in grid file |
[in] | lat_name | name of latitude array in grid file |
[out] | lon | lon array in radiant |
[out] | lat | lat array in radiant |
[out] | len | number of coordinates in lon and lat arrays |
Definition at line 94 of file read_grid.c.