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 | 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 |
Functions | |
int | file_open_c (int *fid, const char *fname, const int mode, const int icomm) |
int | file_get_dim_length_c (int *len, const int fid, const char *dimname, const bool suppress) |
int | file_set_option_c (const int fid, const char *filetype, const char *key, const char *val) |
int | file_get_nvars_c (int *nvars, const int fid) |
int | file_get_varname_c (char *name, const int fid, const int vid, const int len) |
int | file_get_datainfo_c (datainfo_t *dinfo, const int fid, const char *varname, const int step, const bool suppress) |
int | file_get_step_size_c (int *len, const int fid, const char *varname) |
int | file_read_data_c (void *var, const datainfo_t *dinfo, const int precision, const int ntypes, const int dtype, const int *start, const int *count) |
int | file_get_attribute_text_c (char *value, const int fid, const char *vname, const char *key, const bool suppress, const int len) |
int | file_get_attribute_int_c (int *value, const int fid, const char *vname, const char *key, const bool suppress, const int len) |
int | file_get_attribute_float_c (float *value, const int fid, const char *vname, const char *key, const bool suppress, const int len) |
int | file_get_attribute_double_c (double *value, const int fid, const char *vname, const char *key, const bool suppress, const int len) |
int | file_set_attribute_text_c (const int fid, const char *vname, const char *key, const char *val) |
int | file_set_attribute_int_c (const int fid, const char *vname, const char *key, const int *value, const int len) |
int | file_set_attribute_float_c (const int fid, const char *vname, const char *key, const float *value, const int len) |
int | file_set_attribute_double_c (const int fid, const char *vname, const char *key, const double *value, const int len) |
int | file_add_associatedvariable_c (const int fid, const char *vname) |
int | file_set_tunits_c (const int fid, const char *time_units, const char *calendar) |
int | file_put_axis_c (const int fid, const char *name, const char *desc, const char *units, const char *dim_name, const int dtype, const void *val, const int size, const int precision) |
int | file_def_axis_c (const int fid, const char *name, const char *desc, const char *units, const char *dim_name, const int dtype, const int dim_size, const int bounds) |
int | file_write_axis_c (const int fid, const char *name, const void *val, const int precision, const int *start, const int *count) |
int | file_put_associatedcoordinate_c (const int fid, const char *name, const char *desc, const char *units, const char **dim_names, const int ndims, const int dtype, const void *val, const int precision) |
int | file_def_associatedcoordinate_c (const int fid, const char *name, const char *desc, const char *units, const char **dim_names, const int ndims, const int dtype) |
int | file_write_associatedcoordinate_c (const int fid, const char *name, const void *val, const int ndims, const int precision, const int *start, const int *count) |
int | file_add_variable_c (int *vid, const int fid, const char *varname, const char *desc, const char *units, const char *stdname, const char **dims, const int ndims, const int dtype, const double tint, const char *tstats) |
int | file_enddef_c (const int fid) |
int | file_redef_c (const int fid) |
int | file_attach_buffer_c (const int fid, const int64_t buf_amount) |
int | file_detach_buffer_c (const int fid) |
int | file_flush_c (const int fid) |
int | file_write_data_c (const int fid, const int vid, const void *var, const double t_start, const double t_end, const int ndims, const int precision, const int *start, const int *count) |
int | file_close_c (const int fid, const bool abort) |
#define MPI_INCLUDED |
Definition at line 3 of file scale_file_netcdf.c.
#define TEPS 1e-6 |
Definition at line 7 of file scale_file_netcdf.c.
#define NTMAX 102400 |
Definition at line 8 of file scale_file_netcdf.c.
#define MIN | ( | a, | |
b | |||
) | ((a)<(b) ? (a) : (b)) |
Definition at line 10 of file scale_file_netcdf.c.
#define CHECK_ERROR | ( | func | ) |
Definition at line 14 of file scale_file_netcdf.c.
#define CHECK_PNC_ERROR | ( | func | ) |
Definition at line 40 of file scale_file_netcdf.c.
#define ncmpi_inq_attid | ( | a, | |
b, | |||
c, | |||
d | |||
) | NC2_ERR |
Definition at line 46 of file scale_file_netcdf.c.
#define ncmpi_inq_varid | ( | a, | |
b, | |||
c | |||
) | NC2_ERR |
Definition at line 47 of file scale_file_netcdf.c.
#define ncmpi_inq_dimid | ( | a, | |
b, | |||
c | |||
) | NC2_ERR |
Definition at line 48 of file scale_file_netcdf.c.
#define NCTYPE2TYPE | ( | nctype, | |
type | |||
) |
Definition at line 51 of file scale_file_netcdf.c.
#define TYPE2NCTYPE | ( | type, | |
nctype | |||
) |
Definition at line 75 of file scale_file_netcdf.c.
#define DEFAULT_DEFLATE_LEVEL 2 |
Definition at line 91 of file scale_file_netcdf.c.
int file_open_c | ( | int * | fid, |
const char * | fname, | ||
const int | mode, | ||
const int | icomm | ||
) |
Definition at line 170 of file scale_file_netcdf.c.
References File_HLONG.
Referenced by scale_file::file_get_aggregate().
int file_get_dim_length_c | ( | int * | len, |
const int | fid, | ||
const char * | dimname, | ||
const bool | suppress | ||
) |
Definition at line 258 of file scale_file_netcdf.c.
Referenced by scale_file::file_get_dimlength().
int file_set_option_c | ( | const int | fid, |
const char * | filetype, | ||
const char * | key, | ||
const char * | val | ||
) |
Definition at line 287 of file scale_file_netcdf.c.
References SUCCESS_CODE.
Referenced by scale_file::file_set_option().
int file_get_nvars_c | ( | int * | nvars, |
const int | fid | ||
) |
Definition at line 303 of file scale_file_netcdf.c.
Referenced by scale_file::file_create().
int file_get_varname_c | ( | char * | name, |
const int | fid, | ||
const int | vid, | ||
const int | len | ||
) |
Definition at line 320 of file scale_file_netcdf.c.
References scale_file::i.
Referenced by scale_file::file_create().
int file_get_datainfo_c | ( | datainfo_t * | dinfo, |
const int | fid, | ||
const char * | varname, | ||
const int | step, | ||
const bool | suppress | ||
) |
Definition at line 345 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable(), and scale_file::file_get_stepsize().
int file_get_step_size_c | ( | int * | len, |
const int | fid, | ||
const char * | varname | ||
) |
Definition at line 643 of file scale_file_netcdf.c.
References scale_file::i, and RANK_MAX.
Referenced by scale_file::file_get_stepsize().
int file_read_data_c | ( | void * | var, |
const datainfo_t * | dinfo, | ||
const int | precision, | ||
const int | ntypes, | ||
const int | dtype, | ||
const int * | start, | ||
const int * | count | ||
) |
Definition at line 697 of file scale_file_netcdf.c.
Referenced by scale_file::file_get_stepsize().
int file_get_attribute_text_c | ( | char * | value, |
const int | fid, | ||
const char * | vname, | ||
const char * | key, | ||
const bool | suppress, | ||
const int | len | ||
) |
Definition at line 864 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable().
int file_get_attribute_int_c | ( | int * | value, |
const int | fid, | ||
const char * | vname, | ||
const char * | key, | ||
const bool | suppress, | ||
const int | len | ||
) |
Definition at line 911 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable().
int file_get_attribute_float_c | ( | float * | value, |
const int | fid, | ||
const char * | vname, | ||
const char * | key, | ||
const bool | suppress, | ||
const int | len | ||
) |
Definition at line 954 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable().
int file_get_attribute_double_c | ( | double * | value, |
const int | fid, | ||
const char * | vname, | ||
const char * | key, | ||
const bool | suppress, | ||
const int | len | ||
) |
Definition at line 997 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable().
int file_set_attribute_text_c | ( | const int | fid, |
const char * | vname, | ||
const char * | key, | ||
const char * | val | ||
) |
Definition at line 1040 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable().
int file_set_attribute_int_c | ( | const int | fid, |
const char * | vname, | ||
const char * | key, | ||
const int * | value, | ||
const int | len | ||
) |
Definition at line 1081 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable().
int file_set_attribute_float_c | ( | const int | fid, |
const char * | vname, | ||
const char * | key, | ||
const float * | value, | ||
const int | len | ||
) |
Definition at line 1124 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable().
int file_set_attribute_double_c | ( | const int | fid, |
const char * | vname, | ||
const char * | key, | ||
const double * | value, | ||
const int | len | ||
) |
Definition at line 1166 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_variable().
int file_add_associatedvariable_c | ( | const int | fid, |
const char * | vname | ||
) |
Definition at line 1204 of file scale_file_netcdf.c.
Referenced by scale_file::file_add_associatedvariable().
int file_set_tunits_c | ( | const int | fid, |
const char * | time_units, | ||
const char * | calendar | ||
) |
Definition at line 1227 of file scale_file_netcdf.c.
Referenced by scale_file::file_create().
int file_put_axis_c | ( | const int | fid, |
const char * | name, | ||
const char * | desc, | ||
const char * | units, | ||
const char * | dim_name, | ||
const int | dtype, | ||
const void * | val, | ||
const int | size, | ||
const int | precision | ||
) |
Definition at line 1237 of file scale_file_netcdf.c.
Referenced by scale_file::file_get_dimlength().
int file_def_axis_c | ( | const int | fid, |
const char * | name, | ||
const char * | desc, | ||
const char * | units, | ||
const char * | dim_name, | ||
const int | dtype, | ||
const int | dim_size, | ||
const int | bounds | ||
) |
Definition at line 1286 of file scale_file_netcdf.c.
References File_HSHORT.
Referenced by scale_file::file_def_axis().
int file_write_axis_c | ( | const int | fid, |
const char * | name, | ||
const void * | val, | ||
const int | precision, | ||
const int * | start, | ||
const int * | count | ||
) |
Definition at line 1351 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_axis().
int file_put_associatedcoordinate_c | ( | const int | fid, |
const char * | name, | ||
const char * | desc, | ||
const char * | units, | ||
const char ** | dim_names, | ||
const int | ndims, | ||
const int | dtype, | ||
const void * | val, | ||
const int | precision | ||
) |
Definition at line 1397 of file scale_file_netcdf.c.
References scale_file::i.
Referenced by scale_file::file_def_axis().
int file_def_associatedcoordinate_c | ( | const int | fid, |
const char * | name, | ||
const char * | desc, | ||
const char * | units, | ||
const char ** | dim_names, | ||
const int | ndims, | ||
const int | dtype | ||
) |
Definition at line 1450 of file scale_file_netcdf.c.
References scale_file::i.
Referenced by scale_file::file_def_associatedcoordinate().
int file_write_associatedcoordinate_c | ( | const int | fid, |
const char * | name, | ||
const void * | val, | ||
const int | ndims, | ||
const int | precision, | ||
const int * | start, | ||
const int * | count | ||
) |
Definition at line 1500 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_associatedcoordinate().
int file_add_variable_c | ( | int * | vid, |
const int | fid, | ||
const char * | varname, | ||
const char * | desc, | ||
const char * | units, | ||
const char * | stdname, | ||
const char ** | dims, | ||
const int | ndims, | ||
const int | dtype, | ||
const double | tint, | ||
const char * | tstats | ||
) |
Definition at line 1550 of file scale_file_netcdf.c.
Referenced by scale_file::file_def_associatedcoordinate(), and scale_file::file_def_variable().
int file_enddef_c | ( | const int | fid | ) |
Definition at line 1818 of file scale_file_netcdf.c.
Referenced by scale_file::file_enddef().
int file_redef_c | ( | const int | fid | ) |
Definition at line 1829 of file scale_file_netcdf.c.
Referenced by scale_file::file_redef().
int file_attach_buffer_c | ( | const int | fid, |
const int64_t | buf_amount | ||
) |
Definition at line 1840 of file scale_file_netcdf.c.
Referenced by scale_file::file_attach_buffer().
int file_detach_buffer_c | ( | const int | fid | ) |
Definition at line 1854 of file scale_file_netcdf.c.
Referenced by scale_file::file_detach_buffer().
int file_flush_c | ( | const int | fid | ) |
Definition at line 1867 of file scale_file_netcdf.c.
Referenced by scale_file::file_flush().
int file_write_data_c | ( | const int | fid, |
const int | vid, | ||
const void * | var, | ||
const double | t_start, | ||
const double | t_end, | ||
const int | ndims, | ||
const int | precision, | ||
const int * | start, | ||
const int * | count | ||
) |
Definition at line 1882 of file scale_file_netcdf.c.
Referenced by scale_file::file_get_stepsize().
int file_close_c | ( | const int | fid, |
const bool | abort | ||
) |
Definition at line 2006 of file scale_file_netcdf.c.
Referenced by scale_file::file_close().