### Clone and install from local repository Source: https://github.com/st-bender/pynrlmsise00/blob/master/README.md Clone the repository, initialize and update submodules, then install with pip (optionally editable) or setup.py. This is an alternative to installing from GitHub directly. ```sh $ git clone https://github.com/st-bender/pynrlmsise00.git $ cd pynrlmsise00 $ git submodule init $ git submodule update ``` ```sh $ pip install [-e] . ``` ```sh $ python setup.py install ``` -------------------------------- ### Install pynrlmsise00 from GitHub via pip Source: https://github.com/st-bender/pynrlmsise00/blob/master/README.md Install the package directly from GitHub using pip's VCS support. The -e flag enables editable installs. ```sh $ pip install [-e] git+https://github.com/st-bender/pynrlmsise00.git ``` -------------------------------- ### Install nrlmsise00 with dataset extra Source: https://github.com/st-bender/pynrlmsise00/blob/master/README.md Install the package with the 'dataset' extra to enable the Xarray Dataset interface. ```sh pip install [-U] 'nrlmsise00[dataset]' ``` -------------------------------- ### Install nrlmsise00 via pip Source: https://github.com/st-bender/pynrlmsise00/blob/master/README.md Install the nrlmsise00 package from the main package repository. In some cases this will install from the source package, requiring additional system header files (e.g., libc6-dev on Debian/Ubuntu). ```sh $ pip install nrlmsise00 ``` -------------------------------- ### Use gtd7_flat for broadcasting Source: https://github.com/st-bender/pynrlmsise00/blob/master/README.md Use the flat variant gtd7_flat() to broadcast altitude and latitude arrays, producing a 2 x 3 x 11 element array. This example mirrors the gtd7() call above. ```python >>> import numpy as np >>> from nrlmsise00 import gtd7_flat >>> alts = np.arange(200, 401, 100.) # = [200, 300, 400] [km] >>> lats = np.arange(60, 71, 10.) # = [60, 70] [°N] >>> # Using broadcasting, the output will be a 2 x 3 x 11 element array: >>> gtd7_flat(2009, 172, 29000, alts[None, :], lats[:, None], -70, 16, 150, 150, 4) array([[[1.55567936e+06, 2.55949597e+09, 4.00342724e+09, 1.74513806e+08, 6.56916263e+06, 2.64872982e-13, 5.63405578e+04, 4.71893934e+07, 3.45500931e-08, 1.25053994e+03, 1.02704994e+03], [9.58507714e+05, 4.66979460e+08, 2.31041924e+08, 6.58659651e+06, 1.16566762e+05, 2.38399390e-14, 3.86535595e+04, 1.43755262e+07, 1.03939126e+02, 1.25053994e+03, 1.20645403e+03], [6.66517690e+05, 1.13880556e+08, 1.99821093e+07, 4.02276359e+05, 3.55746499e+03, 4.07471353e-15, 3.47531240e+04, 4.09591327e+06, 2.66727321e+04, 1.25053994e+03, 1.24141613e+03]], [[1.31669842e+06, 2.40644124e+09, 4.21778196e+09, 1.89878716e+08, 8.17662024e+06, 2.71788520e-13, 4.64192484e+04, 5.13265845e+07, 5.21846603e-08, 1.24246351e+03, 1.04698385e+03], [8.22632403e+05, 4.52803942e+08, 2.53857090e+08, 7.50201654e+06, 1.53431033e+05, 2.46179628e-14, 3.20594861e+04, 1.62651506e+07, 1.59911615e+02, 1.24246351e+03, 1.20963726e+03], [5.73944168e+05, 1.10836468e+08, 2.19925518e+07, 4.58648922e+05, 4.68600377e+03, 4.10277781e-15, 2.89330169e+04, 4.65636025e+06, 4.12296154e+04, 1.24246351e+03, 1.23665288e+03]]]) ``` -------------------------------- ### Call msise_flat for NumPy array output Source: https://github.com/st-bender/pynrlmsise00/blob/master/README.md Use `msise_flat()` to get a flat 11-element `numpy.ndarray` with densities in the first 9 entries and temperatures in the last two. All arguments can be `numpy.ndarray`s but must be broadcastable to a common shape. ```python >>> from datetime import datetime >>> from nrlmsise00 import msise_flat >>> msise_flat(datetime(2009, 6, 21, 8, 3, 20), 400, 60, -70, 150, 150, 4) array([5.65085279e+05, 6.79850175e+07, 1.18819263e+07, 2.37030166e+05, 1.32459684e+03, 2.39947892e-15, 5.32498381e+04, 1.07596246e+06, 2.66727321e+04, 1.10058413e+03, 1.09824872e+03]) ``` -------------------------------- ### Access documentation via pydoc Source: https://github.com/st-bender/pynrlmsise00/blob/master/README.md Use `pydoc` to view basic class and method documentation for the `nrlmsise00` module. ```sh $ pydoc nrlmsise00 ``` -------------------------------- ### Import the nrlmsise00 module Source: https://github.com/st-bender/pynrlmsise00/blob/master/README.md Import the Python module named `nrlmsise00` as usual. ```python >>> import nrlmsise00 ``` -------------------------------- ### Run tests with py.test Source: https://github.com/st-bender/pynrlmsise00/blob/master/README.md Optionally test the correct function of the module. The --doctest-glob='*.md' flag includes doctests from this document. ```sh $ py.test [-v] ``` ```sh $ py.test [-v] --doctest-glob='*.md' ``` -------------------------------- ### msise_model() Source: https://github.com/st-bender/pynrlmsise00/blob/master/README.md Computes atmospheric densities and temperatures using the NRLMSISE-00 model. Accepts datetime objects and returns a tuple of two lists containing densities and temperatures. ```APIDOC ## msise_model() ### Description Computes atmospheric densities and temperatures using the NRLMSISE-00 model. Accepts datetime objects and returns a tuple of two lists containing densities and temperatures. ### Method Function call ### Endpoint `msise_model(datetime, alt, lat, lon, f107a, f107, ap, lst=None, flags=None, ap_a=None, method='gtd7')` ### Parameters #### Positional Parameters - **datetime** (datetime.datetime) - Required - The date and time for the model calculation. - **alt** (float) - Required - Altitude in kilometers. - **lat** (float) - Required - Geodetic latitude in degrees. - **lon** (float) - Required - Geodetic longitude in degrees. - **f107a** (float) - Required - 81-day average of F10.7 solar flux. - **f107** (float) - Required - Daily F10.7 solar flux. - **ap** (float) - Required - Daily magnetic index. #### Keyword Parameters - **lst** (float) - Optional - Local solar time in hours. If not provided, it is calculated from the datetime and location. - **flags** (list) - Optional - Array of flags to control model behavior. Defaults to standard settings. - **ap_a** (list) - Optional - Array of ap values for the model. Defaults to standard settings. - **method** (str) - Optional - Model selection: 'gtd7' (default) or 'gtd7d'. ### Response #### Success Response Returns a tuple of two lists: - **d** (list) - Densities: d[0] He, d[1] O, d[2] N2, d[3] O2, d[4] Ar, d[5] total mass density, d[6] H, d[7] N, d[8] anomalous oxygen. - **t** (list) - Temperatures: t[0] exospheric temperature, t[1] temperature at altitude. ### Request Example ```python >>> from datetime import datetime >>> from nrlmsise00 import msise_model >>> msise_model(datetime(2009, 6, 21, 8, 3, 20), 400, 60, -70, 150, 150, 4, lst=16) # doctest: +ELLIPSIS ([666517.690495152, 113880555.975221..., 19982109.255734544, 402276.358571251..., 3557.46499451588..., 4.0747135327572...e-15, 34753.12399717142, 4095913.2682930017, 26672.73209335869], [1250.5399435607994, 1241.4161300191206]) ``` ``` -------------------------------- ### Call gtd7 directly via C interface Source: https://github.com/st-bender/pynrlmsise00/blob/master/README.md Directly interface the C model function gtd7() by importing nrlmsise00._nrlmsise00. Uses standard flags and returns a tuple of densities and temperatures. ```python >>> from nrlmsise00._nrlmsise00 import gtd7, gtd7d >>> # using the standard flags >>> gtd7(2009, 172, 29000, 400, 60, -70, 16, 150, 150, 4) # doctest: +ELLIPSIS ([666517.690495152, 113880555.975221..., 19982109.255734544, 402276.358571251..., 3557.46499451588..., 4.0747135327572...e-15, 34753.12399717142, 4095913.2682930017, 26672.73209335869], [1250.5399435607994, 1241.4161300191206]) ``` -------------------------------- ### Call msise_model with datetime and location Source: https://github.com/st-bender/pynrlmsise00/blob/master/README.md Call `msise_model()` with a `datetime.datetime` object, altitude, latitude, longitude, and other parameters. The `lst` keyword sets local solar time explicitly. Returns a tuple of two lists: densities `d[0]`-`d[8]` and temperatures `t[0]`, `t[1]`. The output order matches the C reference code. ```python >>> from datetime import datetime >>> from nrlmsise00 import msise_model >>> msise_model(datetime(2009, 6, 21, 8, 3, 20), 400, 60, -70, 150, 150, 4, lst=16) # doctest: +ELLIPSIS ([666517.690495152, 113880555.975221..., 19982109.255734544, 402276.358571251..., 3557.46499451588..., 4.0747135327572...e-15, 34753.12399717142, 4095913.2682930017, 26672.73209335869], [1250.5399435607994, 1241.4161300191206]) ``` -------------------------------- ### Use msise_4d to create a 4-D xarray.Dataset Source: https://github.com/st-bender/pynrlmsise00/blob/master/README.md Broadcast 1-D inputs for time, altitude, latitude, and longitude to produce a 4-D xarray.Dataset. Uses the spaceweather package by default for geomagnetic and Solar flux indices. Variable names follow MSIS output. ```python >>> from datetime import datetime >>> from nrlmsise00.dataset import msise_4d >>> alts = np.arange(200, 401, 100.) # = [200, 300, 400] [km] >>> lats = np.arange(60, 71, 10.) # = [60, 70] [°N] >>> lons = np.arange(-70., 71., 35.) # = [-70, -35, 0, 35, 70] [°E] >>> # broadcasting is done internally >>> ds = msise_4d(datetime(2009, 6, 21, 8, 3, 20), alts, lats, lons) >>> ds # doctest: +SKIP Dimensions: (alt: 3, lat: 2, lon: 5, time: 1) Coordinates: * time (time) datetime64[ns] 2009-06-21T08:03:20 * alt (alt) float64 200.0 300.0 400.0 * lat (lat) float64 60.0 70.0 * lon (lon) float64 -70.0 -35.0 0.0 35.0 70.0 Data variables: He (time, alt, lat, lon) float64 8.597e+05 1.063e+06 ... 4.936e+05 O (time, alt, lat, lon) float64 1.248e+09 1.46e+09 ... 2.635e+07 N2 (time, alt, lat, lon) float64 2.555e+09 2.654e+09 ... 1.667e+06 O2 (time, alt, lat, lon) float64 2.1e+08 2.062e+08 ... 3.471e+04 Ar (time, alt, lat, lon) float64 3.16e+06 3.287e+06 ... 76.55 67.16 rho (time, alt, lat, lon) float64 1.635e-13 1.736e-13 ... 7.984e-16 H (time, alt, lat, lon) float64 3.144e+05 3.02e+05 ... 1.237e+05 N (time, alt, lat, lon) float64 9.095e+06 1.069e+07 ... 6.765e+05 AnomO (time, alt, lat, lon) float64 1.173e-08 1.173e-08 ... 1.101e+04 Texo (time, alt, lat, lon) float64 805.2 823.7 807.1 ... 818.7 821.2 Talt (time, alt, lat, lon) float64 757.9 758.7 766.4 ... 818.7 821.1 lst (time, lon) float64 3.389 5.722 8.056 10.39 12.72 Ap (time) int32 6 f107 (time) float64 66.7 f107a (time) float64 69.0 ``` -------------------------------- ### msise_flat() Source: https://github.com/st-bender/pynrlmsise00/blob/master/README.md NumPy-compatible flat version of the NRLMSISE-00 model. Returns an 11-element numpy.ndarray with densities and temperatures, and supports broadcasting for vectorized calculations. ```APIDOC ## msise_flat() ### Description NumPy-compatible flat version of the NRLMSISE-00 model. Returns an 11-element numpy.ndarray with densities and temperatures, and supports broadcasting for vectorized calculations. ### Method Function call ### Endpoint `msise_flat(datetime, alt, lat, lon, f107a, f107, ap, lst=None, flags=None, ap_a=None, method='gtd7')` ### Parameters #### Positional Parameters - **datetime** (datetime.datetime) - Required - The date and time for the model calculation. - **alt** (float or numpy.ndarray) - Required - Altitude in kilometers. Can be an array for broadcasting. - **lat** (float or numpy.ndarray) - Required - Geodetic latitude in degrees. Can be an array for broadcasting. - **lon** (float) - Required - Geodetic longitude in degrees. - **f107a** (float) - Required - 81-day average of F10.7 solar flux. - **f107** (float) - Required - Daily F10.7 solar flux. - **ap** (float) - Required - Daily magnetic index. #### Keyword Parameters - **lst** (float) - Optional - Local solar time in hours. If not provided, it is calculated from the datetime and location. - **flags** (list) - Optional - Array of flags to control model behavior. Defaults to standard settings. - **ap_a** (list) - Optional - Array of ap values for the model. Defaults to standard settings. - **method** (str) - Optional - Model selection: 'gtd7' (default) or 'gtd7d'. ### Response #### Success Response Returns a numpy.ndarray of shape (..., 11) where the first 9 elements are densities (d[0] to d[8]) and the last two are temperatures (t[0] and t[1]). ### Request Example ```python >>> from datetime import datetime >>> from nrlmsise00 import msise_flat >>> msise_flat(datetime(2009, 6, 21, 8, 3, 20), 400, 60, -70, 150, 150, 4) array([5.65085279e+05, 6.79850175e+07, 1.18819263e+07, 2.37030166e+05, 1.32459684e+03, 2.39947892e-15, 5.32498381e+04, 1.07596246e+06, 2.66727321e+04, 1.10058413e+03, 1.09824872e+03]) ``` ### Broadcasting Example ```python >>> from datetime import datetime >>> import numpy as np >>> from nrlmsise00 import msise_flat >>> alts = np.arange(200, 401, 100.) # = [200, 300, 400] [km] >>> lats = np.arange(60, 71, 10.) # = [60, 70] [°N] >>> # Using broadcasting, the output will be a 2 x 3 x 11 element array: >>> msise_flat(datetime(2009, 6, 21, 8, 3, 20), alts[None, :], lats[:, None], -70, 150, 150, 4) array([[[1.36949418e+06, 1.95229496e+09, 3.83824808e+09, 1.79130515e+08, 4.92145034e+06, 2.40511268e-13, 8.34108685e+04, 1.74317585e+07, 3.45500931e-08, 1.10058413e+03, 9.68827485e+02], [8.40190601e+05, 3.25739060e+08, 1.82477392e+08, 5.37973134e+06, 6.53609278e+04, 1.75304136e-14, 5.92944463e+04, 4.36516218e+06, 1.03939126e+02, 1.10058413e+03, 1.08356514e+03], [5.65085279e+05, 6.79850175e+07, 1.18819263e+07, 2.37030166e+05, 1.32459684e+03, 2.39947892e-15, 5.32498381e+04, 1.07596246e+06, 2.66727321e+04, 1.10058413e+03, 1.09824872e+03]], [[1.10012225e+06, 1.94725472e+09, 4.08547233e+09, 1.92320077e+08, 6.65460281e+06, 2.52846563e-13, 6.16745965e+04, 2.45012145e+07, 5.21846603e-08, 1.13812434e+03, 1.00132640e+03], [6.83809952e+05, 3.42643970e+08, 2.13434661e+08, 6.43426889e+06, 1.01162173e+05, 1.95300073e-14, 4.36031132e+04, 6.70490625e+06, 1.59911615e+02, 1.13812434e+03, 1.12084651e+03], [4.65787225e+05, 7.52160226e+07, 1.51795904e+07, 3.13560147e+05, 2.32541183e+03, 2.76353370e-15, 3.92811827e+04, 1.73321928e+06, 4.12296154e+04, 1.13812434e+03, 1.13580463e+03]]]) ``` ``` -------------------------------- ### msise_4d() Source: https://github.com/st-bender/pynrlmsise00/blob/master/README.md Broadcasts 1-D inputs for time, altitude, latitude, and longitude to produce a 4-D xarray.Dataset with MSIS output variables. Automatically obtains geomagnetic and Solar flux indices using the spaceweather package. ```APIDOC ## msise_4d() ### Description Broadcasts 1-D inputs for time, altitude, latitude, and longitude to produce a 4-D xarray.Dataset with MSIS output variables. Automatically obtains geomagnetic and Solar flux indices using the spaceweather package. ### Method Function call ### Endpoint `nrlmsise00.dataset.msise_4d` ### Parameters #### Inputs - **time** (datetime) - Required - The time of the simulation. - **alts** (array-like) - Required - Altitudes in km. - **lats** (array-like) - Required - Latitudes in degrees North. - **lons** (array-like) - Required - Longitudes in degrees East. ### Response #### Success Response Returns an `xarray.Dataset` with dimensions (time, alt, lat, lon) and variables: He, O, N2, O2, Ar, rho, H, N, AnomO, Texo, Talt, lst, Ap, f107, f107a. ### Request Example ```python >>> from datetime import datetime >>> from nrlmsise00.dataset import msise_4d >>> alts = np.arange(200, 401, 100.) # = [200, 300, 400] [km] >>> lats = np.arange(60, 71, 10.) # = [60, 70] [°N] >>> lons = np.arange(-70., 71., 35.) # = [-70, -35, 0, 35, 70] [°E] >>> # broadcasting is done internally >>> ds = msise_4d(datetime(2009, 6, 21, 8, 3, 20), alts, lats, lons) ``` #### Response Example ``` Dimensions: (alt: 3, lat: 2, lon: 5, time: 1) Coordinates: * time (time) datetime64[ns] 2009-06-21T08:03:20 * alt (alt) float64 200.0 300.0 400.0 * lat (lat) float64 60.0 70.0 * lon (lon) float64 -70.0 -35.0 0.0 35.0 70.0 Data variables: He (time, alt, lat, lon) float64 8.597e+05 1.063e+06 ... 4.936e+05 O (time, alt, lat, lon) float64 1.248e+09 1.46e+09 ... 2.635e+07 N2 (time, alt, lat, lon) float64 2.555e+09 2.654e+09 ... 1.667e+06 O2 (time, alt, lat, lon) float64 2.1e+08 2.062e+08 ... 3.471e+04 Ar (time, alt, lat, lon) float64 3.16e+06 3.287e+06 ... 76.55 67.16 rho (time, alt, lat, lon) float64 1.635e-13 1.736e-13 ... 7.984e-16 H (time, alt, lat, lon) float64 3.144e+05 3.02e+05 ... 1.237e+05 N (time, alt, lat, lon) float64 9.095e+06 1.069e+07 ... 6.765e+05 AnomO (time, alt, lat, lon) float64 1.173e-08 1.173e-08 ... 1.101e+04 Texo (time, alt, lat, lon) float64 805.2 823.7 807.1 ... 818.7 821.2 Talt (time, alt, lat, lon) float64 757.9 758.7 766.4 ... 818.7 821.1 lst (time, lon) float64 3.389 5.722 8.056 10.39 12.72 Ap (time) int32 6 f107 (time) float64 66.7 f107a (time) float64 69.0 ``` ``` -------------------------------- ### nrlmsise00._nrlmsise00.gtd7d(*args, **kwargs) Source: https://github.com/st-bender/pynrlmsise00/blob/master/docs/reference/_nrlmsise00.rst MSIS Neutral Atmosphere Empirical Model from the surface to lower exosphere. This subroutine provides Effective Total Mass Density for output d[5] which includes contributions from 'anomalous oxygen' which can affect satellite drag above 500 km. ```APIDOC ## nrlmsise00._nrlmsise00.gtd7d(*args, **kwargs) ### Description MSIS Neutral Atmosphere Empirical Model from the surface to lower exosphere. This subroutine provides Effective Total Mass Density for output d[5] which includes contributions from 'anomalous oxygen' which can affect satellite drag above 500 km. ### Parameters - **\*args** - Required - Same as for gtd7(). - **\*\*kwargs** - Required - Same as for gtd7(). ### Returns - **densities, temperatures** (list, list) - See documentation for gtd7(), except for d[5]: SUBROUTINE GTD7D – d[5] is the 'effective total mass density for drag' and is the sum of the mass densities of all species in this model, INCLUDING anomalous oxygen. ``` -------------------------------- ### Broadcast msise_flat over multiple altitudes and latitudes Source: https://github.com/st-bender/pynrlmsise00/blob/master/README.md Calculate values for multiple altitudes and latitudes simultaneously using `numpy.newaxis` (or `None`) for broadcasting. The `time` array should contain `datetime.datetime` entries; convert `pandas.DatetimeIndex` with `.to_pydatetime()` and `astropy.time.Time` arrays with `.to_datetime()`. The output is a 2 x 3 x 11 element array. ```python >>> from datetime import datetime >>> import numpy as np >>> from nrlmsise00 import msise_flat >>> alts = np.arange(200, 401, 100.) # = [200, 300, 400] [km] >>> lats = np.arange(60, 71, 10.) # = [60, 70] [°N] >>> # Using broadcasting, the output will be a 2 x 3 x 11 element array: >>> msise_flat(datetime(2009, 6, 21, 8, 3, 20), alts[None, :], lats[:, None], -70, 150, 150, 4) array([[[1.36949418e+06, 1.95229496e+09, 3.83824808e+09, 1.79130515e+08, 4.92145034e+06, 2.40511268e-13, 8.34108685e+04, 1.74317585e+07, 3.45500931e-08, 1.10058413e+03, 9.68827485e+02], [8.40190601e+05, 3.25739060e+08, 1.82477392e+08, 5.37973134e+06, 6.53609278e+04, 1.75304136e-14, 5.92944463e+04, 4.36516218e+06, 1.03939126e+02, 1.10058413e+03, 1.08356514e+03], [5.65085279e+05, 6.79850175e+07, 1.18819263e+07, 2.37030166e+05, 1.32459684e+03, 2.39947892e-15, 5.32498381e+04, 1.07596246e+06, 2.66727321e+04, 1.10058413e+03, 1.09824872e+03]], [[1.10012225e+06, 1.94725472e+09, 4.08547233e+09, 1.92320077e+08, 6.65460281e+06, 2.52846563e-13, 6.16745965e+04, 2.45012145e+07, 5.21846603e-08, 1.13812434e+03, 1.00132640e+03], [6.83809952e+05, 3.42643970e+08, 2.13434661e+08, 6.43426889e+06, 1.01162173e+05, 1.95300073e-14, 4.36031132e+04, 6.70490625e+06, 1.59911615e+02, 1.13812434e+03, 1.12084651e+03], [4.65787225e+05, 7.52160226e+07, 1.51795904e+07, 3.13560147e+05, 2.32541183e+03, 2.76353370e-15, 3.92811827e+04, 1.73321928e+06, 4.12296154e+04, 1.13812434e+03, 1.13580463e+03]]]) ``` -------------------------------- ### nrlmsise00.msise_model(time, alt, lat, lon, f107a, f107, ap, lst=None, ap_a=None, flags=None, method='gtd7') Source: https://github.com/st-bender/pynrlmsise00/blob/master/docs/reference/nrlmsise00.rst Interface to gtd7() and gtd7d(). Calls the C model function using a datetime.datetime instance to calculate the day of year, seconds and so on. The method keyword decides which version to call, the difference being that gtd7d() includes anomalous oxygen in the total mass density (d[5]), gtd7() does not. ```APIDOC ## nrlmsise00.msise_model(time, alt, lat, lon, f107a, f107, ap, lst=None, ap_a=None, flags=None, method='gtd7') ### Description Interface to gtd7() and gtd7d(). Calls the C model function using a datetime.datetime instance to calculate the day of year, seconds and so on. The method keyword decides which version to call, the difference being that gtd7d() includes anomalous oxygen in the total mass density (d[5]), gtd7() does not. ### Parameters - **time** (datetime.datetime) - Required - Date and time as a datetime.dateime. - **alt** (float) - Required - Altitude in km. - **lat** (float) - Required - Latitude in degrees north. - **lon** (float) - Required - Longitude in degrees east. - **f107a** (float) - Required - The observed f107a (81-day running mean of f107) centred at date. - **f107** (float) - Required - The observed f107 value on the previous day. - **ap** (float) - Required - The ap value at date. - **lst** (float, optional) - The local solar time, can be different from the calculated one. - **ap_a** (list, optional) - List of length 7 containing ap values to be used when flags[9] is set to -1, otherwise no effect. - **flags** (list, optional) - List of length 24 setting the NRLMSIS switches explicitly. - **method** (string, optional) - Set to "gtd7d" to use gtd7d() (which includes anomalous oxygen in the total mass density) instead of the "standard" gtd7() function without it. ### Returns - **densities** (list of floats) - 1. He number density [cm^-3], 2. O number density [cm^-3], 3. N2 number density [cm^-3], 4. O2 number density [cm^-3], 5. AR number density [cm^-3], 6. total mass density [g cm^-3] (includes d[8] in gtd7d), 7. H number density [cm^-3], 8. N number density [cm^-3], 9. Anomalous oxygen number density [cm^-3] - **temperatures** (list of floats) - 1. Exospheric temperature [K], 2. Temperature at alt [K] ### Notes No date and time conversion will be attempted, the input needs to be converted before, dateutil or pandas provide convenient functions. For example to convert pandas.DatetimeIndex use .to_pydatetime(), for astropy.time.Time use