NTNU-SmallSat-Lab / hypso-satpy

1 stars 0 forks source link

L1a .NC reader RuntimeWarning: invalid value encountered in cast #22

Closed CameronLP closed 8 months ago

CameronLP commented 8 months ago

Using L1a .NC reader results in the warning: /home/cameron/miniforge3/lib/python3.10/site-packages/dask/array/chunk.py:278: RuntimeWarning: invalid value encountered in cast return x.astype(astype_dtype, **kwargs)

CameronLP commented 8 months ago

This warning was caused by EPSG:3857 GCPs being loaded instead of EPSG:4326 GCPs. Captures were resampled using the incorrect GCP-generated lat/lon arrays which produced empty resampled gridded data consisting of only np.NaN values. The warning was produced when RGB composites were generated from the empty datasets. The fix for this issue was to ensure all the GCPs are using EPSG:4326.