GEUS-Glaciology-and-Climate / AWS_v3

PROMICE AWS v3 processor - IDL/GDL
0 stars 0 forks source link

Time shifted data (SlimTableMem, transmitted) assigns incorrect date #2

Open mankoff opened 3 years ago

mankoff commented 3 years ago

The simplest way to reproduce this bug is to run only EGP 2019 transmitted

EGPmetadata.csv is:

file_number filename slimtablemem? transmitted? header_lines data_lines columns year start latitude_N(dd.ddddd) longitude_W(dd.ddddd) UTC_offset(h) T_hygroclip_offset(C) SRin_calcoef SRout_calcoef LRin_calcoef LRout_calcoef H_PT_calcoef H_PT_p_cal H_PT_factor antifreezePT(%) rotation_ini(deg) col_datetime col_date col_year col_month col_day col_day_of_year col_time col_hour col_minute col_minute_of_year col_p col_T col_T_hygroclip col_RH col_WS col_WD col_WD_sd col_SRin col_SRout col_LRin col_LRout col_T_rad col_H_aws col_qual_H_aws col_H_stk col_qual_H_stk col_H_pt col_Tice1 col_Tice2 col_Tice3 col_Tice4 col_Tice5 col_Tice6 col_Tice7 col_Tice8 col_ornt col_tiltX col_tiltY col_GPStime col_GPSlat col_GPSlon col_GPSelev col_GPSgeoid col_GPSqual col_GPSnumsats col_GPShdop col_Tlog col_Ifan col_Vbat_ini col_Vbat col_season
8 EGP_2019_raw_transmitted.txt no yes 0 6350 38 2019 75.62 35.98 0 0 12.71 12.71 12.71 12.71 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 3 4 5 6 7 8 0 9 10 11 12 13 14 0 15 0 0 17 18 19 20 21 22 23 24 0 25 26 27 28 29 30 0 0 0 31 0 32 0 33 0  

The top 15 lines and first few columns of the output, EGP_inst_v03.txt is then:

Year MonthOfYear DayOfMonth HourOfDay(UTC) MinuteOfHour DayOfYear AirPressure(hPa)
2019 7 29 12 0 210 744.3
2019 7 29 13 0 210 744.2
2019 7 29 14 0 210 744.3
2019 7 29 15 0 210 744.1
2019 7 29 16 0 210 744
2019 7 29 17 0 210 744.3
2019 7 29 18 0 210 744.5
2019 7 29 19 0 210 744.5
2019 7 29 20 0 210 744.9
2019 7 29 21 0 210 745
2019 7 29 22 0 210 745.4
2019 7 30 23 0 211 745.5
2019 7 30 0 0 211 745.7
2019 7 30 1 0 211 745.9

Note the 3rd row from the bottom: