Closed mraspaud closed 1 year ago
Related: #393
NB: this gets triggered from Satpy if you use pad_data=False
for geostationary data:
import hdf5plugin
import pathlib
import os
from satpy import Scene
from glob import glob
bd = pathlib.Path("/media/nas/x21308/MTG_test_data/2022_05_MTG_Testdata/RC0040/")
sc = Scene(filenames=[os.fspath(f) for f in bd.glob("*BODY*003[789].nc")],reader="fci_l1c_nc")
sc.load(["vis_04"], pad_data=False)
ls = sc.resample("nqeuro1km")
ls.save_datasets()
Code Sample, a minimal, complete, and verifiable piece of code
Problem description
This crashes (as reported in https://github.com/pytroll/satpy/issues/2368) because the lons and lats of the bounding box computed by pyresample for the geostationary area contain
np.inf
values.Expected Output
I expect this not to crash
Actual Result, Traceback if applicable
Versions of Python, package at hand and relevant dependencies
Crashes in pyresample >1.25.0