pyRTX.classes.Planet

Classes

AlbedoGrid(**kwargs)

EmissivityGrid(**kwargs)

Planet([fromFile, radius, name, bodyFrame, ...])

PlanetGrid()

TemperatureGrid(**kwargs)

class pyRTX.classes.Planet.PlanetGrid[source]
__init__()[source]

A class to represent the albedo, emissivity and temperature grid of a planet.

property attrs

Returns the xarray attributes.

property axes

Returns the xarray axes values.

property frame

Returns the name of the grid-fixed frame.

property dims

Returns the dimension axes of the xarray.

property periodicity

Returns the property of the grid (temperature / albedo / emissivity).

get_data(epoch=None)[source]

Returns the xarray data.

__getitem__(idxs)[source]

Implement a getitem method.

save(filename: str, complev: int = 1)[source]

Method to save precomputed x-array.

plot(epoch=None)[source]

Implement a method to plot the grid at a specific epoch.

Input: - spiceypy epoch

class pyRTX.classes.Planet.EmissivityGrid(**kwargs)[source]
__init__(**kwargs)[source]

A class to represent the emissivity grid of a planet.

class pyRTX.classes.Planet.AlbedoGrid(**kwargs)[source]
__init__(**kwargs)[source]

A class to represent the albedo grid of a planet.

class pyRTX.classes.Planet.TemperatureGrid(**kwargs)[source]
__init__(**kwargs)[source]

A class to represent the temperature grid of a planet.

get_albedo(epoch, dir)[source]

Method to get the albedo value

get_emissivity(epoch, dir)[source]

Method to get the emissivity value

compute(epochs, step)[source]

Implement a compute method to calculate the temperature grid in the sun-fixed frame (X-axis pointing the Sun).

Input: - list of epochs - Latitude/Longitude step in degree

class pyRTX.classes.Planet.Planet(fromFile=None, radius=0, name='', bodyFrame='', sunFixedFrame='', units='km', subdivs=4)[source]
__init__(fromFile=None, radius=0, name='', bodyFrame='', sunFixedFrame='', units='km', subdivs=4)[source]

A class to represent a planet/moon

Input: fromFile : put here an obj file if requested to build the model. If None (default) a sphere with radius defined in “radius” will be built radius : (float) the radius of the planet. Not used if “fromFile” is not None name : (str) the name of the planet bodyFrame: (str) the planet body fixed frame sunFixedFrame: (str) the body centered - sun fixed frame units: (str) [Default: km] the measurement units defining the body (can be km or m) subdivs: (int) [Default: 4] the number of subdivision for the creation of the spherical planet. Note that the number of faces will grow as function of 4 ** subdivisions, so you probably want to keep this under ~5.

mesh(translate=None, rotate=None, epoch=None, targetFrame=None)[source]
albedoFaces(epoch, spacecraft_name)[source]

Public method: Return the idxs of the mesh faces that are needed for albedo computation at time:epoch for the spacecraft:spacectaft name

rot_toSCframe(epoch, scFrame=None)[source]
emissivityFaces(epoch, spacecraft_name)[source]

Public method: Return the idxs of the mesh faces and the temperature of each face that are needed for emissivity computation at time:epoch for the spacecraft:spacectaft name

getFaceAlbedo(epoch)[source]

Return the albedo of each face at epoch

getFaceTemperatures(epoch)[source]

Return the temperature of each face at epoch

getFaceEmissivity(epoch, sunFixedFrame=False)[source]
VFNC(epoch, sunFixedFrame=True)[source]

Public method: Returns V F N C rotating the planet in the sunFixedFrame at epoch epoch V: Vertices F: Faces N: Normals C: Centroids

getScPosSunFixed(epoch, spacecraft_name)[source]
pxform_convert(pxform)[source]
property dayside_temperature
property nightside_temperature
property gridded_temperature
property albedo
property albedo_map
property emissivity