-
Notifications
You must be signed in to change notification settings - Fork 13
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
XIOS: Determine Axes and Domains from NetCDF file #732
Comments
The ultimate plan is of course to replace my ad-hoc IO with XIOS. So, below is how file reading currently works.
Additionally there is reading forcing data from forcing files, which contain many time samples. Currently the forcing files are fixed to the same grid as the model fields, but the hope is that XIOS or OASIS will allow us to use the files provided in the reanalysis datasets. The summary is that the current method is to read the dimensions and fields as part of the input process, and not to have them predefined in the configuration file, if possible. And definitely not to set them at compile time. |
Thanks for the description here @timspainNERSC, it's really useful! I'll implement file writing first and see what comes up there before coming back to this to implement file reading. |
One approach would be to generate an XML file for XIOS from the NetCDF restart file (see #501). |
Thinking more about what's required for #552, I realised there's a key missing piece for reading files.
Usually, XIOS reads in an XML configuration file along with the NetCDF file that contains the data. The XML file says how to set up the various attributes, e.g., Axes, Domains, Fields. If we want to go ahead with using the XIOS API instead of XML files then we need to be able to read such information from NetCDF files directly. This could be done by borrowing from the existing I/O implementation, for example.
On the other hand, am I right in thinking that the only use case for having XIOS read from file is for restarts? In the case of restarts, you presumably already know how the dimensions and fields are laid out so could reproduce the XIOS attributes without needing to read them.
Any thoughts on this @timspainNERSC @einola?
The text was updated successfully, but these errors were encountered: