pytroll/pyresample

Warning log message is incorrectly showing resolution as 'meters'

simonrp84 opened this issue · 0 comments

Problem description

The code here:
https://github.com/pytroll/pyresample/blob/main/pyresample/area_config.py#L724

Raises a warning log message if the output area size are not a whole number. This is fine, but the message uses the word meters even in cases where the input resolution is given in degrees.

Example

from pyresample import create_area_def
area_ext = (-180, -65, 180, 65)
res = (0.03, 0.03)
targ_srs = create_area_def("source_area", "EPSG:4326", area_extent=area_ext, resolution=res)

Gives this message:

WARNING:root:shape found from radius and resolution does not contain only integers: (4333.333333333334, 12000.0)
Rounding shape to (4334, 12000) and resolution from (0.03, 0.03) meters to (0.03, 0.029995385325334564) meters

But the resolution passed to create_area_def is in degrees...