Tools for gathering and processing InSAR data
Project description
Apertools: tools for InSAR (Interferometric Synthetic Aperture Radar)
Other helping tools: sentineleof for downloading Sentinel 1 EOF precise orbit files.
Setup and installation
pip install apertools
sario.py
Input/Output functions for SAR data. Contains methods to load Sentinel, UAVSAR and DEM files
Main function:
import apertools.sario
my_slc = apertools.sario.load('/file/path/radar.slc')
geocoded_slc = apertools.sario.load('/file/path/myslc.geo')
my_int = apertools.sario.load('/file/path/interferogram.int')
unwrapped_int = apertools.sario.load('/file/path/igram.unw')
my_dem = apertools.sario.load('/file/path/elevation.dem')
my_hgt = apertools.sario.load('/file/path/N20W100.hgt')
latlon.py
Contains LatlonImage class, which loads metadata about an image and acts as a smart numpy array. Includes functionality for slicing/selecting pixels by latitude/longitude, among other things.
Also contains helper functions for maniuplating lat/lon data.
plotting.py
Useful plotting functions, including center-shifted colormap (to make 0 values a neutral color), and 3D stack viewing function
los.py
Line of sight utilities
gps.py
Several functions for using GPS data in conjunction with InSAR stacks
parsers.py
Classes to deal with extracting relevant data from SAR filenames. Example:
from apertools.parsers import Sentinel
parser = Sentinel('S1A_IW_SLC__1SDV_20180408T043025_20180408T043053_021371_024C9B_1B70.zip')
parser.start_time
datetime.datetime(2018, 4, 8, 4, 30, 25)
parser.mission
'S1A'
parser.polarization
'DV'
parser.full_parse
('S1A',
'IW',
'SLC',
'_',
'1',
'S',
'DV',
'20180408T043025',
'20180408T043053',
'021371',
'024C9B',
'1B70')
parser.field_meanings
('Mission',
'Beam',
'Product type',
'Resolution class',
'Product level',
'Product class',
'Polarization',
'Start datetime',
'Stop datetime',
'Orbit number',
'data-take identified',
'product unique id')
UAVSAR parser also exists.
log.py
Module to make logging pretty with times and module names.
If you also pip install colorlog
, it will become colored (didn't require this in case people like non-color logs.)
from apertools.log import get_log
logger = get_log()
logger.info("Better than printing")
[05/29 16:28:19] [INFO log.py] Better than printing
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
Built Distribution
File details
Details for the file apertools-0.7.0.tar.gz
.
File metadata
- Download URL: apertools-0.7.0.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de14c74245be64233b1a97c86e057acdf425eb0abb26a0faa1318f53ca80c29a |
|
MD5 | 07153ee8d14f779c8bd93e7960e9674a |
|
BLAKE2b-256 | 9462377af99ae66a6a8bf44911a2f951bfb6b97ac0133b3ad701d8d4033493d3 |
File details
Details for the file apertools-0.7.0-py3-none-any.whl
.
File metadata
- Download URL: apertools-0.7.0-py3-none-any.whl
- Upload date:
- Size: 1.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f103e4d425869da247457ed5e1dd74018bb3c15c06e507ac37e30d6c2e00d947 |
|
MD5 | 04c92fdac782d4ed0f7ca8f3e0e8b9c2 |
|
BLAKE2b-256 | 3aa6de1ec36d63914a30b1fd83ba96302a36d5aad718e2bf7993d7a8a38b10c4 |