Open peterdudfield opened 1 year ago
I tried doing something like this, but it did not work
except ValueError("Latitude values can not contain inf values."):
""" This can sometimes happen where the area has a inf values with 'area_extent_ll'
In general I (PD) dont like this, as
1. I think this should be sorted in satpy
2. we are using _datasets which we shouldn't
3. Seems dodgy just replacing 'inf' values.
"""
n_datasets = len(scene._datasets)
for i in range(n_datasets):
logger.debug(f'Checking for infs in {scene._datasets.keys()[i].name}')
ds = scene._datasets[scene._datasets.keys()[i]]
area = ds.attrs.get('area')
if area.area_extent_ll == (np.inf,np.inf,np.inf,np.inf):
logger.debug('Found inf values in "area_extent_ll", so changing them to "area_extent"')
area.area_extent_ll = area.area_extent
scene._datasets[scene._datasets.keys()[i]].attrs['area'] = area
scene = scene.crop(ll_bbox=GEOGRAPHIC_BOUNDS[area])
this would be in satip/utils 273
Idea: to have an easy way to switch to the 15 mins satellite data. I.e oput this in the click argument
I downgraded to pyresample==1.25.0
and seemed to not get the error locally, will ahve to test of course
This seemed to sovle it, Ill try and put a bug report on pyresample
, but its good to find out what version jump did this. Reference @devsjc and @jacobbieker just incase your interested
THere seem to be infs in the lats and lons
This occurred when the RSS data was back online on 20th December