Open varisht-tathya opened 1 year ago
I am not the creator of this reader, but I have some possible answers for this behavior while the people who would know better are on vacation.
OLCI is a low-earth orbiting satellite and has 2D lon/lat arrays for its geolocation. In Satpy we store this information in what is known as a "SwathDefinition". This type of geolocation is not compatible with the geotiff image format. Geotiffs only supports gridded data.
To get around this you can resample the data using the Scene.resample
method as shown in the notebook you linked to. The AreaDefinition
you resample to would be a projected grid that could be described in a geotiff.
I checked that avenue as well and tested it on some predefined area definitions. It does grid it out, but I lose out the resolution. I will try with my own Area definition and check.
Yeah the pre-defined areas likely aren't very high resolution.
Are the omerc_bb
and laea_bb
areas any help here? From what I know they should stick fairly closely to the instrument resolution, no?
Describe the bug I am following the tutorial from here: https://nbviewer.org/github/pytroll/pytroll-examples/blob/main/satpy/OLCI%20L1B.ipynb
I want to create a georeferenced TCI image. However the saved scene doesn't have any co-ordinates attached to it.
I get the error:
To Reproduce
Expected behavior I expect the saved GeoTiff file to be georeferenced.
Actual results Text output of actual results or error messages including full tracebacks if applicable.
While writing
Screenshots If applicable, add screenshots to help explain your problem.
Environment Info:
Writers
awips_tiled: ok cf: ok geotiff: ok mitiff: ok ninjogeotiff: ok ninjotiff: cannot find module 'satpy.writers.ninjotiff' (No module named 'pyninjotiff') simple_image: ok
Extras
cartopy: ok geoviews: No module named 'geoviews'