Commit 8afc05c8 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Added extra validation of MGRS tiles to avoid writing empty tiles.

Updated minimal version of geoarray.
parent d44b1c4a
......@@ -1185,6 +1185,14 @@ class GMS_object(Dataset):
% (GDF_row.granuleid, self.scene_ID, self.entity_ID),
progress=CFG.log_level in ['DEBUG', 10],
v=v)
# validate that the MGRS tile truly contains data
# -> this may not be the case if get_overlapping_MGRS_tiles() yielded invalid tiles due to inaccurate
# self.trueDataCornerLonLat
if True not in list(np.unique(tileObj.arr.mask_nodata)):
self.logger.info("MGRS tile '%s' has not been skipped because it contains only no data values.")
continue
MGRS_tileID = GDF_row['granuleid']
# set MGRS info
......
py_tools_ds>=0.12.4
geoarray>=0.7.1
geoarray>=0.7.12
arosics>=0.6.6
git+https://gitext.gfz-potsdam.de/EnMAP/sicor.git
matplotlib
......
......@@ -14,7 +14,7 @@ with open('HISTORY.rst') as history_file:
requirements = [
'matplotlib', 'numpy', 'scikit-learn', 'scipy', 'gdal', 'pyproj', 'shapely', 'ephem', 'pyorbital', 'dill', 'pytz',
'pandas', 'numba', 'spectral>=0.16', 'geopandas', 'iso8601', 'pyinstrument', 'geoalchemy2', 'sqlalchemy',
'psycopg2', 'py_tools_ds>=0.12.4', 'geoarray>=0.7.1', 'arosics>=0.6.6', 'six', 'tqdm', 'jsmin', 'cerberus',
'psycopg2', 'py_tools_ds>=0.12.4', 'geoarray>=0.7.12', 'arosics>=0.6.6', 'six', 'tqdm', 'jsmin', 'cerberus',
'nested_dict', 'openpyxl', 'timeout_decorator', 'python-redis-lock', 'redis', 'psutil'
# spectral<0.16 has some problems with writing signed integer 8bit data
# fmask # conda install -c conda-forge python-fmask
......
......@@ -78,7 +78,7 @@ dependencies:
- redis
- psutil
- py_tools_ds>=0.12.4
- geoarray>=0.7.0
- geoarray>=0.7.12
- arosics>=0.6.6
# sicor
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment