Skip to content

Commit

Permalink
Merge pull request #45 from SAR-ARD/bugfix/dem_handling
Browse files Browse the repository at this point in the history
dem handling improvements
  • Loading branch information
johntruckenbrodt authored Jul 3, 2022
2 parents 7f8c0bb + f025ebb commit c1085cf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions S1_NRB/dem.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ def prepare(geometries, dem_type, spacing, dem_dir, wbm_dir,
if not os.path.isfile(fname_dem_tmp):
dem_autoload([geometry], demType=dem_type,
vrt=fname_dem_tmp, buffer=buffer, product='dem',
username=username, password=password)
username=username, password=password,
dst_nodata=0, hide_nodata=True)
###############################################
if len(dem_target.keys()) > 0:
print('### creating DEM MGRS tiles: \n{tiles}'.format(tiles=list(dem_target.keys())))
Expand All @@ -111,7 +112,8 @@ def prepare(geometries, dem_type, spacing, dem_dir, wbm_dir,
dem_create(src=fname_dem_tmp, dst=filename,
t_srs=epsg_tile, tr=(tr, tr), pbar=True,
geoid_convert=geoid_convert, geoid=geoid,
outputBounds=bounds, threads=threads)
outputBounds=bounds, threads=threads,
nodata=-32767)
if os.path.isfile(fname_wbm_tmp):
if len(wbm_target.keys()) > 0:
print('### creating WBM MGRS tiles: \n{tiles}'.format(tiles=list(wbm_target.keys())))
Expand Down
2 changes: 1 addition & 1 deletion environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
- pip
- pystac
- scipy
- pyroSAR>=0.17.2
- pyroSAR>=0.17.3
- s1etad>=0.5.3
- s1etad_tools>=0.8.1
- sphinx
Expand Down
2 changes: 1 addition & 1 deletion environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ dependencies:
- pip
- pystac
- scipy
- pyroSAR>=0.17.2
- pyroSAR>=0.17.3
- s1etad>=0.5.3
- s1etad_tools>=0.8.1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
'click',
'lxml',
'pystac',
'pyroSAR>=0.17.2',
'pyroSAR>=0.17.3',
'scipy',
's1etad>=0.5.3'],
extras_require={
Expand Down

0 comments on commit c1085cf

Please sign in to comment.