CreateRAMISimulations (version 1.0)
index
/mnt/data2/home/cajgfingert/DART/Scripts/ScriptsRami/CreateRAMISimulations.py

Functions that create the wanted RAMI simulations from a given core simulation

 
Modules
       
argparse
os
shutil

 
Functions
       
CreateSimulationFolders(SimulationsFolder, **kwarg)
Create folders for the validated simulations, copied from the core simulation
Input:
------
arg:
  - SimulationsFolder: path to the simulations folder
  * NameCoreSimulation: name of the core simulation
  * nameFileAllRAMISimulations: file containing all the ROMC simulation names
  * RequestedNumber: list of requested key numbers    
  * RequestedLAD: list of requested LAD    
  * RequestedSZA: list of requested SZA    
  * RequestedTurbid: list of requested turbid modes
  * RequestedSpectralBand: list of requested spectral bands
  * r: authorization to replace existing folders
DefineSimulations(nameFileAllRAMISimulations, RequestedNumber, RequestedLAD, RequestedSZA, RequestedTurbid, RequestedSpectralBand)
Tests the names of the ROMC simulations to the requested parameters and returns a list of validated simulations
Input:
------
arg:
  - nameFileAllRAMISimulations: file containing all the ROMC simulation names
  - RequestedNumber: list of requested key numbers    
  - RequestedLAD: list of requested LAD    
  - RequestedSZA: list of requested SZA    
  - RequestedTurbid: list of requested turbid modes
  - RequestedSpectralBand: list of requested spectral bands
Return:
-------
  - SimulationListValidated: list of validated simulations
testLADSimulation(SimulationName, RequestedLAD)
Tests if the simulation name contains one of the requested LAD
Input:
------
arg:
  - SimulationName: simulation name formatted according to the ROMC guidelines
  - RequestedLAD: list of requested LAD
testNumberSimulation(SimulationName, RequestedNumber)
Tests if the simulation name contains one of the requested key number 
Input:
------
arg:
  - SimulationName: simulation name formatted according to the ROMC guidelines
  - RequestedNumber: list of requested key numbers
testSZASimulation(SimulationName, RequestedSZA)
Tests if the simulation name contains one of the requested SZA
Input:
------
arg:
  - SimulationName: simulation name formatted according to the ROMC guidelines
  - RequestedSZA: list of requested SZA
testSpectralBandSimulation(SimulationName, RequestedSpectralBand)
Tests if the simulation name contains one of the requested spectral bands
Input:
------
arg:
  - SimulationName: simulation name formatted according to the ROMC guidelines
  - RequestedSpectralBand: list of requested spectral bands
testTurbidSimulation(SimulationName, RequestedTurbid)
Tests if the simulation name contains one of the requested turbid modes (turbide or discrete scatterers)
Input:
------
arg:
  - SimulationName: simulation name formatted according to the ROMC guidelines
  - RequestedTurbid: list of requested turbid modes

 
Data
        __author__ = 'Cajgfinger T.'
__credits__ = 'CESBIO'
__version__ = '1.0'

 
Author
        Cajgfinger T.

 
Credits
        CESBIO