You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could anyone please confirm the code to extract time range attributes from CALIPSO_1km files? The code I'm talking about is at 'satellite_collocation/instrument_reader.py', Row 215, which is part of the function load_caliop_clayer1km_geoloc ():
I found the generated colocation index is not aligned with the original CALIPSO data for some of the dates when I run examples of abi-calipso colocation. Specifically, I input a CALIPSO granule with time range '2017-02-28T23:35:37 - 2017-03-01T00:02:59', but when I print the returned attribute 'Profile_Datetime', it prints date time ranges from 2017-02-28 to 2017-05-12. Here is the output:
So I checked the code inside instrument.reader.py, and finally located at Row 215: profile_deltas = (cal_utc - cal_utc[0]) * 3600. * 24.
As my understanding, we want to get how many days are past by the start date, and then transform it to seconds. However, it is wrong to calculate by (cal_utc - cal_utc[0]). For example, if the start date is 2017-02-28 and end date is 2017-03-01, then we will have:
cal_utc[-1]- cal_utc[0] = 170301.00208008 - 170228.98306943 = 72.01901065. And 72 days is wrong because actually, the time difference is only 1 day. This also happens when the dates go from Marchi to April, from April to May, etc.
So the point is, the number before the decimal point and after the decimal point is not on the same scale, where the former is year-month-day and the latter is the percentage of a day.
Please let me know if my understanding is wrong or if this should be corrected. Thanks.
The text was updated successfully, but these errors were encountered:
lixy4567
changed the title
The output time range from CALIPSO_L2_1km is weird.
The attribute 'Profile_Datetime' read by instrument_reader.py for CALIPSO_L2_1km data is not correct
Apr 12, 2024
Could anyone please confirm the code to extract time range attributes from CALIPSO_1km files? The code I'm talking about is at 'satellite_collocation/instrument_reader.py', Row 215, which is part of the function load_caliop_clayer1km_geoloc ():
I found the generated colocation index is not aligned with the original CALIPSO data for some of the dates when I run examples of abi-calipso colocation. Specifically, I input a CALIPSO granule with time range '2017-02-28T23:35:37 - 2017-03-01T00:02:59', but when I print the returned attribute 'Profile_Datetime', it prints date time ranges from 2017-02-28 to 2017-05-12. Here is the output:
So I checked the code inside instrument.reader.py, and finally located at Row 215:
profile_deltas = (cal_utc - cal_utc[0]) * 3600. * 24.
As my understanding, we want to get how many days are past by the start date, and then transform it to seconds. However, it is wrong to calculate by (cal_utc - cal_utc[0]). For example, if the start date is 2017-02-28 and end date is 2017-03-01, then we will have:
cal_utc[-1]- cal_utc[0] = 170301.00208008 - 170228.98306943 = 72.01901065. And 72 days is wrong because actually, the time difference is only 1 day. This also happens when the dates go from Marchi to April, from April to May, etc.
So the point is, the number before the decimal point and after the decimal point is not on the same scale, where the former is year-month-day and the latter is the percentage of a day.
Please let me know if my understanding is wrong or if this should be corrected. Thanks.
The text was updated successfully, but these errors were encountered: