Skip to content

Draft: xarray/main - #413

Draft
mats-knmi wants to merge 97 commits into
masterfrom
xarray/main
Draft

mats-knmi wants to merge 97 commits into
masterfrom
xarray/main

Conversation

@mats-knmi

@mats-knmi mats-knmi commented Jul 30, 2024

Copy link
Copy Markdown
Contributor

This is the draft pull request that will collect all the changes that need to be made to fully integrate xarray into pysteps.

Progress of this project is tracked here.

THIS PULL REQUEST CAN ONLY BE MERGED AS PART OF THE VERSION 2.0 PYSTEPS RELEASE.

mats-knmi and others added 8 commits September 23, 2024 15:38
* make dimension.py xarray compatible

* convert final method in the dimension module

* nanmin in stead of zerovalue in square domain method

* make test steps skill run

* undo accidental change

* remove commented out code

* The dataset can contain more than one dataarray

* Address pull request comments

* Add links to dataset documentation everywhere
* make test steps skill run

* undo accidental change

* make steps nowcast xarray compatible

* wrap all nowcasts in xarray

* fix dimension.py tests

* update dimension.py to work with new dataarrays

* fix test_nowcast_utils tests

* update docs and make xarray usage more explicit in nowcasts

* update docs and make xarray usage in motion methods more explicit
sidekock and others added 30 commits January 20, 2025 17:06
* Fix more tests and make steps nowcast work again

* fix test_motion.py
* Add comments about pixelsize

* Move  comment up slightly

* Add clarification

* Update test_io_mch_gif.py

* Update test_io_mch_gif.py
* converted minutes to seconds for timestep for call to  io.read_timeseries in get_precipitation_fields

* linted

* fixed test_datasets by adding timestep in helper function load_dataset in datasets.py
* On the way to all tests passing in the pysteps 2.0 project. Now working on FMI io tests

* Nearly all IO tests pass now, only FMI_geotiff is acting strangly
* fix test_importer_decorator

* fixed some more tests

* remove test.nc
* All specific IO tests are done

* Fixed last IO test?
…h xarray (#517)

* removed failing plugin test due to cookiecutter not implemented correctly with xarray

* linted
* fix blend utils and xarray dataformat

* fix test blending utils

* fix steps blending tests
* fix blend utils and xarray dataformat

* fix test blending utils

* fix steps blending tests

* fix loose ends and make all relevant tests succeed

* fix donothing

* Add forecast reference time and drop velocity in output dataset

* fix grid_mapping_name

* extrapolate from last value not first
* changed numpy to xarray

* changed string access of precip_var to use attrs defined variable

* add deleted line

* Linted

---------

Co-authored-by: Lars Bonnefoy <lars.bonnefoy@hotmail.com>
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.

4 participants