Skip to content

Instantly share code, notes, and snippets.

@maximlamare
Last active September 17, 2020 09:19
Show Gist options
  • Save maximlamare/e59b57916b5e11b49fd2854364283a7d to your computer and use it in GitHub Desktop.
Save maximlamare/e59b57916b5e11b49fd2854364283a7d to your computer and use it in GitHub Desktop.
Function to convert Batch Processing API results to EoPatches
# Make class to convert Batch to EOPatches
batch2eolearn = ImportFromAWS(aws_access_key_id, aws_secret_access_key, aws_bucket_name,
batch_request_id, band_names, timestamps, is_data=is_data_band,
out_path=save_folder)
# Convert Batch results in the Amazon Bucket to EOPatches
batch2eolearn.convert_to_EOPatches()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment