I have two NetCDF files:
Data1.shape = (177, 180, 360)
Data2.shape = (179, 180, 360))
Date1= {list: 177}['2002-04', '2002-05', '2002-06', … ]
Date2 = {list: 179}['2002-04', '2002-05', '2002-08', … ]
I would like to filter/extract only those data that are match with Date1
.
I should mention that the Date format of the two NetCDF files were different and I changed them to be consistent.
I tried different ways such as groupby
, Timestamp, and reading the documents of a given index to the times. However, I found they are not working for 3D data (time, lon, lat).