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

Regrid SWOT data to regular grid #7

Open
nilsleh opened this issue Jun 28, 2024 · 1 comment
Open

Regrid SWOT data to regular grid #7

nilsleh opened this issue Jun 28, 2024 · 1 comment

Comments

@nilsleh
Copy link

nilsleh commented Jun 28, 2024

Dear SWOT-community,

I downloaded SWOT L3 data from Aviso for a research project. I am new to SWOT data and these sort of data sources in general, so apologies in advance.

swot = xr.open_dataset("SWOT_L3_LR_SSH_Basic_001_584_20230811T012726_20230811T021852_v1.0.nc")

Screenshot from 2024-06-28 11-49-10

However, I would like to match the SWOT data with other data products that come in a regular grid like (time, lat, lon) format, like so:
Screenshot from 2024-06-28 11-53-28

I have done some searching with respect to possible tools like:

But was wondering if you have a recommended workflow or possibly even a suggestion on how to do this? The SWOT data wouldn't need to be in the same resolution as the other data sources, but should be regridded to be in lat/lon format. Thank you for any hints, suggestions, and possible solutions. Cheers.

@iuryt
Copy link

iuryt commented Nov 27, 2024

This is an old post so you probably have found a workaround for that. An easy way to do that is to interpolate your gridded data to SWOT, since you have the coordinate longitude, latitude defined as dimensions.

gridded.interp(longitude=swot.longitude, latitude=swot.latitude)

I hope that helps.

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

No branches or pull requests

2 participants