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

Allowing multiple dimensions in sequence_dim #98

Open
chiaral opened this issue Apr 6, 2021 · 0 comments
Open

Allowing multiple dimensions in sequence_dim #98

chiaral opened this issue Apr 6, 2021 · 0 comments

Comments

@chiaral
Copy link

chiaral commented Apr 6, 2021

Right now my understanding is that only one dimension can be used/created to concatenate files.

Example:

recipe = NetCDFtoZarrSequentialRecipe(
    input_urls=input_urls,
    sequence_dim="time",
)

Forecast data - however - they have multiple "concatenated" dimensions, or at least 2: Start time, ensemble members

As of now in this issue I am concatenating the files along Start time. Something like the following:

recipe = NetCDFtoZarrSequentialRecipe(
    input_urls=input_urls,
    sequence_dim=["time", "ensemble"]
)

would be required, with some type of nested processing of the data.

To be honest, I don't think this is a super urgent issue. We can easily create a file for each ensemble member - and then the user can easily xr.merge or xr.combine_by_coords the various ensemble members. It might actually be a good compromise to handle separately the ensemble members that have different time resolution. We simply generate one file for each ensemble member. Still, I wanted to report this need.

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

No branches or pull requests

1 participant