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

Draft: Backend grid improvements #19

Closed
wants to merge 17 commits into from

Conversation

victoria-cherkas
Copy link
Collaborator

@victoria-cherkas victoria-cherkas commented Jul 21, 2022

New Features:

  • data_inspect() to print the relevant content of the data. It takes an xarray.Dataset or a list of xarray.Datasets as input
  • select_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 handling
  • refactoring of open_dataset

@victoria-cherkas victoria-cherkas changed the title Draft: Backend grid improvements Backend grid improvements Sep 8, 2022
victoria-cherkas and others added 7 commits September 8, 2022 13:43
* 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]>
@victoria-cherkas
Copy link
Collaborator Author

Passing on Jenkins https://jenkins-mch.cscs.ch/job/iconarray_PR/15/
dnd icon-vis PR on Jenkins which uses this branch as version of iconarray to install.

@victoria-cherkas victoria-cherkas changed the title Backend grid improvements Draft: Backend grid improvements Nov 16, 2022
@victoria-cherkas victoria-cherkas removed the request for review from cosunae November 16, 2022 10:32
@victoria-cherkas victoria-cherkas removed the enhancement New feature or request label Nov 16, 2022
leuty pushed a commit to leuty/iconarray that referenced this pull request May 16, 2023
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

Successfully merging this pull request may close these issues.

Improve open_dataset() and add data summary functionality
2 participants