-
Notifications
You must be signed in to change notification settings - Fork 2
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
How to open/format a sample forecast datasets? #17
Comments
Hello @observingClouds, thank you for your interest in our work! If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you. |
You're right, I haven't gotten to do much with this recently so it is still rough, but I still want to work on it, so I'm happy to have you kick the tires. From a quick look, I think the format is right, but in some cases xarray doesn't automatically create an index for a coordinate. I'm not exactly sure why it doesn't always do it, but how about trying giving it a nudge to create the index for |
Thanks @abkfenris for your quick response. Registering The issue seems to be that Was there a reason to remove I'll might play around with this a bit more. Just for completeness here are the extra lines of code to set the index of the datasets (which are not needed when using ds0 = ds0.set_xindex(coord_names=['forecast_offset'])
ds1 = ds1.set_xindex(coord_names=['forecast_offset']) |
I'm glad to hear that I made that switch to try to generalize things more, hopefully so that the library could evolve and support various datatree structures with different ways of looking up and matching to how folks were already structuring their data. Clearly it isn't quite there yet... I probably should have an option to do some sort of validation using FYI, I'm about to be largely away from internet access for the next two weeks, so my responses might be a little bit more delayed. |
Hi @abkfenris,
I found your package following the pangeo discussion about forecast formats and wanted to give this a try. The structure and provided functions seem very appealing.
I know this package is non-fully developed yet, but I was wondering if you could give me a quick hint on how to format datasets to match the xarray_fmrc format.
Let's assume the following:
Applying all functions provided by xarray_fmrc, e.g.
dt.fmrc.constant_offset('1h')
result in the same error:What am I doing wrong?
Thank you very much for your help!
The text was updated successfully, but these errors were encountered: