|
SCALE-RM
|

Go to the source code of this file.
Classes | |
| struct | fileinfo_t |
| struct | tdim_t |
| struct | varinfo_t |
Macros | |
| #define | RMISS -9.9999e+30 |
| #define | TEPS 1e-6 |
| #define | CHECK_ERROR(status) |
| #define | NCTYPE2TYPE(nctype, type) |
| #define | TYPE2NCTYPE(type, nctype) |
| #define | DEFAULT_DEFLATE_LEVEL 2 |
| #define | FILE_MAX 512 |
| #define | VAR_MAX 40960 |
Functions | |
| int32_t | file_open (int32_t *fid, char *fname, int32_t mode) |
| int32_t | file_set_option (int32_t fid, char *filetype, char *key, char *val) |
| int32_t | file_get_datainfo (datainfo_t *dinfo, int32_t fid, char *varname, int32_t step, int32_t suppress) |
| int32_t | file_read_data (void *var, datainfo_t *dinfo, int32_t precision) |
| int32_t | file_get_global_attribute_text (int32_t fid, char *key, char *value, int32_t len) |
| int32_t | file_get_global_attribute_int (int32_t fid, char *key, int *value, size_t len) |
| int32_t | file_get_global_attribute_float (int32_t fid, char *key, float *value, size_t len) |
| int32_t | file_get_global_attribute_double (int32_t fid, char *key, double *value, size_t len) |
| int32_t | file_set_global_attribute_text (int32_t fid, char *key, char *value) |
| int32_t | file_set_global_attribute_int (int32_t fid, char *key, int *value, size_t len) |
| int32_t | file_set_global_attribute_float (int32_t fid, char *key, float *value, size_t len) |
| int32_t | file_set_global_attribute_double (int32_t fid, char *key, double *value, size_t len) |
| int32_t | file_set_tunits (int32_t fid, char *time_units) |
| int32_t | file_set_tattr (int32_t fid, char *vname, char *key, char *val) |
| int32_t | file_put_axis (int32_t fid, char *name, char *desc, char *units, char *dim_name, int32_t dtype, void *val, int32_t size, int32_t precision) |
| int32_t | file_def_axis (int32_t fid, char *name, char *desc, char *units, char *dim_name, int32_t dtype, int32_t dim_size) |
| int32_t | file_write_axis (int32_t fid, char *name, void *val, int32_t precision) |
| int32_t | file_put_associated_coordinates (int32_t fid, char *name, char *desc, char *units, char **dim_names, int32_t ndims, int32_t dtype, void *val, int32_t precision) |
| int32_t | file_def_associated_coordinates (int32_t fid, char *name, char *desc, char *units, char **dim_names, int32_t ndims, int32_t dtype) |
| int32_t | file_write_associated_coordinates (int32_t fid, char *name, void *val, int32_t precision) |
| int32_t | file_add_variable (int32_t *vid, int32_t fid, char *varname, char *desc, char *units, char **dims, int32_t ndims, int32_t dtype, real64_t tint, int32_t tavg) |
| int32_t | file_write_data (int32_t fid, int32_t vid, void *var, real64_t t_start, real64_t t_end, int32_t precision) |
| int32_t | file_enddef (int32_t fid) |
| int32_t | file_write_var (int32_t vid, void *var, real64_t t_start, real64_t t_end, int32_t precision) |
| int32_t | file_close (int32_t fid) |
| #define RMISS -9.9999e+30 |
Definition at line 4 of file gtool_netcdf.c.
| #define TEPS 1e-6 |
Definition at line 5 of file gtool_netcdf.c.
Referenced by file_write_data(), and file_write_var().
| #define CHECK_ERROR | ( | status | ) |
Definition at line 9 of file gtool_netcdf.c.
Referenced by file_enddef(), file_set_tattr(), file_write_associated_coordinates(), file_write_axis(), file_write_data(), and file_write_var().
| #define NCTYPE2TYPE | ( | nctype, | |
| type | |||
| ) |
Definition at line 20 of file gtool_netcdf.c.
| #define TYPE2NCTYPE | ( | type, | |
| nctype | |||
| ) |
Definition at line 38 of file gtool_netcdf.c.
| #define DEFAULT_DEFLATE_LEVEL 2 |
Definition at line 54 of file gtool_netcdf.c.
| #define FILE_MAX 512 |
Definition at line 85 of file gtool_netcdf.c.
| #define VAR_MAX 40960 |
Definition at line 87 of file gtool_netcdf.c.
| int32_t file_open | ( | int32_t * | fid, |
| char * | fname, | ||
| int32_t | mode | ||
| ) |
Definition at line 97 of file gtool_netcdf.c.
Referenced by gtool_file::filemakefname().

| int32_t file_set_option | ( | int32_t | fid, |
| char * | filetype, | ||
| char * | key, | ||
| char * | val | ||
| ) |
Definition at line 146 of file gtool_netcdf.c.
References ALREADY_CLOSED_CODE, fileinfo_t::deflate_level, ERROR_CODE, and SUCCESS_CODE.
Referenced by gtool_file::filesetoption().

| int32_t file_get_datainfo | ( | datainfo_t * | dinfo, |
| int32_t | fid, | ||
| char * | varname, | ||
| int32_t | step, | ||
| int32_t | suppress | ||
| ) |
Definition at line 162 of file gtool_netcdf.c.
Referenced by gtool_file::filegetalldatainfo(), gtool_file::filegetdatainfo(), and gtool_file::filegetshape().

| int32_t file_read_data | ( | void * | var, |
| datainfo_t * | dinfo, | ||
| int32_t | precision | ||
| ) |
Definition at line 245 of file gtool_netcdf.c.
Referenced by gtool_file::filegetalldatainfo().

| int32_t file_get_global_attribute_text | ( | int32_t | fid, |
| char * | key, | ||
| char * | value, | ||
| int32_t | len | ||
| ) |
Definition at line 294 of file gtool_netcdf.c.
Referenced by gtool_file::filecreate().

| int32_t file_get_global_attribute_int | ( | int32_t | fid, |
| char * | key, | ||
| int * | value, | ||
| size_t | len | ||
| ) |
Definition at line 314 of file gtool_netcdf.c.
| int32_t file_get_global_attribute_float | ( | int32_t | fid, |
| char * | key, | ||
| float * | value, | ||
| size_t | len | ||
| ) |
Definition at line 332 of file gtool_netcdf.c.
Referenced by gtool_file::filecreate().

| int32_t file_get_global_attribute_double | ( | int32_t | fid, |
| char * | key, | ||
| double * | value, | ||
| size_t | len | ||
| ) |
Definition at line 350 of file gtool_netcdf.c.
Referenced by gtool_file::filecreate().

| int32_t file_set_global_attribute_text | ( | int32_t | fid, |
| char * | key, | ||
| char * | value | ||
| ) |
Definition at line 368 of file gtool_netcdf.c.
Referenced by gtool_file::filecreate().

| int32_t file_set_global_attribute_int | ( | int32_t | fid, |
| char * | key, | ||
| int * | value, | ||
| size_t | len | ||
| ) |
Definition at line 389 of file gtool_netcdf.c.
| int32_t file_set_global_attribute_float | ( | int32_t | fid, |
| char * | key, | ||
| float * | value, | ||
| size_t | len | ||
| ) |
Definition at line 411 of file gtool_netcdf.c.
Referenced by gtool_file::filecreate().

| int32_t file_set_global_attribute_double | ( | int32_t | fid, |
| char * | key, | ||
| double * | value, | ||
| size_t | len | ||
| ) |
Definition at line 433 of file gtool_netcdf.c.
Referenced by gtool_file::filecreate().

| int32_t file_set_tunits | ( | int32_t | fid, |
| char * | time_units | ||
| ) |
Definition at line 455 of file gtool_netcdf.c.
References SUCCESS_CODE.
Referenced by gtool_file::filecreate().

| int32_t file_set_tattr | ( | int32_t | fid, |
| char * | vname, | ||
| char * | key, | ||
| char * | val | ||
| ) |
Definition at line 463 of file gtool_netcdf.c.
References ALREADY_CLOSED_CODE, ALREADY_EXISTED_CODE, CHECK_ERROR, fileinfo_t::ncid, and SUCCESS_CODE.
Referenced by gtool_file::filesettattr().

| int32_t file_put_axis | ( | int32_t | fid, |
| char * | name, | ||
| char * | desc, | ||
| char * | units, | ||
| char * | dim_name, | ||
| int32_t | dtype, | ||
| void * | val, | ||
| int32_t | size, | ||
| int32_t | precision | ||
| ) |
Definition at line 492 of file gtool_netcdf.c.
Referenced by gtool_file::fileopen().

| int32_t file_def_axis | ( | int32_t | fid, |
| char * | name, | ||
| char * | desc, | ||
| char * | units, | ||
| char * | dim_name, | ||
| int32_t | dtype, | ||
| int32_t | dim_size | ||
| ) |
Definition at line 546 of file gtool_netcdf.c.
Referenced by gtool_file::filedefaxis().

| int32_t file_write_axis | ( | int32_t | fid, |
| char * | name, | ||
| void * | val, | ||
| int32_t | precision | ||
| ) |
Definition at line 581 of file gtool_netcdf.c.
References ALREADY_CLOSED_CODE, CHECK_ERROR, and fileinfo_t::ncid.
Referenced by gtool_file::filedefaxis().

| int32_t file_put_associated_coordinates | ( | int32_t | fid, |
| char * | name, | ||
| char * | desc, | ||
| char * | units, | ||
| char ** | dim_names, | ||
| int32_t | ndims, | ||
| int32_t | dtype, | ||
| void * | val, | ||
| int32_t | precision | ||
| ) |
Definition at line 615 of file gtool_netcdf.c.
Referenced by gtool_file::filedefaxis().

| int32_t file_def_associated_coordinates | ( | int32_t | fid, |
| char * | name, | ||
| char * | desc, | ||
| char * | units, | ||
| char ** | dim_names, | ||
| int32_t | ndims, | ||
| int32_t | dtype | ||
| ) |
Definition at line 673 of file gtool_netcdf.c.
Referenced by gtool_file::filedefassociatedcoordinates().

| int32_t file_write_associated_coordinates | ( | int32_t | fid, |
| char * | name, | ||
| void * | val, | ||
| int32_t | precision | ||
| ) |
Definition at line 712 of file gtool_netcdf.c.
References ALREADY_CLOSED_CODE, CHECK_ERROR, and fileinfo_t::ncid.
Referenced by gtool_file::filedefassociatedcoordinates().

| int32_t file_add_variable | ( | int32_t * | vid, |
| int32_t | fid, | ||
| char * | varname, | ||
| char * | desc, | ||
| char * | units, | ||
| char ** | dims, | ||
| int32_t | ndims, | ||
| int32_t | dtype, | ||
| real64_t | tint, | ||
| int32_t | tavg | ||
| ) |
Definition at line 746 of file gtool_netcdf.c.
Referenced by gtool_file::filedefassociatedcoordinates(), and gtool_file::filedefinevariable().

| int32_t file_write_data | ( | int32_t | fid, |
| int32_t | vid, | ||
| void * | var, | ||
| real64_t | t_start, | ||
| real64_t | t_end, | ||
| int32_t | precision | ||
| ) |
Definition at line 948 of file gtool_netcdf.c.
References ALREADY_CLOSED_CODE, CHECK_ERROR, tdim_t::count, varinfo_t::count, varinfo_t::ncid, varinfo_t::start, tdim_t::t, varinfo_t::t, TEPS, and varinfo_t::varid.
Referenced by file_write_data_(), and gtool_file::filegetalldatainfo().

| int32_t file_enddef | ( | int32_t | fid | ) |
Definition at line 1025 of file gtool_netcdf.c.
References ALREADY_CLOSED_CODE, CHECK_ERROR, fileinfo_t::ncid, and SUCCESS_CODE.
Referenced by file_enddef_(), and gtool_file::fileenddef().

| int32_t file_write_var | ( | int32_t | vid, |
| void * | var, | ||
| real64_t | t_start, | ||
| real64_t | t_end, | ||
| int32_t | precision | ||
| ) |
Definition at line 1042 of file gtool_netcdf.c.
References ALREADY_CLOSED_CODE, CHECK_ERROR, tdim_t::count, varinfo_t::count, varinfo_t::ncid, varinfo_t::start, tdim_t::t, varinfo_t::t, TEPS, and varinfo_t::varid.
Referenced by file_write_var_(), and gtool_file::filegetalldatainfo().

| int32_t file_close | ( | int32_t | fid | ) |
Definition at line 1109 of file gtool_netcdf.c.
References ALREADY_CLOSED_CODE, and fileinfo_t::ncid.
Referenced by file_close_(), and gtool_file::fileclose().

1.8.13