Skip to content

Commit

Permalink
#1581 Use MetNcPointObsIn instead of MetNcPointObs
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Soh committed May 20, 2021
1 parent f363a44 commit a44afb7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions met/src/tools/core/ensemble_stat/ensemble_stat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ using namespace std;
#include "vx_log.h"

#include "nc_obs_util.h"
#include "nc_point_obs.h"
#include "nc_point_obs_in.h"

////////////////////////////////////////////////////////////////////////

Expand Down Expand Up @@ -949,7 +949,7 @@ void process_point_obs(int i_nc) {
<< point_obs_file_list[i_nc] << "\n";

// Open the observation file as a NetCDF file.
MetNcPointObs nc_point_obs;
MetNcPointObsIn nc_point_obs;
if(!nc_point_obs.open(point_obs_file_list[i_nc].c_str())) {
nc_point_obs.close();

Expand Down
5 changes: 3 additions & 2 deletions met/src/tools/core/point_stat/point_stat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
// Mod# Date Name Description
// ---- ---- ---- -----------
// 000 04/18/07 Halley Gotway New
// 000 04/18/07 Halley Gotway New
// 001 12/20/07 Halley Gotway Allow verification for level 0
// for verifying PRMSL
// 002 01/24/08 Halley Gotway In compute_cnt, print a warning
Expand Down Expand Up @@ -120,7 +121,7 @@ using namespace std;
#include "vx_log.h"

#include "nc_obs_util.h"
#include "nc_point_obs.h"
#include "nc_point_obs_in.h"

////////////////////////////////////////////////////////////////////////

Expand Down Expand Up @@ -660,7 +661,7 @@ void process_obs_file(int i_nc) {
// Open the observation file as a NetCDF file.
// The observation file must be in NetCDF format as the
// output of the PB2NC or ASCII2NC tool.
MetNcPointObs nc_point_obs;
MetNcPointObsIn nc_point_obs;
if( !nc_point_obs.open(obs_file[i_nc].c_str()) ) {
nc_point_obs.close();

Expand Down
4 changes: 2 additions & 2 deletions met/src/tools/other/plot_point_obs/plot_point_obs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ using namespace std;
#include "vx_render.h"
#include "vx_plot_util.h"
#include "nc_obs_util.h"
#include "nc_point_obs.h"
#include "nc_point_obs_in.h"

////////////////////////////////////////////////////////////////////////

Expand Down Expand Up @@ -156,7 +156,7 @@ void process_point_obs(const char *point_obs_filename) {
mlog << Debug(1) << "Reading point observation file: "
<< point_obs_filename << "\n";

MetNcPointObs nc_point_obs;
MetNcPointObsIn nc_point_obs;
if(!nc_point_obs.open(point_obs_filename)) {
nc_point_obs.close();

Expand Down
4 changes: 2 additions & 2 deletions met/src/tools/other/point2grid/point2grid.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ using namespace std;
#include "vx_util.h"
#include "vx_statistics.h"
#include "nc_obs_util.h"
#include "nc_point_obs.h"
#include "nc_point_obs_in.h"

#include "point2grid_conf_info.h"

Expand Down Expand Up @@ -627,7 +627,7 @@ void process_point_file(NcFile *nc_in, MetConfig &config, VarInfo *vinfo,
usage();
}

MetNcPointObs nc_point_obs;
MetNcPointObsIn nc_point_obs;
nc_point_obs.set_netcdf(nc_in, true);
// Read the dimensions and variables
nc_point_obs.read_dim_headers();
Expand Down

0 comments on commit a44afb7

Please sign in to comment.