Skip to content

Commit

Permalink
#3007 Added get_nc_data(NcVar *, unixtime)
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Soh committed Dec 23, 2024
1 parent e59b43c commit 9f24f77
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/libcode/vx_nc_util/nc_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1315,6 +1315,14 @@ bool get_nc_data(NcVar *var, time_t *data) {

////////////////////////////////////////////////////////////////////////

bool get_nc_data(NcVar *var, unixtime *data) {
bool return_status = get_nc_data_(var, data, (unixtime)bad_data_int);

return return_status;
}

////////////////////////////////////////////////////////////////////////

bool get_nc_data(NcVar *var, int *data) {
bool return_status = get_nc_data_(var, data, bad_data_int);
return return_status;
Expand Down
1 change: 1 addition & 0 deletions src/libcode/vx_nc_util/nc_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ extern bool get_nc_data(netCDF::NcVar *, uchar *data, bool allow_conversion=fal
extern bool get_nc_data(netCDF::NcVar *, float *data);
extern bool get_nc_data(netCDF::NcVar *, double *data);
extern bool get_nc_data(netCDF::NcVar *, time_t *data);
extern bool get_nc_data(netCDF::NcVar *, unixtime *data);
extern bool get_nc_data(netCDF::NcVar *, unsigned short *data);

extern bool get_nc_data(netCDF::NcVar *, int *data, const LongArray &curs);
Expand Down

0 comments on commit 9f24f77

Please sign in to comment.