Simulations

LIME Toolbox allows users to simulate lunar reflectance, irradiance, and the degree of linear polarisation (DoLP). Simulations are performed using the Simulation page (Figure 6), which is the default view when launching LIME Toolbox.

Users can select one of three simulation methods:

  • Geographic Coordinates – Based on an Earth-based location.

  • Selenographic Coordinates – Based on a location on the Moon.

  • Satellite Position – Based on an orbiting satellite’s position.

Simulation page

Figure 6: Simulation page.

Simulation Using Geographic Coordinates

Selecting the “Geographic” tab allows users to perform simulations based on Earth coordinates (Figure 7). Users must provide:

  • Latitude & Longitude (in decimal degrees)

  • Altitude (in kilometers)

  • UTC Date & Time

Geographic coordinates input

Figure 7: Geographic coordinates input.

Time-Series Input

For multiple timestamps, click “LOAD TIME-SERIES”, which enables time-series file input (Figure 8).

Geographic coordinates input for multiple timestamps

Figure 8: Geographic coordinates input for multiple timestamps.

Loading Time-Series Data

  1. Click “LOAD FILE” to open a file selection dialog.

  2. Select a file containing timestamps in one of the following formats:

    • ISO 8601 format

    • Comma-separated values (CSV):

      • yyyy,mm,dd,HH,MM,SS

      • yyyy,mm,dd,HH,MM,SS,microseconds

Example Valid File

2022,01,17,02,02,04
2023,01,17,02,02,04,123545
2020-01-12 00:22:43.124

Additional options:

  • “SEE TIMES” – Opens a window displaying imported timestamps.

  • “INPUT SINGLE TIME” – Switches back to single timestamp mode.

Command-Line Interface (CLI)

Use the -e or --earth option:

lime -e latitude_deg,longitude_deg,height_km,datetime_isoformat

Example

For a simulation of 35° of latitude, -25.2° of longitude, 400 meters of altitude, and at the date and time of 2022-01-20 02:00:00 UTC:

lime -e 35,-25.2,0.4,2022-01-20T02:00:00

For time-series input:

lime -e 35,-25.2,0.4 -t timeseries.txt

Simulation Using Selenographic Coordinates

Selecting the “Selenographic” tab enables simulations using Moon-based coordinates (Figure 9). Users must provide:

  • Sun-Moon Distance (AU)

  • Observer-Moon Distance (km)

  • Selenographic Latitude & Longitude of Observer (decimal degrees)

  • Selenographic Longitude of the Sun (radians)

  • Moon Phase Angle (decimal degrees)

Selenographic coordinates input

Figure 9: Selenographic coordinates input.

Command-Line Interface (CLI)

Use the -l or --lunar option:

lime -l distance_sun_moon,distance_observer_moon,selen_obs_lat,selen_obs_lon,selen_sun_lon,moon_phase_angle

Example

For a simulation for 0.98 AU of Sun-Moon Distance, 420000 km of Observer-Moon Distance, 20.5° and -30.2° as the selenographic latitude and longitude of the observer, 0.69 radians as the selenographic longitude of the Sun, and 15º as the moon phase angle:

lime -l 0.98,420000,20.5,-30.2,0.69,15 

Simulation Using Satellite Positions

Selecting the “Satellite” tab enables simulation based on orbiting satellites (Figure 10).
Users must:

  • Select a satellite from the available list.

  • Provide a UTC Date & Time.

Note: Time-series input works the same as in Geographic Coordinates.

Selecting the “Satellite” tab enables simulations based on orbiting satellite (Figure 10). Users must:

  • Select a satellite from the available list.

  • Provide a UTC Date & Time.

    Note: Time-series input works the same as in Geographic Coordinates.

Satellite position input

Figure 10: Satellite position input.

Adding a New Satellite

It’s possible to add user-defined satellites to the list of available satellites.

  1. Click the button with a plus (+) sign on the right of the dropdown.

  2. The user will be prompted with the Add Satellite Data window (Figure 11).

  3. Click “LOAD FILE” which opens a file selection dialog where users can load Orbit Scenario Files (OSF) or Three-Line Element Set files (TLE/3LE).

  4. The Add Satellite Data window will now display information of the loaded file, and the user must fill the last details.

    • Satellite Name: Only editable for OSF files. Name that will be displayed in the satellite list.

    • Start time: Date when the file validity starts.

    • End time: Date when the file validity stops.

  5. Click “SAVE SATELLITE DATA” to store the loaded data in the local LIME Toolbox system.

Add Satellite Data window

Figure 11: Add Satellite Data window.

Command-Line Interface (CLI)

Use the -s or --satellite option:

lime -s sat_name,datetime_isoformat

Example

To perform a simulation for the satellite PROVA-B at the date and time of 2020-01-20 02:00:00h:

lime -s PROBA-V,2020-01-20T02:00:00

As in Geographic Coordinates, one can use time-series input:

lime -s PROBA-V -t timeseries.txt

It’s not possible to add a user-defined satellite throught the CLI at the moment.

Simulation output

The simulation results are displayed below the input section. Users can select one of the following button to run simulations and view results:

  • “IRRADIANCE” – Displays irradiance results.

  • “REFLECTANCE” – Shows reflectance results.

  • “POLARIZATION” – Visualizes Degree of Lunar Polarisation (DoLP).

These buttons are positioned between the input and the output, as shown on top of Figure 12.

Simulation output

Figure 12: Simulation output.

Results are plotted with:

  • X-axis → Wavelengths.

  • Y-axis → Computed values.

Exporting Simulation Results

Users can export the results in multiple formats:

Graphical Export (Image/PDF)

  • Click “EXPORT GRAPH” (bottom-left) to save the graph as an image or PDF.

  • A file system dialog will prompt the user to select the location, filename, and format.

  • Supported formats include JPG, PNG, PDF, and other common image formats.

Data Export (CSV File)

  • Click “EXPORT CSV” (bottom-right) to save the simulation data as a comma-separated values (CSV) file.

  • The user will be prompted to choose the location and filename.

NetCDF Export

  • Click “EXPORT TO NETCDF” (bottom of the page) to save results as a netCDF file.

Why use netCDF?

  • Unlike CSV, netCDF allows LIME Toolbox to reload previous simulations for visualization.

  • This format enables efficient data storage and retrieval.

Command-Line Interface (CLI) Export Options

In the CLI, results are only accessible by exporting them to data files. To do this, users must utilize the -o or --output option, with the argument varying based on the desired output type.

Graphical Export (Image/PDF)

Specify the image type, paths and filenames of each graph:

-o graph,(pdf|jpg|png|svg),reflectance_path,irradiance_path,polarisation_path

For example:

-o graph,jpg,reflectance.jpg,irradiance.jpg,polarisation.jpg

Data Export (CSV File)

Specify paths and names of each file:

-o csv,reflectance_path,irradiance_path,polarization_path,integrated_irradiance_path

For example:

-o csv,reflectance.csv,irradiance.csv,polarization.csv,integrated_irradiance.csv

NetCDF Export

Specify the netCDF file path:

-o nc,output_path

For example:

-o nc,output.nc

Integrated Irradiance

LIME Toolbox integrates the calculated irradiance over the selected spectral response function (SRF). These values appear in the “Signal” tab (Figure 13), showing one value per SRF channel, and can be exported as CSV.

Signal tab showing some results for the CIMEL SRF

Figure 13: Signal tab showing some results for the CIMEL SRF.

Spectral Response Functions (SRF)

Users can visualise, load, and switch between different SRFs in the “SRF” tab (Figure 14). This tab presents:

  • A graph of the currently selected SRF, where:

    • X-axis represents wavelengths.

    • Y-axis represents the spectral response.

  • Two vertical black lines marking the lower and upper simulation limits of LIME Toolbox.

SRF tab showing CIMEL SRF

Figure 14: SRF tab showing CIMEL SRF.

By default, LIME Toolbox includes a default SRF that encompasses the entire LIME spectrum, named “Default”.

Loading a New SRF

  1. Click “LOAD” (top-right corner in Figure 14).

  2. Select a netCDF SRF file in GLOD format (explained in the File Formats section).

  3. Once loaded, use the dropdown menu next to the “LOAD” button to switch between SRFs.

This can also be done in the CLI using the -f or --srf option followed by the SRF path:

-f srf_path

Exporting SRF Data

  • Graphs can be exported as images or PDFs.

  • SRF data can be exported as CSV files.