VeRaTools

static VeRaTools.readVeRaTAB(VeRaTABFileName)
Parameters:

VeRaTABFileName (str) – File name (and path) of the VeRa TAB file.

Returns:

Values of 7 variables as a function of sounded level, numberOfLevels

Return type:

NumPy array (7, numberOfLevels), int

Description: Read the content of a VeRa .TAB file and return as a numpy array, where each row represents the values of a variable as a function of sounding level:

VeRaProfileOriginal [0] radius (km)
VeRaProfileOriginal [1] Temperature (K)
VeRaProfileOriginal [2] 1-sigma Temperature uncertainty (K)
VeRaProfileOriginal [3] pressure (bar)
VeRaProfileOriginal [4] 1-sigma pressure uncertainty (bar)
VeRaProfileOriginal [5] latitude (˚)
VeRaProfileOriginal [6] longitude (˚)
static VeRaTools.getFilteredVeRaProfile(VeRaTABFileName, startAltitude=6098.0, endAltitude=6154.0, filteredAltitudeLevelsStep=1.0)
Parameters:
  • VeRaTABFileName (str) – File name (and path) of the VeRa TAB file.

  • startAltitude (float) – Start altitude (km) of the filtered profile, default = 6098km.

  • endAltitude (float) – End altitude (km) of the filtered profile, default = 6154km.

  • filteredAltitudeLevelsStep (float) – the step-size (km) of the filtered profile, default = 1km.

Returns:

VeRaProfileFiltered, numberOfFilteredLevels, VeRaProfileOriginal, numberOfOriginalLevels

Return type:

list (10 lists), int, list (7 lists), int

Description: Calculate an average filtered VeRa profile at two altitudes between radius the startAltitude and endAltitude with step filteredAltitudeLevelsStep. The default values result in 56 levels between 6098km and 6154km.

Take a window with a total width of filteredAltitudeLevelsStep around each altitude level and average the temperatures and latitudes.

VeRaProfileFiltered [0] radius (km)
VeRaProfileFiltered [1] Temperature (K)
VeRaProfileFiltered [2] 1-sigma Temperature uncertainty (K)
VeRaProfileFiltered [3] pressure (bar)
VeRaProfileFiltered [4] 1-sigma pressure uncertainty (bar)
VeRaProfileFiltered [5] latitude (˚)
VeRaProfileFiltered [6] longitude (˚)
VeRaProfileFiltered [7] dT/dz (K/km)
VeRaProfileFiltered [8] 1-sigma dT/dz (K/km)
VeRaProfileFiltered [9] number of original levels used to calculate the average / filtered values
static VeRaTools.createVeRaProfilesTable(VeRaTableFileName, topDirectory, extension='TXT')
Parameters:
  • VeRaTableFileName (str) – file name for the table to be written.

  • topDirectory (str) – path name of the top directory in which the .TXT files are stored.

  • extension (str) – extension of the .TXT files, default = ‘TXT’

Description: Create the tables with the orbit IDs and information at the one-bar pressure level of the corresponding VeRa temperature profiles. The information is the Day Of Year, time of observation, Local Solar Time, Latitude, Longitude, and Solar Zenith Angle at the one-bar pressure level.

static VeRaTools.readValuesFromVeRaTable(VeRaTableFileName)
Parameters:

VeRaTableFileName (str) – file name for the table to be read.

Description: Read a table as created by the createVeRaProfilesTable of this static class and return the values of each column as lists. Time of day is converted to hours (= hour + minutes / 60 + seconds / 3600).