Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ESPACE-DEV
pyrasta
Commits
21851df4
Commit
21851df4
authored
Jul 02, 2021
by
Benjamin Pillot
Browse files
Fix global variable CGIAR_DATA_TYPE (do not import gdal)
parent
0ed84006
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyrasta/tools/srtm.py
View file @
21851df4
...
...
@@ -15,13 +15,11 @@ from tqdm import tqdm
from
pyrasta.raster
import
DigitalElevationModel
from
pyrasta.utils
import
digitize
,
TqdmUpTo
import
gdal
CGIAR_ARCHIVE_FORMAT
=
"zip"
CGIAR_URL
=
"http://srtm.csi.cgiar.org/wp-content/uploads/files/srtm_5x5/TIFF"
CGIAR_NO_DATA
=
-
32768
CGIAR_DATA_TYPE
=
gdal
.
GetDataTypeByName
(
'Int16'
)
CGIAR_DATA_TYPE
=
3
def
_download_srtm_tile
(
tile_name
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment