Comments (14)
@alexamici sorry for the noise it was my fault, the elevation package works fine with SRTM3 by default.
Looking forward to hear good from you for SRTM1....
Thank you.
from elevation.
Integrated Amazon SRTM1 mirror and making the 30m the default again.
from elevation.
As a matter of fact MacOSX is my primary development platform and I use Elevation regularly on it, so it must be something specific to your setup. Can you please report the output of:
eio selfcheck
Furthermore what version are you using? The PyPi release or GitHub master?
from elevation.
I'm actually getting the exact same error on Mac OS X. eio
was working previously for me as of a few weeks ago. selfcheck
reports Your system is ready.
. This is on eio version 0.9.9
, installed via pip.
from elevation.
@alexamici thanks for your quick reply.
I am using elevation module (master version) as an external library, as follow:
import sys
sys.path.append("/Users/larosa/dev/ext-libs")
import elevation
elevation.clip(bounds=(12.35, 41.8, 12.65, 42), output='/Users/larosa/Rome-DEM.tif')
and running selfcheck I get:
from elevation import cli
cli.selfcheck()
Your system is ready.
from elevation.
Ok, I managed to reproduce the error on my machine after doing a eio distclean
.
Looks like the data provider usgs.gov switched to authorised downloads only :( This isn't a MacOSX bug you should not be able to download new tiles from Linux as well.
@slarosa can you please confirm? Note that Elevation caches downloaded tiles, so please test clipping in a location that you never tried before.
from elevation.
I'm going to make an emergency release to change the default product to SRTM3
and add a warning about SRTM1
. Unfortunately the data policy was quite clear that direct access was not supported.
from elevation.
@slarosa can you please confirm? Note that Elevation caches downloaded tiles, so please test clipping in a location that you never tried before.
:-( just after a distclean Linux fails to get SRTM1 as well.
from elevation.
Looks like someone had the brilliant idea to download all of SRTMGL1 from the "direct" server and arguably USGS got upset: https://twitter.com/cartocalypse/status/759855534379929600
Getting Elevation to work with USGS credentials might be possible, but quite some work :(
from elevation.
Hi @alexamici, testing against master version, I again get the error. I see the *.tif file in cache
directory but it has 0 byte as size. Monitoring the spool
directory I see that the *.zip file is downloaded correctly before cleaning.
I always get "Your system is ready." by running cli.selfcheck()
.
Any hint? Thank you!
from elevation.
Release 0.9.10 and master both download SRTM3 by default that is expected to work. If you force product='SRTM1' you'll have the same error as before.
Anyway, HTTP errors leaves 0 byte files that stop Elevation from trying downloading the tile again, this is intended behaviour for non existing tiles, unfortunately also temporary HTTP errors trigger the same behaviour. Your best bet is to run eio distclean
, otherwise you may remove the unwanted 0 bytes files yourself.
from elevation.
Looks like SRTMGL1 is now on S3! https://aws.amazon.com/public-data-sets/terrain/
from elevation.
Thank you @alexamici .
from elevation.
Hi, I'm getting the following error, Windows 11, py 3.9
Traceback (most recent call last):
File "C:\Users\FALAH FAKHRI\AppData\Local\Temp/ipykernel_21944/2656178845.py", line 1, in
elevation.clip(bounds=(12.35, 41.8, 12.65, 42), output=path + 'Rome-DEM.tif')
File "C:\Users\FALAH FAKHRI\AppData\Local\Programs\Python\Python39\lib\site-packages\elevation\datasource.py", line 216, in clip
datasource_root = seed(bounds=bounds, **kwargs)
File "C:\Users\FALAH FAKHRI\AppData\Local\Programs\Python\Python39\lib\site-packages\elevation\datasource.py", line 188, in seed
ensure_tiles(datasource_root, ensure_tiles_names, **kwargs)
File "C:\Users\FALAH FAKHRI\AppData\Local\Programs\Python\Python39\lib\site-packages\elevation\datasource.py", line 148, in ensure_tiles
return util.check_call_make(path, targets=['download'], variables=variables_items, **kwargs)
File "C:\Users\FALAH FAKHRI\AppData\Local\Programs\Python\Python39\lib\site-packages\elevation\util.py", line 88, in check_call_make
subprocess.check_call(cmd, shell=True)
File "C:\Users\FALAH FAKHRI\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command 'make -C C:\Users\FALAH FAKHRI\AppData\Local\bopen\elevation\Cache\SRTM1 download ENSURE_TILES="N41/N41E012.tif"' returned non-zero exit status 1.
from elevation.
Related Issues (20)
- ERROR 4: ` ' does not exist in the file system, and is not recognized as a supported dataset name. Warning 1: Can't open . Skipping it make: *** [SRTM3 .vrt] Error 1 HOT 1
- Increasing default maximum tiles parameter
- mkdir -p not working on windows HOT 5
- Same parameters work from CLI, not from Python
- Enable SSL for srtm.csi.cgiar.org?
- I can not use eio clip when target area is too big HOT 2
- SRTM3 download url has changed HOT 1
- 'reference' option not implemented in Python API HOT 1
- Mostly black resulting image HOT 1
- Empty/invalid SRTM 3 sec files being downloaded when the difference between bounds' latitude and 64 is less than 5
- CalledProcessError: returned non-zero exit status 1. HOT 1
- Garbage output HOT 1
- python API does not respect output file path.
- distclean fails
- Can't determine if CRS is correct HOT 3
- Any way to generate elevation models w/o compression?
- Source to SRTM3 data not reacheable HOT 1
- eio bulk download
- No input dataset specified
- Add citation for this package
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elevation.