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

Example with global data in spherical projection #17

Closed
banesullivan opened this issue Jun 22, 2022 · 7 comments
Closed

Example with global data in spherical projection #17

banesullivan opened this issue Jun 22, 2022 · 7 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@banesullivan
Copy link
Member

banesullivan commented Jun 22, 2022

https://www.ncei.noaa.gov/products/optimum-interpolation-sst

oisst-avhrr-v02r01.19810901.nc.zip

import xarray
ds = xarray.open_dataset('oisst-avhrr-v02r01.19810901.nc')
ds.err.plot()

download

@banesullivan banesullivan changed the title Example with global data Example with global data in spherical projection Jun 22, 2022
@banesullivan banesullivan added the documentation Improvements or additions to documentation label Jun 28, 2022
@banesullivan
Copy link
Member Author

The tricky part is performing the 3D coordinate transform - this can get very complicated very quickly and this library's goal is not to perform coordinate transforms.

I'm going to see what I can do to use existing tools to do this.

@banesullivan banesullivan added the enhancement New feature or request label Jul 2, 2022
@banesullivan
Copy link
Member Author

had a great chat with @bjlittle about using geovista to this end - he's created some fantastic functionality in that library to handle all of the coordinate transforms, and I think with a little bit of work, we can leverage geovista's transformer/bridge to handle the 3D reprojections here.

ref https://geovista.readthedocs.io/en/latest/ and https://github.com/bjlittle/geovista

We will follow up in a few weeks

@RichardScottOZ
Copy link
Contributor

That is one I did not know about, so thanks.

@bjlittle
Copy link

bjlittle commented Jul 25, 2022

@banesullivan I've made some time to spin back up and show some love to geovista.

I've bolstered the README.md in the short-term until I get space/time to fully bootstrap the docs for the 0.1.0 release.

However, you'll be glad to hear that I've also made most of the geovista/examples self-contained, so that they are agnostic of SciTools/iris and automatically download and cache the required geovista sample data that they require. I still have a couple more examples to self-contain, which I'm looking at now, but I'll let you know when I've done that 👍

There are still a few major wrinkles to iron out prior to the 0.1.0 release, but I'm also super keen to start thinking about providing support for rectilinear/uniform/structured pyvista grids to underpin your pyvista-xarray use case. That would be pretty awesome.

@bjlittle
Copy link

bjlittle commented Jul 25, 2022

@banesullivan BTW the above NOAA/NCEI OISST AVHRR sst dataset looks like this:
image

Which looks rather lush. I also added the dataset as a GeoVista pantry sample, and highlighted it on the README and also created an example, see example_from_1d__oisst.py.

@RichardScottOZ
Copy link
Contributor

This looks excellent.

@banesullivan
Copy link
Member Author

I'm going to mark this issue complete with examples in the examples/ directory now that show how to use PyVista-Xarray with GeoVista. However, this work is not fully complete until the following Pull Requests merge:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants