#include <netcdffiledata.h>


Public Member Functions | |
| NETCDFFileData (const string &filename, const string &mode) | |
| virtual void * | read_data (void *data, const char *sds_name, int *start=NULL, int *stride=NULL, int *edges=NULL, int rank=-1) |
| Read the selected data in the file. | |
| virtual vector< int > | get_dataset_dimension (const string &sds_name) |
| return the given dataset size along each axis | |
| virtual bool | dataset_exists (const char *sds_name) |
| void | get_dataset_fill_value (const string &sds_name, void *fill_value) |
| read the given dataset's fill value TODO Same method with many names of this method transfered from filedatareader. Need to be reformatted after functionnal tests with Data2Grid/MapsOperator | |
| int | get_n_dataset () |
| string | get_dataset_name (int i) |
| int | get_dataset_data_type (string sds_name) |
| string | get_values_attr_dataset (string sds_name, string attr_name) |
| bool | has_attr_dataset (string sds_name, string attr_name) |
| void | close_data_file () |
| closes the file | |
| void | open_data_file () |
| open the file | |
Protected Member Functions | |
| const bool | check_read_write_limits (const char *sds_name, int *start, int *stride, int *edges, const int rank) |
| void | init_read_write_null_input_param (const char *sds_name, int *&start, int *&stride, int *&edges, int &rank, bool *initialized_values) |
| void | free_read_write_allocations (const bool *are_limits_initialized, int *start, int *stride, int *edges) |
| Hdf_sds | get_dataset (string sds_name) |
Protected Attributes | |
| int32 | ncfile |
| string | filename |
| vector< int > NETCDFFileData::get_dataset_dimension | ( | const string & | sds_name | ) | [virtual] |
return the given dataset size along each axis
| ds_name | [IN] dataset name |
Reimplemented from FileData.
References FileData::name.
Referenced by read_data().
| void NETCDFFileData::get_dataset_fill_value | ( | const string & | ds_name, | |
| void * | fillvalue | |||
| ) | [virtual] |
read the given dataset's fill value TODO Same method with many names of this method transfered from filedatareader. Need to be reformatted after functionnal tests with Data2Grid/MapsOperator
| ds_name | [IN] dataset name | |
| fillvalue | [OUT] fill value. |
Reimplemented from FileData.
| void * NETCDFFileData::read_data | ( | void * | data, | |
| const char * | sds_name, | |||
| int * | start = NULL, |
|||
| int * | stride = NULL, |
|||
| int * | edges = NULL, |
|||
| int | rank = -1 | |||
| ) | [virtual] |
Read the selected data in the file.
| data | the buffer to fill with the read values. Can be NULL. In this case, the allocation is done by the method | |
| sds_name | the name of the sds (Scientific Data Set) we want to access. | |
| start | begining of the selection. If NULL, start at (0,0) if rank is 2 ; (0,0,0) if rank is 3... | |
| stride | step between 2 interesting values. If NULL, this step is set to 1 in each dimension (ie all values will be read) | |
| edges | number of values to be read in each dimension. if NULL, it will be all data along each dimension. | |
| rank | the dimension of start, stride and edges |
Implements FileData.
References get_dataset_dimension(), and FileData::name.
1.7.1