-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
Description
Problem
It seems that areas in the mercator projection are not shown and used correctly.
For example, when using the area
CE_1160x800:
description: Central Europe 1160x800
projection:
proj: merc
lat_0: 50
lon_0: 14.5
ellps: WGS84
shape:
width: 1160
height: 800
area_extent:
lower_left_xy: [-1805152.04, 5172213.35]
upper_right_xy: [1811322.74, 7660679.05]
just a black screen appears on the main window:

If I try to resample a LEO granule that is over France to this area, and then switch to plate carree, I see that the data has been resampled to Mongolia:

For reference, this is the plain Satpy result:

Additional Information
- Not sure if it's related, but there is a code comment mentioning mercator issues workarounds here:
Lines 941 to 942 in f5e584c
# Clip lats to +/- 89.9 otherwise PROJ.4 on mercator projection will fail np.clip(vertex_buffer[:, 1], -89.9, 89.9, out=vertex_buffer[:, 1]) - logs do not show anything particular, apart from the usual
2023-06-12 16:22:06 DEBUG document:change_projection:L125 Changing projection (area definition) from 'MSG SEVIRI FES 3km' to 'CE_1160x800'
/tcenas/proj/optcalimg/OFTs/SIFT/conda-packaged_v2.0.0b0/SIFT_2.0.0b0/lib/python3.11/site-packages/pyproj/crs/crs.py:1286: UserWarning: You will likely lose important projection information when converting to a PROJ string from another format. See: https://proj.org/faq.html#what-is-the-best-format-for-describing-coordinate-reference-systems
proj = self._crs.to_proj4(version=version)