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
Oh! That download token is likely no longer valid. You should make sure to activate the scene right before downloading it. The activation is performed in the section above the download section you are referencing here.
https://github.com/planetlabs/notebooks/blob/master/jupyter-notebooks/temporal-analysis/crop-temporal.ipynb
I met difficulty to run the In [23]:
ERROR 11: HTTP response code: 400
The step is crucial since I have to do some download using the API (my token works in other cases.)
Any idea?
we use gdalwarp and the crop_to_cutline argument to only download the aoi portion of the COG
def _gdalwarp(input_filename, output_filename, options, verbose=False):
commands = ['gdalwarp'] + options +
['-overwrite',
input_filename,
output_filename]
if verbose: print(' '.join(commands))
subprocess.check_call(commands)
def download_scene_aoi(download_url, output_filename, geojson_filename, verbose=False):
vsicurl_url = '/vsicurl/' + download_url
options = [
'-cutline', geojson_filename,
'-crop_to_cutline',
]
_gdalwarp(vsicurl_url, output_filename, options, verbose=verbose)
%time download_scene_aoi(download_url, output_file, geojson_filename, verbose=True)
Also try to run the gdal command line in bash, same error:
The text was updated successfully, but these errors were encountered: