Go to the documentation of this file.
13 #include <sys/types.h>
42 status = nc_inq_dimid(ncid, dim_nm, &dim_id);
44 printf(
"%s, %d: nc_inq_dimid failure\n", __FILE__, __LINE__);
47 status = nc_inq_dimlen(ncid, dim_id, &dim_len);
49 printf(
"%s, %d: nc_inq_dimid failure\n", __FILE__, __LINE__);
85 if ((
status = nc_inq_varid(ncid, ds_name, &var_id)) != NC_NOERR) {
86 printf(
"%s, %d: nc_inq_varid returned error %d\n", __FILE__, __LINE__,
93 if ((
status = nc_get_var_float(ncid, var_id,
data)) != NC_NOERR) {
94 printf(
"%s, %d: nc_get_var_float returned error %d\n", __FILE__, __LINE__,
136 int ndim, dim_ids[100],
status, ntot,
i;
140 char dim_nam[NC_MAX_NAME + 1];
144 if ((
status = nc_inq_varid(ncid, ds_name, &var_id)) != NC_NOERR) {
145 printf(
"%s, %d: nc_inq_varid returned error %d\n", __FILE__, __LINE__,
152 if ((
status = nc_get_att_float(ncid, var_id,
"scale_factor", &
scale))
154 printf(
"%s, %d: nc_get_att_float returned error %d\n", __FILE__, __LINE__,
158 if ((
status = nc_get_att_float(ncid, var_id,
"add_offset", &
offset))
160 printf(
"%s, %d: nc_get_att_float returned error %d\n", __FILE__, __LINE__,
164 if ((
status = nc_get_att_float(ncid, var_id,
"_FillValue", &fillv))
166 printf(
"%s, %d: nc_get_att_float returned error %d\n", __FILE__, __LINE__,
170 status = nc_get_att_float(ncid, var_id,
"missing_value", &missv);
171 if ((
status = nc_get_att_float(ncid, var_id,
"missing_value", &missv))
173 printf(
"%s, %d: nc_get_att_float returned error %d\n", __FILE__, __LINE__,
182 printf(
"%s, %d: nc_inq_var returned error %d\n", __FILE__, __LINE__,
187 for (
i = 0;
i < ndim;
i++) {
188 if ((
status = nc_inq_dim(ncid, *(dim_ids +
i), dim_nam, &dim_len))
190 printf(
"%s, %d: nc_inq_dim returned error %d\n", __FILE__, __LINE__,
200 if ((
status = nc_get_var_float(ncid, var_id,
data)) != NC_NOERR) {
201 printf(
"%s, %d: nc_get_var_float returned error %d\n", __FILE__, __LINE__,
205 for (
i = 0;
i < ntot;
i++)
int ncio_grab_stdsclf_ds(int ncid, char *ds_name, float fill, float *data)
no change in intended resolving MODur00064 Corrected handling of bad ephemeris attitude data
int ncio_dim_siz(int ncid, char *dim_nm)
int ncio_grab_f_ds(int ncid, char *ds_name, float *data)