Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mutiple files with different time "Units" #63

Open
ChrisBarker-NOAA opened this issue Mar 15, 2021 · 0 comments
Open

mutiple files with different time "Units" #63

ChrisBarker-NOAA opened this issue Mar 15, 2021 · 0 comments

Comments

@ChrisBarker-NOAA
Copy link
Contributor

If you try to use multipel files (netCDF4.MFDataset), they maybe have different time units, such as:

"hours since 2009-1-1 00:00:00"
and
"hours since 2009-1-2 00:00:00"

This is not SO rare, as some software uses the first time as the ephoc when writting a file.

It turns out that netCDF4 provides:

netCDF4.MFTime(time, units=None, calendar=None)
Docstring:     
Class providing an interface to a MFDataset time Variable by imposing a unique common
time unit and/or calendar to all files.

So we could use that in gridded to address ths issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant