Compensated Phase History Data (sarkit.cphd)
Python reference implementations of the suite of NGA.STND.0068 standardization documents that define the Compensated Phase History Data (CPHD) format.
Supported Versions
Data Structure & File Format
|
CPHD header fields which are set per program specific Product Design Document |
|
Settable CPHD metadata |
|
Read a CPHD file |
|
Write a CPHD file |
|
Read a file header. |
|
Get PVP dtype. |
|
Return the |
Return the binary format string corresponding to a |
|
|
Apply a NODATA hex string to a support array to mask the array. |
XML Metadata
|
|
|
|
|
|
|
Transcoder for text (TXT) XML parameter types. |
|
Transcoder for enumeration (ENU) XML parameter types. |
|
Transcoder for boolean (BOOL) XML parameter types. |
|
Transcoder for XML dateTime (XDT) XML parameter types. |
|
Transcoder for integer (INT) XML parameter types. |
|
Transcoder for double-precision floating point (DBL) XML parameter types. |
|
Transcoder for HEX XML parameter types. |
|
Transcoder for XML parameter types containing scalar Line and Sample components. |
|
Transcoder for XML parameter types containing scalar X and Y components. |
|
Transcoder for XML parameter types containing scalar X, Y, and Z components. |
|
Transcoder for XML parameter types containing scalar Lat and Lon components. |
|
Transcoder for XML parameter types containing scalar Lat, Lon, and HAE components. |
|
Transcoder for one-dimensional polynomial (POLY) XML parameter types. |
|
Transcoder for two-dimensional polynomial (2D_POLY) XML parameter types. |
|
Transcoder for XYZ_POLY XML parameter types containing triplets of 1D polynomials. |
|
Transcoder for per-vector parameter (PVP) XML parameter types. |
Transcoder for added per-vector parameter (APVP) XML parameter types. |
|
Transcoder for CPHD-like SceneCoordinates/ImageAreaCornerPoints XML parameter types. |
|
Transcoder for TXT XML parameter types with a required "name" attribute. |
CPHD Signal Model
|
Compute the reference times for the given collection geometry parameters. |
|
Compute the reference times for each vector in a PVP array. |
Scene Coordinates & Collection Geometry
Image Reference Surface
|
Convert from ECF coordinates to IAC coordinates for Surface Type = PLANAR |
|
Convert from IAC coordinates to ECF coordinates for Surface Type = PLANAR |
|
Convert from geodetic LLH coordinates to IAC coordinates for Surface Type = HAE |
|
Convert from IAC coordinates to geodetic LLH coordinates for Surface Type = HAE |
Convenience functions that operate on parsed XML trees:
|
Convert from ECF coordinates to IAC coordinates |
|
Convert from IAC coordinates to ECF coordinates |
|
Convert from geodetic LLH coordinates to IAC coordinates |
|
Convert from IAC coordinates to geodetic LLH coordinates |
Reference Geometry Parameters
|
Return a CPHD/ReferenceGeometry XML element containing parameters computed from other metadata. |
Constants
|
|
|
|
|
Two-byte sequence that marks the end of the file header |
CLI Utilities
cphdinfo
Display information about CPHD files
usage: cphdinfo [-h] [--xml] [--channels] [--raw {XML,SUPPORT,PVP,SIGNAL}]
filename
- filename
- -h, --help
show this help message and exit
- --xml, -x
Extract XML formatted for display
- --channels, -c
List channels
- --raw {XML,SUPPORT,PVP,SIGNAL}
Extract raw bytes of a BLOCK
References
CPHD 1.0.1
National Center for Geospatial Intelligence Standards, “Compensated Phase History Data (CPHD) Design & Implementation Description Document, Version 1.0.1”, 2018. https://nsgreg.nga.mil/doc/view?i=4638
National Center for Geospatial Intelligence Standards, “Compensated Phase History Data (CPHD) XML Schema, Version 1.0.1”, 2018. https://nsgreg.nga.mil/doc/view?i=4639
CPHD 1.1.0
National Center for Geospatial Intelligence Standards, “Compensated Phase History Data (CPHD) Design & Implementation Description Document, Version 1.1.0”, 2021. https://nsgreg.nga.mil/doc/view?i=5388
National Center for Geospatial Intelligence Standards, “Compensated Phase History Data (CPHD) XML Schema, Version 1.1.0”, 2021. https://nsgreg.nga.mil/doc/view?i=5421