Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature_2225_level_string_with_at #2233

Merged
merged 1 commit into from
Aug 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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