pyRTX.classes.Atmosphere

Classes

VenusGram([dataFolder, execFolder, tmpFolder])

An utility class for providing a python interface to VenusGram2005

class pyRTX.classes.Atmosphere.VenusGram(dataFolder='/home/cascioli/VenusGram2005/', execFolder='/home/cascioli/VenusGram2005/', tmpFolder='./tmp')[source]

An utility class for providing a python interface to VenusGram2005

Requirements: - python3 - numpy - spiceypy - A compiled version of VenusGram2005

Note: This version has been tested only on UNIX machines

The intended usage:

vg = VenusGram() rho, T = vg.compute(epoch, lat, lon, height, inputUnits = ‘deg’)

Parameters: *all these patameters can be either float or numpy arrays of floats epoch: epoch output of spiceypy.str2et [The epoch must be provided in TDB. This can be changed modyfying ‘epoch_converter’ sub] lat: latitude in the units specified in inputUnits lon: longitude in the units specified in inputUnits height: height above the reference ellipsoid [km]

Returns: rho: density in kg/m3 T: temperature in K

__init__(dataFolder='/home/cascioli/VenusGram2005/', execFolder='/home/cascioli/VenusGram2005/', tmpFolder='./tmp')[source]

Initialize the istance of the class

Parameters: dataFolder: [str] the path to the data folder of VenusGram2005 execFolder: [str] the path to where the venusgrm_V05.x executable is tmpFolder: [str] the path to create a temporary convenience folder for Vgram input/output caching. Defaults to ./tmp

namelistWriter(epoch, lat, lon, height)[source]
epoch_converter(epoch, inputFormat='TDB', outputformat='UTC')[source]
readResults()[source]
readVariabilities(kind)[source]

Read results on variables with variabilities (e.g. Density)

Input: kind : [str] The requested variable (available: Density)

Output:

low : [float] Variable low range avg : [float] Variable average range hig : [float] Variable high range

compute(epoch, lat, lon, height, inputUnits='deg', variabilities=None)[source]