Skip to main content

Index Sentinel-1 SAFE for fast burst data and metdata download

Project description

index_safe

A set of Python utilities for downloading Sentinel-1 Burst data and metadata via S3 with minimal GET requests and data download:

The main innovation of these utilities is that they allow downloading of burst data without downloading the surrounding data from the swath they're contained in. These has been difficult because DEFLATE compressed data is not set up for random read access. This innovation is made possible by the zran.c utility created by Mark Adler and its implementation in Paul McCarthy's indexed_gzip package.

Installation

Install the requirements using Mamba or Conda using the command:

mamba create -f envirnoment.yml or conda env create -f envirnoment.yml

Activate the environment: mamba (or conda) activate bursts

Then, from within the top-level package directory, run: python -m pip install -e .

Usage

Run create_index.py Ex:

create_index S1A_IW_SLC__1SDV_20200604T022251_20200604T022318_032861_03CE65_7C85

This will create a {GRANULE_NAME}.json and burst index json files ({GRANULE_NAME}_{SWATH_NAME_{POLARIZATION}.json) that contain the information needed to download the metadata/data directly.

Then, run extract_burst.py Ex:

extract_burst S1A_IW_SLC__1SDV_20200604T022251_20200604T022318_IW2_VV_0.json

to get the burst image data

Then, run extract_metadata.py Ex:

extract_metadata S1A_IW_SLC__1SDV_20200604T022251_20200604T022318.json

to get the burst metadata

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

index_safe-0.2.0.tar.gz (40.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

index_safe-0.2.0-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file index_safe-0.2.0.tar.gz.

File metadata

  • Download URL: index_safe-0.2.0.tar.gz
  • Upload date:
  • Size: 40.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for index_safe-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ca097d76e3b4b390680f7275c351d4ef3406604b405d604a1305783fc1f467e7
MD5 4057422251d61b37d6dca4e4f9ac4129
BLAKE2b-256 6e36dc7697577b2f3651e14611a89d3f00fec166288edd955c486024d3f7b459

See more details on using hashes here.

File details

Details for the file index_safe-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: index_safe-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 19.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for index_safe-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50982e08c71651e3d11e7801a6a20ae9323c5f231b2ce4b28296a11572eefcc8
MD5 27b85db9b625a523d726286d83171151
BLAKE2b-256 71718d6e829ae41ab193714bfb0536b7dd4a5e70015d84cb29e8892b6239f54a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page