From f6b0f16a48f71e3d5f8971eac5b0131eaca49dfa Mon Sep 17 00:00:00 2001 From: Howard Soh Date: Wed, 29 Mar 2023 11:07:36 -0600 Subject: [PATCH] #2493 Update lat/lon/elv when station_id (site_name) is changed --- src/tools/other/ascii2nc/aeronet_handler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/other/ascii2nc/aeronet_handler.cc b/src/tools/other/ascii2nc/aeronet_handler.cc index 8a30c46f76..bc607d1960 100644 --- a/src/tools/other/ascii2nc/aeronet_handler.cc +++ b/src/tools/other/ascii2nc/aeronet_handler.cc @@ -430,7 +430,7 @@ bool AeronetHandler::_readObservations(LineDataFile &ascii_file) } _addObservations(Observation(header_type, - (sid_idx<0 ? _stationId : data_line[sid_idx]), + cur_sid, valid_time, _stationLat, _stationLon, _stationAlt, @@ -448,7 +448,7 @@ bool AeronetHandler::_readObservations(LineDataFile &ascii_file) double aod_at_550 = angstrom_power_interplation(aod_at_675,aod_at_440,675.,440.,dheight); if (!is_eq(aod_at_550, bad_data_double)) { _addObservations(Observation(header_type, - (sid_idx<0 ? _stationId : data_line[sid_idx]), + cur_sid, valid_time, _stationLat, _stationLon, _stationAlt, na_str, var_id, bad_data_double, dheight, aod_at_550,