Skip to content

Commit

Permalink
#1421 Added log message
Browse files Browse the repository at this point in the history
  • Loading branch information
hsoh-u committed Dec 8, 2020
1 parent 14c3917 commit 584bb98
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions met/src/libcode/vx_nc_util/nc_utils.cc
Expand Up @@ -1389,6 +1389,7 @@ void _apply_scale_factor(float *data, const T *packed_data,
int unpacked_count = 0;
float min_value = 10e10;
float max_value = -10e10;
clock_t start_clock = clock();
const char *method_name = "apply_scale_factor(float)";

for (int idx=0; idx<cell_count; idx++) {
Expand All @@ -1406,10 +1407,12 @@ void _apply_scale_factor(float *data, const T *packed_data,
}
mlog << Debug(4) << method_name << " unpacked data: count="
<< unpacked_count << " out of " << cell_count
<< ". FillValue(" << data_type << ")=" << fill_value
<< " data range [" << min_value << " - " << max_value
<< ". FillValue(" << data_type << ")=" << fill_value << "\n";
mlog << Debug(4) << method_name << "data range [" << min_value << " - " << max_value
<< "] raw data: [" << raw_min_val << " - " << raw_max_val << "] Positive count: "
<< positive_cnt << "\n";
mlog << Debug(7) << method_name << " took "
<< (clock()-start_clock)/double(CLOCKS_PER_SEC) << " seconds\n";
return;
}

Expand Down

0 comments on commit 584bb98

Please sign in to comment.