NCAR / ctsm_python_gallery

A place to put sample workflows and tools that use ctsm model output
Apache License 2.0
18 stars 28 forks source link

test out regridding to a sparse array #36

Closed dcherian closed 3 years ago

dcherian commented 3 years ago

cc @bonnland

Tests out creating sparse+dask arrays for PFT variables. Looks like it works OK.

review-notebook-app[bot] commented 3 years ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

wwieder commented 3 years ago

Thanks for this contribution @dcherian! @danicalombardozzi I'm assuming this is faster than the code you were working on?

dcherian commented 3 years ago

I'm assuming this is faster than the code you were working on?

It would be good to test it out! :)

bonnland commented 3 years ago

I'm working on it in my spare moments today or tomorrow! Just figured out I need to clone deepak's xarray repo, not the pydata/xarray repo to get the updated code.

danicalombardozzi commented 3 years ago

I imagine it's much faster than my script. I think we'll want to test this out against the full data processing from my original script to ensure that the results are the same. For crops, we'll also need to consider the correct masking of crop area due to the merging of multiple crops in the code.