-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: infs in lats and lons #147
Comments
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 |
This seemed to sovle it, Ill try and put a bug report on |
THere seem to be infs in the lats and lons
This occurred when the RSS data was back online on 20th December
The text was updated successfully, but these errors were encountered: