isismetadata — ISIS File Metadata

The isismetadata file contains a generic metadata parser for ISIS and PVL formats

New in version 0.1.0.

class amg.isismetadata.IsisCamInfo(datafile)[source]

This class is the metadata container for the output from the ISIS caminfo command.

This class uses the IsisGeomBase mixin in case the caminfo command has been run with the polygon=true flag, in which case a GIS footprint is embedded in the data.

Parameters

datafile (str) – The path to the input ISIS cube file

data

A pvl.PVLModule object containing the parsed data label

Type

obj

isislabel

The PVL representation of the original ISIS label

Type

str

label

The PVL representation of the original label, before ingestion into ISIS

Type

str

stats_mean

The mean DN computed by caminfo

Type

float

stats_std

The standard deviation of the DNs as computed by caminfo

Type

float

stats_min

The minimum DN value computed by caminfo

Type

float

stats_max

The maximum DN value computed by caminfo

Type

float

target

The target of the observations

Type

str

phase_angle

The angle between the sun and spacecraft at the center of the image

Type

float

emisssion_angle

The angle between the spacecraft and a vector perpendicular (surface normal) to the surface

Type

float

incidence_angle

The angle between the sun and the surface normal at the center of the image

Type

float

north_azimuth

The clockwise angle from the center of the image to true north

Type

float

off_nadir

The angle between the spacecraft vector and the look vector

Type

float

subsolar_ground_azimuth

The ground azimuth to the subsolar point

Type

float

local_solar_time

The angle of the sun relative to the center of the image (how high the sun is in the sky)

Type

float

footprint

shapely Polygon or MultiPolygon defining the data footprint

Type

obj

class amg.isismetadata.IsisFootPrintBlob(datafile)[source]

This class parses ISIS footprints that have been dumped from labels using the blobdump command.

This class uses the IsisGeomBase mix-in. Therefore, all attributes on that class are available on this class, e.g., footprint.

Parameters

datafile (path) – The path to the input data file

data

a pvl.PVLModule object parsed from the input datafile

Type

obj

class amg.isismetadata.IsisGeomBase[source]

A mix-in that manages providing access to ISIS geometries, e.g., image footprints.

geometry

GeoJSON representation of the geometry

Type

dict

centroid

shapely point object defining the center of the geometry

Type

obj

bbox

four element geometry bounding box

Type

list

footprint

shapely Polygon or MultiPolygon defining the data footprint

Type

obj

class amg.isismetadata.IsisMetadata(datafile)[source]

This class is the metadata container for an ISIS cube.

This class uses the IsisGeomBase mix-in. Therefore, all attributes on that class are available on this class, e.g., footprint.

Parameters

datafile (str) – The path to the input ISIS cube file

data

A pvl.PVLModule object containing the parsed data label

Type

obj

longitude_domain

The longitude domain parsed from the ISIS label

Type

int