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.1.0.tar.gz (22.5 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.1.0-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: index_safe-0.1.0.tar.gz
  • Upload date:
  • Size: 22.5 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.1.0.tar.gz
Algorithm Hash digest
SHA256 90d0432699a7305dcf22334aa455e72f732c79eccf3d3637de71c4e480ae5322
MD5 757b3f49bed6686763509c921b85f2aa
BLAKE2b-256 7cf051a38ac20aec0fc84ebdfd0597f4094601832e16cb948198b523b34e47cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: index_safe-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.2 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09eb7a265bf1d7969642bb0aad5a46d0348707606c8bba708340c1b8fff719bc
MD5 d4bd4b668718621cbfdf7e8865c34054
BLAKE2b-256 c80579c7be34c8a77dd70ab7b6ad5b43fec146ad2066d01b3c3e150fe801e399

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