Backend documentation#
This page provides an auto-generated summary of orbitx’s Backend functionalities.
Those functionalities are stored in the utils sub-module.
|
datetime_to_sec_since Converts a datetime to number of seconds since reference date |
|
sec_since_change_ref Converts a date in seconds since reference date format to a seconds since a different date |
|
sec_since_to_datetime Converts a date from seconds since reference date to datetime |
|
|
|
create_xarray Generate an xarray containing all the information from the TLE file |
|
Selecting TLEs that are relevant to the time span of the simulation. |
|
Finds the argument of the perigee in degrees from the second line of the TLE. |
Finds the ballistic coefficient (first derivate of the mean motion) of the satellite from the first line of the TLE. |
|
|
Finds the catalog number in the first line of the TLE. |
|
Finds the classification of the satellite in the first line of the TLE. The classification corresponds to character eight in the first line of the TLE. The possible values are - U: unclassified, - C: classified, - S: secret. |
|
Finds the drag term of the satellite from the first line of the TLE. |
|
Finds the eccentricity from the second line of the TLE. |
|
Finds the element set number of the TLE from the first line of the TLE. |
|
Finds the inclination of the satellite from the second line of the TLE. |
|
Finds the launch number of this satellite in the launch year. |
|
Finds the launch piece identifier of this satellite. |
|
Finds the launch year of the satellite from the first line of the TLE. |
|
Finds the mean anomaly in degrees from the second line of the TLE. |
|
Finds the mean motion in revolutions per day from the second line of the TLE. |
|
Finds the revolution number from the second line of the TLE. |
|
Finds the right ascension of the ascending node in the ECI reference frame measured from the vernal point from the second line of the TLE. |
|
Finds the second derivative of the satellite mean motion from the first line of the TLE. |
|
Date corresponding to this TLE computed from Epoch Date and Julian Date Fraction |
|
Returns path for TLE file for defined satellite |
|
Getting the list of first lines and the list of second lines of all TLEs in the file. |
Return a numpy array of numpy datetime64 of desired orbit simulation timestamps and a second numpy array of those times represented as floats (seconds since reference date). |
|
Locate the index of the closest two line element (at a time equal to or smaller than the simulation time) and return the matching pointers/indices. |
|
|
interp_circ interpolation for periodic-valued data |
interpolate_orbit Interpolate the orbit at desired time resolution |
|
convert the temporary orbit dictionary to an xarray in the simulation pipeline |
|
Propagate satellite orbit for given two-line-elements and associated time |
|
|
Return latitude, longitude and time arrays for full simulated orbit |
|
Finds matchups between each pair of satellites |
Calculate the delay in seconds between a collection of orbits and a new orbit at each time stamp |
|
|
Calculate the distance in kilometers on the earth (specified in decimal degrees) between a collection of orbits and a new orbit at each time stamp |
Adds a matchup_type variable to a matchups dataset corresponding to the land / ocean / coast mask for each matchup |
|
Returns boolean land mask for x,y coordinates |
|
|
Computes an estimate of land fraction for a scene with centre of (lon_c,lat_c) +/- swath width to deduce whether the correct mask is "LAND", "OCEAN", or "COAST" |
- orbitx.utils._constants.SATELLITE_DICT#
Dictionary containing the short name (as keys) and full name (as values) of the satellites supported by this package. To add more satellites, obtain the TLE’s of the desired satellite (using celestrak), and add them as a file with name
TLEset_<sat_short_name>.txt(replacing<sat_short_name>accordingly) in thedata/tlefolder. Then, add the"short_name": "full-name"pair to the dictionary above.
- orbitx.utils._constants.EARTH_RADIUS#
Earth radius in kilometers
- orbitx.utils._constants.CM#
Constant for conversion of inches into centimeters (used for plots)