Skip to content

Commit

Permalink
Merge pull request #2233 from dtcenter/feature_2225_level_string_with_at
Browse files Browse the repository at this point in the history
feature_2225_level_string_with_at
  • Loading branch information
hsoh-u committed Aug 18, 2022
2 parents 255a8ca + bc7c7f8 commit a44176e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/libcode/vx_data2d_nccf/data2d_nccf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,6 @@ bool MetNcCFDataFile::data_plane(VarInfo &vinfo, DataPlane &plane)
// convert the value to index for slicing
z_offset = convert_value_to_offset(dim_value[idx], z_dim_name);
}
else if ((dim_offset < 0 || dim_offset >= z_cnt)) {
// convert the value to index for slicing
z_offset = convert_value_to_offset(dim_offset, z_dim_name);
}
if ((z_offset >= 0) && (z_offset < z_cnt))
dimension[idx] = long(z_offset);
else {
Expand Down Expand Up @@ -611,7 +607,7 @@ int MetNcCFDataFile::index(VarInfo &vinfo){
long MetNcCFDataFile::convert_time_to_offset(long time_value) {
bool found = false;
bool found_value = false;
long time_offset = time_value;
long time_offset = bad_data_int;
int dim_size = _file->ValidTime.n();
static const string method_name
= "MetNcCFDataFile::convert_time_to_offset() -> ";
Expand Down Expand Up @@ -653,7 +649,7 @@ long MetNcCFDataFile::convert_time_to_offset(long time_value) {

long MetNcCFDataFile::convert_value_to_offset(double z_value, string z_dim_name) {
bool found = false;
long z_offset = (long)z_value;
long z_offset = bad_data_int;
int dim_size = _file->vlevels.n();
static const string method_name
= "MetNcCFDataFile::convert_value_to_offset() -> ";
Expand Down

0 comments on commit a44176e

Please sign in to comment.