Python wrapper for ASF's SearchAPI
Project description
asf_search
Python wrapper for the ASF SearchAPI
import asf_search as asf
import json
results = asf.granule_search(['ALPSRS279162400', 'ALPSRS279162200'])
print(f'Granule search results: {json.dumps(results, indent=2)}')
wkt = 'POLYGON((-135.7 58.2,-136.6 58.1,-135.8 56.9,-134.6 56.1,-134.9 58.0,-135.7 58.2))'
results = asf.geo_search(platform=[asf.PLATFORM.SENTINEL1], intersectsWith=wkt, maxResults=10)
print(f'Geographic search results: {json.dumps(results, indent=2)}')
Install
In order to easily manage dependencies, we recommend using dedicated project environments via Anaconda/Miniconda or Python virtual environments.
asf_search can be installed into a conda environment with
conda install -c conda-forge asf_search
or into a virtual environment with
python -m pip install asf_search
Usage
Programmatically searching for ASF data is made simple with asf_search. Several search functions are provided:
geo_search()
Find product info over an area of interest using a WKT stringgranule_search()
Find product info using a list of scenesproduct_search()
Find product info using a list of productssearch()
Find product info using any combination combination of search parametersstack()
Find a baseline stack of products using a reference scene- Additionally, numerous constants are provided to ease the search process
Examples of all of the above can be found in examples/
Development
Branching
Instance | Branch | Description, Instructions, Notes |
---|---|---|
Stable | stable | Accepts merges from Working and Hotfixes |
Working | master | Accepts merges from Features/Issues and Hotfixes |
Features/Issues | topic-* | Always branch off HEAD of Working |
Hotfix | hotfix-* | Always branch off Stable |
For an extended description of our workflow, see https://gist.github.com/digitaljhelms/4287848
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
asf_search-0.4.0.tar.gz
(20.1 kB
view hashes)
Built Distribution
asf_search-0.4.0-py3-none-any.whl
(19.6 kB
view hashes)
Close
Hashes for asf_search-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91327dd8e87a674319014a95a1ebe60449d94f31e3a8a2c88a0b1893d7b9a408 |
|
MD5 | b0fec0c572abf13e227ace02bf3cf677 |
|
BLAKE2b-256 | 04c60c240f59f5c2731f5f4ede4424462924af9a8b1e3ed1345e6baf7a07aec9 |