-
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
Draft: Backend grid improvements #19
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
victoria-cherkas
changed the title
Draft: Backend grid improvements
Backend grid improvements
Sep 8, 2022
* New function to inspect the data sets obtained by iconarray.open_dataset() * Add function select_data() to select specific variables from a dataset and get results as a dictionary for easier access to the data. * Add tests for select_data(). * Small doc string improvement. * Improved error handling if grid file does not match all selected variables in select_data() * Better parameter name in select_data(). * flake8 * Change xarray.DataSet to xarray.DataArray in dict in select_data(). This improves usability. * Update README.md Co-authored-by: Victoria Cherkas <[email protected]> * Fix data_inspect() so that it can handle multiple valid time in one GRIB file. * Fix data_inspect() to print all available valid times for netCDF input data. * * Renamed data_inspect() to inspect_data() * Added very simple test for inspect_data() * * actually add the simple test for inspect_data() * fix formatting * Improved error handling. * Improve try except block for better readability. Co-authored-by: Victoria Cherkas <[email protected]>
Passing on Jenkins https://jenkins-mch.cscs.ch/job/iconarray_PR/15/ |
victoria-cherkas
changed the title
Backend grid improvements
Draft: Backend grid improvements
Nov 16, 2022
leuty
pushed a commit
to leuty/iconarray
that referenced
this pull request
May 16, 2023
Updated the README Closes C2SM#16
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New Features:
data_inspect()
to print the relevant content of the data. It takes an xarray.Dataset or a list of xarray.Datasets as inputselect_data()
to select some specified variables. It takes an xarray.Dataset, a list of xarray.Datasets or a path to a file as input, and a list of variables. Optionally, one can also specify a grid file to combine.Changes:
combine_grid_information
improved error handlingopen_dataset