-
Notifications
You must be signed in to change notification settings - Fork 5
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
Change syntax to get NC data #395
Conversation
bors try |
tryBuild succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
My understanding is that the interface was designed to be agnostic of the dataloader. Is this still the case with this change? E.g., would if work with HDF5 instead of NCDatasets? |
Moreover, this comment may be important:
Originally posted by @mwlidar in Alexander-Barth/NCDatasets.jl#233 (comment) I don't know if it applies to us. |
These changes are orthogonal to RRTMGP, since it (thankfully) doesn't depend on NCDatasets. If we decide to use HDF5 on the user side (in ClimaAtmos), then RRTMGP doesn't need to know. We could change it in RRTMGP's test/perf environments, but I figured the simple thing for now is to make RRTMGP compatible with the latest NCDatasets version so that things don't get stale. |
Yeah, I don't think we need to worry about that, since this really depends on the data, and our NC data apparently doesn't have missing / datetime stuff. |
I don't think the problems are completely orthogonal. Consider for example the lines RRTMGP.jl/src/optics/LookUpTables.jl Lines 243 to 247 in 1c1cf39
Whatever ds is, Array(ds["kmajor"]) has to return a four dimensional array of floats. Similarly for the other lines. So, there's a coupling between the reader and RRTMGP (which is why it broke when NCDatasets changed its API). My comment was more along the lines of "is this syntax unique to NCDatasets , or it agreed upon in the community"? If this syntax is unique to NCDatasets , then we are essentially boxing ourselves to using it. However, as I understand it, NCDatasets changed the APIs to be more compatible with the DiskArray package, so hopefully this change will give us more compatibility. It'd be nice to check if Array(HDF5["var"]) implements the same behavior.
|
Ah, whoops, I didn't even realize I was making changes to src. I see. I haven't looked closely enough, but it would be nice if we could move this logic outside of RRTMGP.
Agreed. |
I checked with |
Any reason not to merge this? |
No, i think we can merge |
1c1cf39
to
74eb532
Compare
Buildkite didn't start, so we probably haven't set it right. Let me look at that |
Okay, it was filtering the branches. Now it works. I also bumped the version so that we can release the fixed version. |
Closes #394.