-
Notifications
You must be signed in to change notification settings - Fork 303
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
Resampling MODIS Level 1B data #1745
Comments
Some resamplers do not support SwathDefinitions as target/destination areas. It is not well documented and it is not actively checked for. It is something we want to improve in pyresample 2.0 which we are designing and working on. You will need to resample to an AreaDefinition with these other resamplers. |
@djhoese thanks for the quick response! That makes sense. Is there an easy way to define a sensible AreaDefinition from the SwathDefinition? For example, the min area containing the swath extent? I could not see an example in the docs, but perhaps I missed something? |
I'm not sure it is well documented. You would have to decide what projection your MODIS data would look best in and then create an AreaDefinition. There are utilities in pyresample to help with this: https://pyresample.readthedocs.io/en/latest/geometry_utils.html But right now they still require you, the user, to know what projection you want to use. If you don't provide all the information (like the extents), these utilities will return a DynamicAreaDefinition which can be passed to |
Thanks for clarifying and pointing me to some useful docs. I think you can mark this one as closed. |
Describe the bug
Hi, I am trying to plot some MODIS level 1B data and trying out different resampling strategies. The "nearest" strategy seems to work, but other resampling strategies seem to give the following exception:
Am I doing something obviously wrong? Is there an issue here?
To Reproduce
Expected behavior
The scene to be resampled correctly and the resampled data to be plotted.
Actual results
Text output of actual results or error messages including full tracebacks if applicable.
Environment Info:
Additional context
N/a
The text was updated successfully, but these errors were encountered: