Menu |
Prof /
IlluminaLightGuide2022ILLUMINA Light USER'S GUIDEHector Linarez Arroyo Ph.D., Alexandre Simoneau M.Sc. & Martin Aubé, Ph.D. copyright 2022 Latest update: August 23 2022 NewsNew features
Bug fixes General informationsThis users guide aim to help users of the ILLUMINA light sky radiance model to prepare and manage their own simulations. We hope that the document is accurate enough but will be happy to improve it according to some difficulties you may encounter when using it. For any help please contact the PI Dr Martin Aubé (martin.aube at cegepsherbrooke.qc.ca). This guide is exclusively for the simplified model Illumina Light, if you plan to use the full model please use the pertinent guide. DescriptionIllumina Light is designed to be run in a personal computer or a laptop. It computes the artificial zenith sky brightness for the V band (more bands coming soon). Moreover, the natural light model Gambons (Masana et al 2021) is embedded in the pipeline. Combining both models the user will know the the total sky brightness similar to what it is obtained with measurements, as well as the separate contribution from the natural and artificial components. The model presented also produces a contribution map. This result shows where the artificial light that is polluting the zenith over the location selected is originated, and to what extent. Monthly averaged data from the VIIRS-DNB satellite sensor is used for inferring the radiance emitted by sources. InstallationOperating systemILLUMINA light should be used with a computer running under Linux with Fortran and gcc compilers (e.g. gfortran) and Python (3.8) with the pip versioning system installed. The easiest path to get into Illumina light is to use of a virtual environment to manage the Python libraries. For a debian based system you can do it that way. sudo apt-get install python3-venv python3 -m venv $HOME/illum We assume here that the virtual environment will be in $HOME/illum. You can change that path to whatever you want but in the following steps we will assume you have done it that way. Activate the virtual environment source $HOME/illum/bin/activate Other software dependenciesThe following software are needed by the system
We also suggest installing some Python libraries that are not needed but are useful.
In all cases, the most recent version of the code should be used. The code is evolving rapidly and then by updating your version frequently, you will benefit of new features and bug fixes. Installing the codeThe ILLUMINA project is available from github: https://github.com/aubema/illumina All sources codes are released under GNU public license. To download the model from github, please follow these steps: cd mkdir git cd git git clone https://github.com/aubema/illumina.git Then you must compile the code: cd $HOME/git/illumina bash ./bin/makeILLUMINA Then modify the $HOME/.bashrc file by typing the following commands in the terminal window. This will make the programs executable from anywhere on the file system. echo "PATH=\$PATH:\$HOME/.local/bin:\$HOME/git/illumina/bin" >> $HOME/.bashrc Now you have installed the Illumina project, that includes the full model and Illumina Light. To use Illumina Light you need to change the branch of the project from master to GUI: cd $HOME/git/illumina git checkout GUI git pull You should receive the following message: Switched to branch 'GUI' Your branch is up to date with 'origin/GUI' Finally, the model is installed using: pip3 install -e $HOME/git/illumina Preparing an executionIn order to execute the model, some data manipulation is needed to prepare it for the model. It is strongly recommended to separate the data from the code by creating a new directory somewhere on your computer and placing all the relevant data within. When it is done, enter this directory and execute illum init. The script will copy the necessary files to the current directory. The parameter files can then be modified to contain the correct values for your experiment. Running the modelIn order to start working with Illumina Light you only need one command: illum light The first time you run Illumina Light all the inputs files that are required will be downloaded automatically. It may take several minutes. Then visual interface will open. Visual interfaceThe user only has to deal with the different options that the visual interface offers. There is no need to use the terminal anymore. 1. LocationThis section has 5 boxes to fill: - Name: experiment name, any string is accepted. Designed for helping the user organize experiments. 2. Experiment- Direction: Zenith (fixed). 3. AtmosphereThe atmospheric definition has been defined following the OPAC model (Hess et al 1998). - Aerosols: there are several options that the user can choose for defining the aerosol components of the atmosphere. They define the most typical cases. If the user wants to go further and define a specific case please use the full model and not Illumina Light. 4. Light sourcesThe user has to define here the light sources around the observation point. All the sources will be defined in the same manner, the user should define the mean values. The user can introduce as many kinds of lamps as wanted: - %: the percentage (or any kind of ratio) of the kind of lamps introduced. The program will normalize the proportion taking into account all the kind of lamps introduced. The user has to click on "Add light fixture" for any combination of the options above. A message in the dialog box below should appear stating all the lamps added. In case of error, click on "Clean All" and start over. 5. Architectural features around light sources- Mean height of the lamps in meters. 6. Define simulationBy clicking this button the experiment will be defined. It requires that all the previous steps have been completed. When finished, a message will appear on the Dialog Box with a summary of the definition of the experiment. 7. Run simulationBy clicking this button the computation will start. The model will use as many CPUs as possible. It normally takes less than 7 minutes for 5 CPU intel i7 8th generation. The time needed changes from experiment to experiment depending on the sources and other variables. ResultsResults will appear in the dialog box. Units of the radiances are in mag/arcsec². Additionally a contribution map will be displayed. In the experiment folder the user will find and all-sky map of the natural light (Gambons). 8. Alternative scenariosIt is possible to compare the results obtained in the main experiment to what will happen if the light fixtures were changed. To do such comparisons the main experiment ought to represent the real scenario as the model adapts the radiance detected by the satellite VIIRS-DNB depending on the light fixtures installed. The user has to define a new sets of lights: follow steps 4, 6 and 7. |