Skip to content

Commit

Permalink
#2028 Passing two dimensionl cur and dim array
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Soh committed Feb 1, 2022
1 parent fa5badf commit df00576
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions met/src/tools/other/madis2nc/madis2nc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2114,10 +2114,10 @@ void process_madis_profiler(NcFile *&f_in) {
dim[1] = nlvl;
get_nc_data(&var_levels, (float *)levels_arr, dim, cur);

if (IS_VALID_NC(in_uComponentQty_var)) get_nc_data(&in_uComponentQty_var, (char *)uComponentQty_arr, buf_size, i_hdr_s);
if (IS_VALID_NC(in_uComponentQty_var)) get_nc_data(&in_uComponentQty_var, (char *)uComponentQty_arr, dim, cur);
else memset(uComponentQty_arr, 0, buf_size*dim[1]*sizeof(char));

if (IS_VALID_NC(in_vComponentQty_var)) get_nc_data(&in_vComponentQty_var, (char *)vComponentQty_arr, buf_size, i_hdr_s);
if (IS_VALID_NC(in_vComponentQty_var)) get_nc_data(&in_vComponentQty_var, (char *)vComponentQty_arr, dim, cur);
else memset(vComponentQty_arr, 0, buf_size*dim[1]*sizeof(char));

get_filtered_nc_data_2d(in_uComponent_var, (float *)uComponent_arr, dim, cur, "uComponent");
Expand Down

0 comments on commit df00576

Please sign in to comment.