|
SCALE-RM
|

Go to the source code of this file.
Classes | |
| struct | fileinfo_t |
| struct | tdim_t |
| struct | varinfo_t |
Macros | |
| #define | MPI_INCLUDED |
| #define | RMISS -9.9999e+30 |
| #define | TEPS 1e-6 |
| #define | NTMAX 102400 |
| #define | MIN(a, b) ((a)<(b) ? (a) : (b)) |
| #define | CHECK_ERROR(func) |
| #define | CHECK_PNC_ERROR(func) |
| #define | ncmpi_inq_attid(a, b, c, d) NC2_ERR |
| #define | ncmpi_inq_varid(a, b, c) NC2_ERR |
| #define | ncmpi_inq_dimid(a, b, c) NC2_ERR |
| #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, MPI_Comm comm) |
| 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_read_data_par (void *var, datainfo_t *dinfo, MPI_Offset ntypes, MPI_Datatype dtype, MPI_Offset *start, MPI_Offset *count) |
| 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, MPI_Offset *start, MPI_Offset *count) |
| 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, MPI_Offset *start, MPI_Offset *count) |
| 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_enddef (int32_t fid) |
| int32_t | file_attach_buffer (int32_t fid, int32_t buf_amount) |
| int32_t | file_detach_buffer (int32_t fid) |
| int32_t | file_flush (int32_t fid) |
| int32_t | file_write_data (int32_t fid, int32_t vid, void *var, real64_t t_start, real64_t t_end, int32_t precision, MPI_Offset *start, MPI_Offset *count) |
| int32_t | file_close (int32_t fid) |
| #define MPI_INCLUDED |
Definition at line 3 of file gtool_netcdf.c.
| #define RMISS -9.9999e+30 |
Definition at line 7 of file gtool_netcdf.c.
| #define TEPS 1e-6 |
Definition at line 8 of file gtool_netcdf.c.
| #define NTMAX 102400 |
Definition at line 9 of file gtool_netcdf.c.
| #define MIN | ( | a, | |
| b | |||
| ) | ((a)<(b) ? (a) : (b)) |
Definition at line 11 of file gtool_netcdf.c.
| #define CHECK_ERROR | ( | func | ) |
Definition at line 15 of file gtool_netcdf.c.
| #define CHECK_PNC_ERROR | ( | func | ) |
Definition at line 41 of file gtool_netcdf.c.
| #define ncmpi_inq_attid | ( | a, | |
| b, | |||
| c, | |||
| d | |||
| ) | NC2_ERR |
Definition at line 47 of file gtool_netcdf.c.
| #define ncmpi_inq_varid | ( | a, | |
| b, | |||
| c | |||
| ) | NC2_ERR |
Definition at line 48 of file gtool_netcdf.c.
| #define ncmpi_inq_dimid | ( | a, | |
| b, | |||
| c | |||
| ) | NC2_ERR |
Definition at line 49 of file gtool_netcdf.c.
| #define NCTYPE2TYPE | ( | nctype, | |
| type | |||
| ) |
Definition at line 52 of file gtool_netcdf.c.
| #define TYPE2NCTYPE | ( | type, | |
| nctype | |||
| ) |
Definition at line 70 of file gtool_netcdf.c.
| #define DEFAULT_DEFLATE_LEVEL 2 |
Definition at line 86 of file gtool_netcdf.c.
| #define FILE_MAX 512 |
Definition at line 120 of file gtool_netcdf.c.
| #define VAR_MAX 40960 |
Definition at line 122 of file gtool_netcdf.c.
| int32_t file_open | ( | int32_t * | fid, |
| char * | fname, | ||
| int32_t | mode, | ||
| MPI_Comm | comm | ||
| ) |
Definition at line 132 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 202 of file gtool_netcdf.c.
References 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 218 of file gtool_netcdf.c.
Referenced by gtool_file::filegetshape(), gtool_file::filereadvar1drealdp(), gtool_file::filereadvar2drealdp(), gtool_file::filereadvar2drealsp(), gtool_file::filereadvar3drealdp(), gtool_file::filereadvar3drealsp(), gtool_file::filereadvar4drealdp(), and gtool_file::filereadvar4drealsp().

| int32_t file_read_data | ( | void * | var, |
| datainfo_t * | dinfo, | ||
| int32_t | precision | ||
| ) |
Definition at line 390 of file gtool_netcdf.c.
Referenced by gtool_file::filegetshape(), gtool_file::filereadvar1drealdp(), gtool_file::filereadvar2drealdp(), gtool_file::filereadvar2drealsp(), gtool_file::filereadvar3drealdp(), gtool_file::filereadvar3drealsp(), gtool_file::filereadvar4drealdp(), and gtool_file::filereadvar4drealsp().

| int32_t file_read_data_par | ( | void * | var, |
| datainfo_t * | dinfo, | ||
| MPI_Offset | ntypes, | ||
| MPI_Datatype | dtype, | ||
| MPI_Offset * | start, | ||
| MPI_Offset * | count | ||
| ) |
Definition at line 439 of file gtool_netcdf.c.
Referenced by gtool_file::filegetshape(), gtool_file::filereadvar1drealdp(), gtool_file::filereadvar2drealdp(), gtool_file::filereadvar2drealsp(), gtool_file::filereadvar3drealdp(), gtool_file::filereadvar3drealsp(), gtool_file::filereadvar4drealdp(), and gtool_file::filereadvar4drealsp().

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

| int32_t file_get_global_attribute_int | ( | int32_t | fid, |
| char * | key, | ||
| int * | value, | ||
| size_t | len | ||
| ) |
Definition at line 486 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 504 of file gtool_netcdf.c.
Referenced by gtool_file::filegetglobalattributetext().

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

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

| int32_t file_set_global_attribute_int | ( | int32_t | fid, |
| char * | key, | ||
| int * | value, | ||
| size_t | len | ||
| ) |
Definition at line 566 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 593 of file gtool_netcdf.c.
Referenced by gtool_file::filegetglobalattributetext().

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

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

| int32_t file_set_tattr | ( | int32_t | fid, |
| char * | vname, | ||
| char * | key, | ||
| char * | val | ||
| ) |
Definition at line 655 of file gtool_netcdf.c.
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 694 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 748 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, | ||
| MPI_Offset * | start, | ||
| MPI_Offset * | count | ||
| ) |
Definition at line 797 of file gtool_netcdf.c.
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 842 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 900 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, | ||
| MPI_Offset * | start, | ||
| MPI_Offset * | count | ||
| ) |
Definition at line 956 of file gtool_netcdf.c.
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 1001 of file gtool_netcdf.c.
Referenced by gtool_file::filedefassociatedcoordinates(), and gtool_file::filedefinevariable().

| int32_t file_enddef | ( | int32_t | fid | ) |
Definition at line 1260 of file gtool_netcdf.c.
Referenced by file_enddef_(), and gtool_file::fileenddef().

| int32_t file_attach_buffer | ( | int32_t | fid, |
| int32_t | buf_amount | ||
| ) |
Definition at line 1280 of file gtool_netcdf.c.
Referenced by file_attach_buffer_(), and gtool_file::fileattachbuffer().

| int32_t file_detach_buffer | ( | int32_t | fid | ) |
Definition at line 1295 of file gtool_netcdf.c.
Referenced by file_detach_buffer_(), and gtool_file::filedetachbuffer().

| int32_t file_flush | ( | int32_t | fid | ) |
Definition at line 1308 of file gtool_netcdf.c.
Referenced by file_flush_(), and gtool_file::fileflush().

| int32_t file_write_data | ( | int32_t | fid, |
| int32_t | vid, | ||
| void * | var, | ||
| real64_t | t_start, | ||
| real64_t | t_end, | ||
| int32_t | precision, | ||
| MPI_Offset * | start, | ||
| MPI_Offset * | count | ||
| ) |
Definition at line 1323 of file gtool_netcdf.c.
Referenced by gtool_file::filewrite1drealsp().

| int32_t file_close | ( | int32_t | fid | ) |
Definition at line 1426 of file gtool_netcdf.c.
Referenced by file_close_(), and gtool_file::fileclose().

1.8.14