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

Workflow 3) Reproject all images from swath coordinates to a common lat/lon grid #11

Open
lauracrews opened this issue Aug 9, 2023 · 2 comments

Comments

@lauracrews
Copy link
Collaborator

lauracrews commented Aug 9, 2023

Goal: Regrid from pesky swath coordinates to something more useful

What should our method do?

  • Interpolate the regularly spaced (375 m or 750 m horizontal resolution) but swath-specific coordinates to regularly spaced standard coordinates
  • In other words, we need to create a common lat/lon grid where all pixels are a constant distance apart. We don't want to create a common lat/lon grid where all pixels are on e.g. 1° longitude spacing (which would not be a constant distance)

How do we do it?

  • We need to experiment with the resampling options in Satpy

What questions or issues remain?

  • Is there a sample file that can be experimented with even as we continue working on steps 1 and 2 (load and create images)?
@lauracrews
Copy link
Collaborator Author

lauracrews commented Aug 10, 2023

Update, 10 August (Thursday) morning:

Laura will work on this task this morning. Dalton was having some luck with

scn = Scene(filenames=glob('VNPnc'), reader='viirs_l1b')
local_scn = scn.resample()

which seemed to be putting all files in scn to a common grid.

Remaining questions

  • Can Level 1b and Level 2 data be remapped together by resample? The initial creation of scn used the reader 'viirs_l1b' which seems specific to Level 1b data, so it may not be possible to mix data levels in scn

By running

from satpy import available_readers
available_readers()

I find that there's also the reader 'viirs_l2_cloud_mask_nc' which seems like it would be required for reading the L2 cloud masks

@abkfenris
Copy link
Collaborator

For working with multiple passes, it helps to have a shared grid to resample to. It looks like by default Scene.resample() will most likely try to maximize each source, but it's possible to pass a grid for it to resample to.

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