Skip to content

Commit

Permalink
Per #3075, fix madis2nc i_buf definition problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway committed Feb 11, 2025
1 parent 22ed18b commit dfb591e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/tools/other/madis2nc/madis2nc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1597,7 +1597,7 @@ void process_madis_raob(NcFile *&f_in) {

mlog << Debug(3) << " Mandatory Level: " << i_lvl << "\n";

int i_buf = (i_idx * buf_size) + i_lvl;
int i_buf = (i_idx * nlvl) + i_lvl;

//
// Use cur to index into the NetCDF variables.
Expand Down Expand Up @@ -1684,7 +1684,7 @@ void process_madis_raob(NcFile *&f_in) {
//
cur[1] = i_lvl;

int i_buf = (i_idx * buf_size) + i_lvl;
int i_buf = (i_idx * nlvl) + i_lvl;

//
// Get the pressure and height for this level
Expand Down Expand Up @@ -1719,7 +1719,7 @@ void process_madis_raob(NcFile *&f_in) {

mlog << Debug(3) << " Significant W Level: " << i_lvl << "\n";

int i_buf = (i_idx * buf_size) + i_lvl;
int i_buf = (i_idx * nlvl) + i_lvl;

//
// Use cur to index into the NetCDF variables.
Expand Down Expand Up @@ -1777,7 +1777,7 @@ void process_madis_raob(NcFile *&f_in) {

mlog << Debug(3) << " Significant W-by-P Level: " << i_lvl << "\n";

int i_buf = (i_idx * buf_size) + i_lvl;
int i_buf = (i_idx * nlvl) + i_lvl;

//
// Use cur to index into the NetCDF variables.
Expand Down Expand Up @@ -1835,7 +1835,7 @@ void process_madis_raob(NcFile *&f_in) {

mlog << Debug(3) << " Tropopause Level: " << i_lvl << "\n";

int i_buf = (i_idx * buf_size) + i_lvl;
int i_buf = (i_idx * nlvl) + i_lvl;

//
// Use cur to index into the NetCDF variables.
Expand Down Expand Up @@ -1905,7 +1905,7 @@ void process_madis_raob(NcFile *&f_in) {

mlog << Debug(3) << " Maximum Wind Level: " << i_lvl << "\n";

int i_buf = (i_idx * buf_size) + i_lvl;
int i_buf = (i_idx * nlvl) + i_lvl;

//
// Use cur to index into the NetCDF variables.
Expand Down Expand Up @@ -2172,7 +2172,7 @@ void process_madis_profiler(NcFile *&f_in) {

mlog << Debug(3) << " Level: " << i_lvl << "\n";

int i_buf = (i_idx * buf_size) + i_lvl;
int i_buf = (i_idx * nlvl) + i_lvl;

//
// Set the pressure and height for this level
Expand Down Expand Up @@ -3357,7 +3357,7 @@ void process_madis_acarsProfiles(NcFile *&f_in) {
i_cnt++;
mlog << Debug(3) << " Mandatory Level: " << i_lvl << "\n";

int i_buf = (i_idx * buf_size) + i_lvl;
int i_buf = (i_idx * nlvl) + i_lvl;

hdr_idx = nc_point_obs.get_obs_index();

Expand Down

0 comments on commit dfb591e

Please sign in to comment.