EpicImage#

class nasa.EpicImage[source]#

Bases: object

Represents an epic image object returned by the NASA Api.

New in version 0.0.1.

identifier#

The identifier linked to the returned EPIC object. This is used to build the url.

Type:

str

image_name#

The name of the image.

Type:

str

image#

The image as asset if available.

Type:

Optional[Union[SyncAsset, AsyncAsset]]

date#

The date of the image.

Type:

datetime.datetime

caption#

The caption of the image.

Type:

str

centroid_coordinates#

Geographical coordinates that the satellite is looking at.

Type:

EarthLikeCoordinates

dscovr_j2000_position#

Position of the satellite in space.

Type:

SpatialCoordinates

lunar_j2000_position#

Position of the moon in space.

Type:

SpatialCoordinates

sun_j2000_position#

Position of the sun in space.

Type:

SpatialCoordinates

attitude_quaternions#

Satellite attitude.

Type:

AttitudeQuaternions

coords#

Coordinates linked to the postion of the satellite.

Type:

Coordinates

version#

The Api version.

Type:

int

property base_image: nasa.asset.SyncAsset | nasa.asset.AsyncAsset | None#

Returns the image as Asset.

Type:

Optional[Union[SyncAsset, AsyncAsset]]

property url: str#

Builds and returns the url for the linked image.

Type:

str

Coordinates#

class nasa.Coordinates[source]#

Bases: object

Groups coordinates of differents objects.

New in version 0.0.1.

centroid_coordinates#

Geographical coordinates that the satellite is looking at.

Type:

EarthLikeCoordinates

dscovr_j2000_position#

Position of the satellite in space.

Type:

SpatialCoordinates

lunar_j2000_position#

Position of the moon in space.

Type:

SpatialCoordinates

sun_j2000_position#

Position of the sun in space.

Type:

SpatialCoordinates

attitude_quaternions#

Satellite attitude.

Type:

AttitudeQuaternions

AttitudeQuaternions#

class nasa.AttitudeQuaternions[source]#

Bases: object

Represents satellite attitude.

New in version 0.0.1.

q0#
Type:

float

q1#
Type:

float

q2#
Type:

float

q3#
Type:

float

EarthLikeCoordinates#

class nasa.EarthLikeCoordinates[source]#

Bases: object

Represents coordinates based on the earth coordinates system.

New in version 0.0.1.

lat#

Represents the latitude.

Type:

float

lon#

Represents the longitude.

Type:

float

SpatialCoordinates#

class nasa.SpatialCoordinates[source]#

Bases: object

Represents spatial coordinates using xyz axes.

New in version 0.0.1.

x#

Represents the x axis.

Type:

float

y#

Represents the y axis.

Type:

float

z#

Represents the z axis.

Type:

float