diff --git a/src/tools/other/ioda2nc/ioda2nc.cc b/src/tools/other/ioda2nc/ioda2nc.cc index 4c462afb7c..e852337b4b 100644 --- a/src/tools/other/ioda2nc/ioda2nc.cc +++ b/src/tools/other/ioda2nc/ioda2nc.cc @@ -136,10 +136,10 @@ static void process_ioda_file(int); static void write_netcdf_hdr_data(); static void clean_up(); -static void addObservation(const float *obs_arr, const ConcatString &hdr_typ, +static void addObservation(const double *obs_arr, const ConcatString &hdr_typ, const ConcatString &hdr_sid, const time_t hdr_vld, - const float hdr_lat, const float hdr_lon, const float hdr_elv, - const float quality_mark); + const double hdr_lat, const double hdr_lon, const double hdr_elv, + const double quality_mark); static bool keep_message_type(const char *); static bool keep_station_id(const char *); @@ -162,12 +162,12 @@ static void set_verbosity(const StringArray &); static bool check_core_data(const bool, const bool, const StringArray &, const StringArray &, e_ioda_format); static ConcatString find_meta_name(string meta_key, StringArray available_names); -static bool get_meta_data_float(NcFile *, StringArray &, const char *, float *, - const int); +static bool get_meta_data_double(NcFile *, StringArray &, const char *, double *, + const int); static bool get_meta_data_strings(NcVar &, char *); static bool get_meta_data_strings(NcVar &, char **); -static bool get_obs_data_float(NcFile *, const ConcatString &, NcVar *, - float *, int *, const int, const e_ioda_format); +static bool get_obs_data_double(NcFile *, const ConcatString &, NcVar *, + double *, int *, const int, const e_ioda_format); static bool has_postfix(const std::string &, std::string const &); //////////////////////////////////////////////////////////////////////// @@ -389,7 +389,7 @@ static void process_ioda_file(int i_pb) { double hdr_lon; double hdr_elv; unixtime hdr_vld_ut; - float obs_arr[OBS_ARRAY_LEN]; + double obs_arr[OBS_ARRAY_LEN]; const int debug_level_for_performance = 3; clock_t start_t; @@ -469,7 +469,7 @@ static void process_ioda_file(int i_pb) { } vector v_qc_data; - vector v_obs_data; + vector v_obs_data; StringArray raw_var_names; if(do_all_vars || obs_var_names.n() == 0) raw_var_names = ioda_reader.obs_value_vars; @@ -481,11 +481,11 @@ static void process_ioda_file(int i_pb) { ConcatString desc_attr; for(idx=0; idx