#include "config.h"
#include <netcdf.h>
#include <string.h>
#include "geometry.h"
#include "utils_common.h"
#include "io_utils.h"
Go to the source code of this file.
◆ check_dimension()
static size_t check_dimension |
( |
int | ncid, |
|
|
int | varids[2] ) |
|
static |
◆ read_coord()
static double * read_coord |
( |
int | ncid, |
|
|
int | varid, |
|
|
size_t | varlen ) |
|
static |
◆ yac_check_coord_units()
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.
◆ yac_read_coords()
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
- Parameters
-
[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.