You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could not read gt1r/freeboard_segment/latitude from nsidc-cumulus-prod-protected/ATLAS/ATL10/006/2019/09/27/ATL10-02_20190927144209_00110501_006_02.h5
'NoneType' object is not subscriptable
I'm implement a tryexcept block but am running into the following error with the returned list
File ~/NSIDC-Data-Tutorials/notebooks/ICESat-2_Cloud_Access/h5cloud/read_atl10.py:144, in <listcomp>(.0)
142 dfs = pqdm(files, read_h5coro, n_jobs=executors)
143 print(set([type(df) for df in dfs]))
--> 144 combined = pd.concat([df for df in dfs if isinstance(df (gpd.GeoDataFrame, gpd.GeoSeries))])
146 return combined
TypeError: 'GeoDataFrame' object is not callable
When running the https://github.com/nsidc/NSIDC-Data-Tutorials/blob/cryo-184/notebooks/ICESat-2_Cloud_Access/ATL10-h5coro.ipynb notebook for the whole "Antarctic" region, h5coro gives the following error.
This causes a
TypeError
to be returned instead of aGeoPandas.Dataframe
. The concatenation step inread_atl10
then fails.I think we need a
try
,except
block so that a None or some other value is returned.We also need to then filter out the
None
s so thatpd.concat
works.The text was updated successfully, but these errors were encountered: