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

added xu_open_dataset wrapper #236

Merged
merged 3 commits into from
Jan 15, 2025

Conversation

LuukBlom
Copy link
Collaborator

Issue addressed

Fixes #

Explanation

Explain how you addressed the bug/feature request, what choices you made and why.

Checklist

  • Updated tests or added new tests
  • Branch is up to date with main
  • Updated documentation if needed
  • Updated changelog.rst if needed

Additional Notes (optional)

Add any additional notes or information that may be helpful.

@LuukBlom LuukBlom requested a review from roeldegoede January 15, 2025 16:07
@roeldegoede roeldegoede merged commit e776a8e into quadtree_io Jan 15, 2025
1 check passed
@roeldegoede roeldegoede deleted the fix/add-wrapper-for-xugrid.open_dataset branch January 15, 2025 16:29
roeldegoede added a commit that referenced this pull request Jan 22, 2025
* potential bugfix havg

* undo previous commit and update computation of wet fractions (and increased readability)

* fix wet fractions and corresponding havg

* add dependencies

* add reading/writing quadtree netcdf files

* add read/write subgrid quadtree

* add quadtree io in main sfincs.py

* Solve some linting warnings

* make datashader optional dep

* add bounds property (since the original calls read_grid) and remove grid api

* fixing read_results and plot_basemap for quadtree models. Also fixed #133

* add quadtree IO tests

* extended tests for quadtree io, plot_basemap and read_results

* imrpoved downscaling methods (both bugfixes and allow for ugrids)

* pre-commit linting

* pre-commit test-data

* changed fix for plotting; not longer reprojecting to epsg4326 by default but using another cartopy projection

* fix pyflwdir version for now (to be investigated)

* fix typo in pyproject.toml

* test fixing docs workflows, since Mambaforge gets deprecated ...

* miniforge3?

* Delete tests/data/sfincs_test_quadtree/sfincs_log.txt

* bugfix so sfincs_his.nc files are closed correctly (#232)

* bugfix so that the .nc file is closed automatically when erroring or when leaving the context manager (with block). see pydata/xarray#1629 (comment)

* fixed all occurences of xr.opendataset with the safe open&close pattern

* review comments by Roel

* fix linting

---------

Co-authored-by: roeldegoede <[email protected]>

* added xu_open_dataset wrapper (#236)

* added xu_open_dataset wrapper.

* load_dataset -> open_dataset

* linting

---------

Co-authored-by: roeldegoede <[email protected]>

---------

Co-authored-by: DirkEilander <[email protected]>
Co-authored-by: Tim Leijnse <[email protected]>
Co-authored-by: LuukBlom <[email protected]>
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.

2 participants