I was attempting to read MAVEN SEP level 2 datasets, which can have multiple NaNs in the time axis. After successfully pulling the TT2000 and Unix time fields from the CDF, I tried to convert the TT2000 into datetime via cdfepoch.to_datetime. However, it appears to floor the values by hour in the rest of the converted time array when there are multiple NaT values (which appear as -9223372036854775807) in the array. When I filter out the NaT values before converting via cdfepoch.to_datetime, the function works properly. Here is a figure I made of the Unix time versus the cdfepoch.to_datetime result, on the raw TT2000 and the filtered TT2000:
It's really strange that the presence of multiple fillvals in the TT2000 can throw off the entire array. The file I'm reading is mvn_sep_l2_s1-cal-svy-full_20220801_v04_r03.cdf, which is accessible here.
I was attempting to read MAVEN SEP level 2 datasets, which can have multiple NaNs in the time axis. After successfully pulling the TT2000 and Unix time fields from the CDF, I tried to convert the TT2000 into datetime via cdfepoch.to_datetime. However, it appears to floor the values by hour in the rest of the converted time array when there are multiple NaT values (which appear as -9223372036854775807) in the array. When I filter out the NaT values before converting via cdfepoch.to_datetime, the function works properly. Here is a figure I made of the Unix time versus the cdfepoch.to_datetime result, on the raw TT2000 and the filtered TT2000:
And the code:
It's really strange that the presence of multiple fillvals in the TT2000 can throw off the entire array. The file I'm reading is mvn_sep_l2_s1-cal-svy-full_20220801_v04_r03.cdf, which is accessible here.