• Stars
    star
    257
  • Rank 158,728 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created over 6 years ago
  • Updated 27 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A basic Python library to demonstrate reading, writing, display, and simple processing of complex SAR data using the NGA SICD standard.

SarPy

SarPy is a basic Python library to read, write, and do simple processing of complex SAR data using the NGA SICD format (standards linked below). It has been released by NGA to encourage the use of SAR data standards throughout the international SAR community. SarPy complements the SIX library (C++) and the MATLAB SAR Toolbox, which are implemented in other languages but have similar goals.

Some sample SICD files can be found here.

Relevant Standards Documents

A variety of SAR format standard are mentioned throughout this ReadMe, here are associated references.

Sensor Independent Complex Data (SICD) - latest version (1.3.0; 2021-11-30)

  1. Volume 1, Design & Implementation Description Document
  2. Volume 2, File Format Description Document
  3. Volume 3, Image Projections Description Document
  4. Schema

Sensor Independent Derived Data (SIDD) - latest version (3.0; 2021-11-30)

  1. Volume 1, Design and Implementation Description Document
  2. Volume 2, NITF File Format Description Document
  3. Volume 3, GeoTIFF File Format Description Document
  4. Schema

Compensated Phase History Data (CPHD) - latest version (1.1.0; 2021-11-30)

  1. Design & Implementation Description
  2. Design & Implementation Schema

Both SICD and SIDD files are NITF files following specific guidelines Basic Image Interchange Format (BIFF) - latest edition (2021.2; 2021-04-20)

  1. National Imagery Transmission Format

For other NGA standards inquiries, the standards registry can be searched

here.

Basic Capability

The basic capabilities provided in SarPy is generally SAR specific, and largely geared towards reading and manipulating data provided in NGA SAR file formats. Full support for reading and writing SICD, SIDD, CPHD, and CRSD (standard pending) and associated metadata structures is currently provided, and this is the main focus of this project.

There is additionally support for reading data from complex data formats analogous to SICD format, usually called Single Look Complex (SLC) or Level 1, from a variety of commercial or other sources including

  • Capella (partial support)
  • COSMO-SkyMed (1st and 2nd generation)
  • GFF (Sandia format)
  • ICEYE
  • NISAR
  • PALSAR2
  • RadarSat-2
  • Radar Constellation Mission (RCM)
  • Sentinel-1
  • TerraSAR-X.

For this SLC format data, it is read directly as though it were coming from a SICD file. This ability to read does not generally apply to data products other than the SLC or Level 1 product, and there is typically no direct NGA standard analog for these products.

Some general TIFF and NITF reading support is provided, but this is not the main goal of the SarPy library.

Documentation

Documentation for the project is available at readthedocs.

If this documentation is inaccessible, it can be built locally after checking out this repository using sphinx via the command python setup.py build_sphinx. This depends on python package sphinx.

Origins

SarPy was developed at the National Geospatial-Intelligence Agency (NGA). The software use, modification, and distribution rights are stipulated within the MIT license.

Dependencies

The core library functionality depends only on numpy >= 1.11.0 and scipy.

Optional Dependencies and Behavior

There are a small collection of dependencies representing functionality which may not be core requirements for much of the sarpy targeted tasks. The tension between requiring the least extensive list of dependencies possible for core functionality and not having surprise unstated dependencies which caused unexpected failures is evident here. It is evident that there are many viable arguments for making any or all of these formally stated dependencies. The choices made here are guided by practical realities versus what is generally considered best practices.

For all packages on this list, the import is tried (where relevant), and any import errors for these optional dependencies are caught and handled. In other words, a missing optional dependency will not be presented as import time. Excepting the functionality requiring h5py, this import error handling is probably silent.

Every module in sarpy can be successfully imported, provided that numpy and scipy are in the environment. Attempts at using functionality depending on a missing optional dependency will generate an error at run time with accompanying message indicating the missing optional dependency.

  • Support for reading single look complex data from certain sources which provide data in hdf5 format require the h5py package, this includes Cosmo-Skymed, ICEYE, and NISAR data.

  • Reading an image segment in a NITF file using jpeg or jpeg 2000 compression and/or writing a kmz image overlay requires the pillow package.

  • CPHD consistency checks, presented in the sarpy.consistency module, depend on lxml>=4.1.1, networkx>=2.5, shapely>=1.6.4, and pytest>=3.3.2. Note that these are the versions tested for compliance.

  • Some less commonly used (in the sarpy realm) NITF functionality requires the use and interpretation of UTM coordinates, and this requires the pyproj package.

  • Building sphinx documentation (mentioned below) requires packages sphinx, and sphinx_gallery.

  • Optional portions of running unit tests (unlikely to be of relevance to anyone not performing development on the core sarpy package itself) require the lxml package

Installation

From PyPI, install using pip (may require escalated privileges e.g. sudo):

pip install sarpy

Note that here pip represents the pip utility for the desired Python environment.

For verbose instructions for installing from source, see here. It is recommended that still the package is built locally and installed using pip, which allows a proper package update mechanism, while python setup.py install does not.

Issues and Bugs

Support for Python 2 has been dropped. The core sarpy functionality has been tested for Python 3.6, 3.7, 3.8, 3.9, 3.10, and 3.11.

Changes to sarpy for the sole purpose of supporting a Python version beyond end-of-life are unlikely to be considered.

Information regarding any discovered bugs would be greatly appreciated, so please feel free to create a GitHub issue. If more appropriate, contact [email protected].

Pull Requests

Efforts at direct contribution to the project are certainly welcome, and please feel free to make a pull request. Note that any and all contributions to this project will be released under the MIT license.

Software source code previously released under an open source license and then modified by NGA staff is considered a "joint work" (see 17 USC 101); it is partially copyrighted, partially public domain, and as a whole is protected by the copyrights of the non-government authors and must be released according to the terms of the original open source license.

Associated GUI Capabilities

Some associated SAR specific graphical user interface tools are maintained in the sarpy_apps project.

More Repositories

1

geoq

Django web application to collect geospatial features and manage feature collection among groups of users
JavaScript
652
star
2

hootenanny

Hootenanny conflates multiple maps into a single seamless map.
JavaScript
337
star
3

geopackage-js

GeoPackage JavaScript Library
TypeScript
310
star
4

gamification-server

Server to track gamification elements (badges, points, tags) to work pages or apps
JavaScript
239
star
5

MATLAB_SAR

A basic MATLAB library to demonstrate reading, writing, display, and simple processing of complex SAR data using the NGA SICD standard.
MATLAB
212
star
6

mrgeo

MrGeo is a geospatial toolkit designed to provide raster-based geospatial capabilities that can be performed at scale. MrGeo is built upon Apache Spark and the Hadoop ecosystem to leverage the storage and processing of hundreds of commodity computers. See the wiki for more details.
Java
199
star
7

opensphere

OpenSphere
JavaScript
185
star
8

elasticgeo

ElasticGeo provides a GeoTools data store that allows geospatial features from an Elasticsearch index to be published via OGC services using GeoServer.
Java
167
star
9

fog-machine

iOS Swift framework for parallel processing
Swift
121
star
10

scale

Processing framework for containerized algorithms
Python
105
star
11

mage-server

Mobile Awareness GEOINT Environment Server
TypeScript
88
star
12

geopackage-android

GeoPackage Android Library
Java
87
star
13

geopackage-java

GeoPackage Java Library
Java
77
star
14

tiff-java

Tagged Image File Format Java Library
Java
72
star
15

six-library

Sensor Independent XML Library
C++
69
star
16

social-media-picture-explorer

Backend for social-media-picture-explorer-ui, a tool for using deep learning to interactively explore social media
Jupyter Notebook
52
star
17

geopackage-ios

GeoPackage iOS Library
Objective-C
50
star
18

geoevents

The GeoEvents project is a dynamic and customizable open source web presence that provides a common operational picture to consolidate activities, manage content, and provides a single point of discovery. GeoEvents was used by deployers and first responders in over 100 real-world events.
JavaScript
40
star
19

mage-android

Mobile Awareness GEOINT Environment Android
Kotlin
40
star
20

GeoPackage

Main Page for NGA GeoPackage Efforts
39
star
21

MAGE

Main Page for the Mobile Awareness GEOINT Environment
JavaScript
38
star
22

geopackage-mapcache-android

GeoPackage MapCache Android App
Python
35
star
23

mage-ios

Mobile Awareness GEOINT Environment iOS
Swift
34
star
24

simple-features-geojson-java

Simple Features GeoJSON Java Library
Java
33
star
25

geopackage-android-map

GeoPackage Android Map Library
Java
33
star
26

mapcache-electron

Desktop application for creating and editing GeoPackages
JavaScript
31
star
27

geopackage-core-java

GeoPackage Core Java Library
Java
31
star
28

tiff-ios

Tagged Image File Format iOS Library
Objective-C
30
star
29

geoint-standards

co-create and grow GEOINT standards transparenlty
HTML
30
star
30

opensphere-desktop

opensphere-desktop
Java
29
star
31

hootenanny-ui

Hootenanny UI is a submodule of the Hootennany vector conflation project.
JavaScript
28
star
32

voxel-globe

calibrates aerial camera models and constructs 3D models from video sequences
Python
26
star
33

endpoint.js

Web application discovery, execution and streaming library
JavaScript
26
star
34

geoq-chef-installer

Chef recipes and configuration files to install the 'geoq' app onto a Virtual Machine
Ruby
25
star
35

map-of-world-api

Map of the World API supports multiple web-based mapping libraries and provides a consistent set of methods for interacting with any supported implementations
JavaScript
25
star
36

Nounalyzer

Analyze the nouns and entities in a rss feed
HTML
21
star
37

mapcache-server

MapCache Server
JavaScript
21
star
38

geopackage-mapcache-ios

GeoPackage MapCache iOS App
Objective-C
21
star
39

simple-features-wkb-java

Simple Features Well-Known Binary Java Library
Java
20
star
40

mgrs-java

Military Grid Reference System Java Library
Java
19
star
41

state-of-the-data

content suitability assessment tools
Python
19
star
42

social-media-picture-explorer-ui

A user interface to explore social media more graphically
JavaScript
19
star
43

leaflet-geopackage

Leaflet GeoPackage
JavaScript
19
star
44

Rational-Polynomial-Coefficients-Mapper

C++ class that uses RPC coefficients to map an object space coordinate represented in Latitude, Longitude, and Altitude to a sensor position represented in X,Y
C++
19
star
45

csm

Community Sensor Model
C++
18
star
46

conduit

content curation tool
JavaScript
18
star
47

anti-piracy-android-app

Anti-Shipping Activity Messages (ASAM) App for Android displays location and descriptive information about hostile acts against ships and mariners. The app caches warning data and works without a Wi-Fi or cellular connection.
Java
18
star
48

simple-features-java

Simple Features Java Library
Java
16
star
49

sarpy_apps

Python
16
star
50

anti-piracy-iOS-app

Anti-Shipping Activity Messages (ASAM) App for iOS displays location and descriptive information about hostile acts against ships and mariners. The app caches warning data and works without a Wi-Fi or cellular connection.
Swift
16
star
51

mage-ios-sdk

Mobile Awareness GEOINT Environment iOS SDK
Objective-C
15
star
52

geopackage-viewer-js

JavaScript
15
star
53

geoint-in-motion

data comparison tools written in python
Python
14
star
54

disconnected-content-explorer-iOS

Disconnected Interactive Content Explorer (DICE) is an app for iOS, Android, and Windows that allows users to load interactive content generated in HTML, CSS, and Javascript to a mobile device so the device can display interactive content without a network connection.
Objective-C
14
star
55

disconnected-content-explorer-android

Disconnected Interactive Content Explorer (DICE) is an app for iOS, Android, and Windows that allows users to load interactive content generated in HTML, CSS, and Javascript to a mobile device so the device can display interactive content without a network connection.
Java
13
star
56

color-java

Color Java Library
Java
13
star
57

keycloak-login.gov-integration

HTML
12
star
58

rfi-generator

The RFI Generator helps first responders and HQ analysts work Requests for Information (RFIs) within a geospatial context.
JavaScript
12
star
59

simple-features-proj-java

Simple Features Projection Java Library
Java
11
star
60

Geospatial-Analysis-Integrity-Tool

The Geospatial Analysis Integrity Tool (GAIT) validates data against a data model. GAIT checks geometry, feature codes, attribute values and domains, and metadata. The tool writes its results as line and point shapefiles to an output directory. GAIT can execute against data in MGCP, GIFD, TDS, and VMap data models.
C
11
star
61

mgrs-ios

Military Grid Reference System iOS Library
Swift
10
star
62

Sensor_Integration_Framework

The purpose of this document is to provide guidance required for sensor data producers and consumers to implement a sensor information enterprise that meets operational requirements, achieves United States (U.S.) Department of Defense (DoD) and Intelligence Community (IC) Chief Information Officer (CIO) goals, and conforms to applicable policy.
10
star
63

mrgeo-geoserver-plugin

Java
9
star
64

cocreate

Open source environment for development, integration and testing
Python
9
star
65

opensphere-yarn-workspace

opensphere-yarn-workspace
Dockerfile
9
star
66

opensphere-asm

opensphere-asm
JavaScript
9
star
67

opensphere-electron

Run OpenSphere in an Electron container.
JavaScript
9
star
68

Spectral-Library-Reader

C++ Library that reads the splib06a file, which is a custom binary spectral reflectance database file created by USGS
C++
8
star
69

mgrs-android

Military Grid Reference System Android Library
Java
8
star
70

mgrs-js

Military Grid Reference System Javascript Library
TypeScript
8
star
71

ogc-api-features-json-java

OGC API Features JSON Java Library
Java
8
star
72

wedge-maker-4-gis

An ArcGIS Python toolbox for creating wedge and arcband shapes
Python
8
star
73

projections-ios

Projections iOS Library
Objective-C
7
star
74

SWIRSignalDetection

analyzes shortwave infrared reflectance
Cuda
7
star
75

geogig

Java
7
star
76

grid-js

Grid Javascript Library
TypeScript
7
star
77

tk_builder

Python
7
star
78

coordinate-reference-systems-java

Coordinate Reference Systems Java Library
Java
7
star
79

scale-ui

UI front-end for Scale - Processing framework for containerized algorithms
TypeScript
6
star
80

DigitalGlobeReader

C++
6
star
81

geopackage-geojson-js

GeoPackage GeoJSON Converter
JavaScript
6
star
82

mage-android-wear

Mobile Awareness GEOINT Environment Android Wear
Java
6
star
83

seed

Standard for discovery and consumption of Docker containerized jobs.
SCSS
6
star
84

geowave-osm

OSM Data processing for GeoWave
Java
5
star
85

mage-android-wear-bridge

MAGE Android Wear Bridge
Java
5
star
86

hootenanny-rpms

RPMs needed for a Hootenanny install
Shell
5
star
87

simple-features-wkb-ios

Simple Features Well-Known Binary iOS Library
Objective-C
5
star
88

simple-features-wkt-java

Simple Features Well-Known Text Java Library
Java
5
star
89

mage-chronostouch-android

Mobile Awareness GEOINT Environment Chronostouch Android
Java
5
star
90

seed-silo

Rest API for discovering Seed images
Go
5
star
91

seed-cli

Algorithm developer CLI supporting Seed compliant image publish and testing.
Go
5
star
92

geowave-vagrant

Vagrant environment for geowave development.
Shell
5
star
93

marlin-ios

Swift
4
star
94

geogig-qgis-client-plugin

Python
4
star
95

ogc-api-features-json-ios

OGC API Features JSON iOS Library
Objective-C
4
star
96

opensphere-plugin-example

opensphere-plugin-example
JavaScript
4
star
97

geoevents-chef-installer

This is a set of Chef recipes (think of them as macros to automatically build a running Virtual Machine) that will work to set the geoevents app up on either a local Virtualbox VM or onto an Amazon Web Service VM.
Ruby
4
star
98

gars-java

Global Area Reference System Java Library
Java
3
star
99

simple-features-proj-ios

Simple Features Projection iOS Library
Objective-C
3
star
100

opensphere-build-index

opensphere-build-index
JavaScript
3
star