UMR-CNRM / EPyGrAM

Enhanced Python for Graphics and Analysis of Meteorological fields
Other
14 stars 15 forks source link

write fields valid at the same times but not sharing the same basetime in NetCDF writefield #20

Closed sradanov closed 4 months ago

sradanov commented 9 months ago

Add support of different field validity bases in writefield in NetCDF, provided that the dates match.

rebase datetimes of the new field if the validity basis of the new field to write differs from the units basetime of the existing time variable before comparing the two lists of time steps.

This allows to combine fields in a single file that are valid at the same time but come from different sources. For example forecasts from different systems that don't have the same analysis time.