Jasper,
If the MODIS data you are providing is only available at 5km then that's
the only resolution the reader/Scene will be able to load. The
`resolution` passed to Scene.load as Ernst pointed out is only for
choosing between the resolutions available from the data files (ex. L1b
files are typically available in 250m, 500m, 1km for bands 1 and 2).
"reduce_data" is passed to Scene.resample and will not have an effect
here. Data reduction is used for gridded data (ex. geostationary) and
stops pre-resampling processing which slices away the input chunks that
Satpy knows won't appear in the output. It has no effect for swath-based
data like MODIS (unless you have a gridded L2 or L3 product which I
don't think our readers currently support).
Resampling is the only way to convert the resolution of the data to
something higher resolution *but* you are still only starting with 5km
data so it won't add any information that you don't already have. The
only other reason to do this would be to compare to other data at that
resolution, but in that case you want to resample to the Swath or Area
of that other data. In your code you are creating a new AreaDefinition
based on your existing swath extents and size which might not be the
best way to preserve resolution. You may want to try creating your
AreaDefinition by specifying the resolution in `create_area_def` instead
of the shape as described here:
https://pyresample.readthedocs.io/en/latest/geometry_utils.html
Lastly, you should make sure you update the python-geotiepoints. I just
released a new version last week that should speed up MODIS geolocation
interpolation by 30-60 seconds.
Dave
> --
> You received this message because you are subscribed to the Google
> Groups "pytroll" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
pytroll+u...@googlegroups.com
> <mailto:
pytroll+u...@googlegroups.com>.
> To view this discussion on the web, visit
>
https://groups.google.com/d/msgid/pytroll/847a4067-493a-450e-a5ab-e38e2f1a8f98n%40googlegroups.com
> <
https://groups.google.com/d/msgid/pytroll/847a4067-493a-450e-a5ab-e38e2f1a8f98n%40googlegroups.com?utm_medium=email&utm_source=footer>.