openclimatefix / MetOfficeDataHub

Python wrapper around MetOffice Atmospheric Model Data REST API
MIT License
3 stars 0 forks source link

Onyl save last X hours in 'latest.netcdf' #34

Closed peterdudfield closed 2 years ago

peterdudfield commented 2 years ago

Detailed Description

Currently all about a months, worth is saved in the netcdf. This bug appeared when we started saving raw files to s3. Would be good to only save the last X(say 6 hours) in the last file

Possible Implementation

Filter datetime in filename and only load ones < 6 hours

peterdudfield commented 2 years ago

fix in 1.0.34