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

Functions that change the xml in simulations according to the key names of the simulation

 
Modules
       
argparse
array
scipy.interpolate
math
xml.dom.minidom
numpy
os
random
shutil
struct
subprocess
sys
time

 
Functions
       
changeRamiSimulationParameters(SimulationName, SimulationsFolder, dz, dxy, Iterations)
Get all the necessary values from the name of the simulation then change the xml files to match those values
Input:
------
arg:
  - SimulationName: simulation name formatted according to the ROMC guidelines
  - SimulationsFolder: path to the simulation folder
  - dz: number of cells along the z axis
  - dxy: number of cells along the x,y axis
  - Iterations: number of iterations wanted in the simulation
getRamiSimulationHeightOfCanopy(SimulationName)
Get the value of the height of the canopy from the name of the simulation
Input:
------
arg:
  - SimulationName: simulation name formatted according to the ROMC guidelines
 
Return:
-------
  - HeightOfCanopy: height of the canopy
getRamiSimulationLAD(SimulationName)
Get the value of leaf angle distribution (LAD) from the name of the simulation
Input:
------
arg:
  - SimulationName: simulation name formatted according to the ROMC guidelines
 
Return:
-------
  - LAD: 
    'SPHE' or 1
    'ERE' or 2
    'PLANO' or 3
getRamiSimulationLAI(SimulationName)
Get the value of the leaf area index (LAI) from the name of the simulation
Input:
------
arg:
  - SimulationName: simulation name formatted according to the ROMC guidelines
    
Return:
-------
  - Value of the LAI (1,2,3 or 5)
getRamiSimulationParameters(SimulationName)
Get all the necessary values from the name of the simulation
Input:
------
arg:
  - SimulationName: simulation name formatted according to the ROMC guidelines
 
Return:
-------
  - Value of the SZA (0,20,30,50 or 60) 
  - LeafReflectance: value of the leaf reflectance
  - LeafTransmittance: value of the leaf transmittance
  - SoilReflectance: value of the soil reflectance
  - Value of the LAI (1,2,3 or 5) 
  - ScattererRadius: radius of scatterers    
  - DiscreteScatterer: False for turbid medium, true for discrete scatterers
  - LAD: 
    'SPHE' or 1
    'ERE' or 2
    'PLANO' or 3    
  - HeightOfCanopy: height of the canopy
getRamiSimulationPhaseProperties(SimulationName)
Get the phases properties from the name of the simulation
Input:
------
arg:
  - SimulationName: simulation name formatted according to the ROMC guidelines
    
Return:
-------
  - LeafReflectance: value of the leaf reflectance
  - LeafTransmittance: value of the leaf transmittance
  - SoilReflectance: value of the soil reflectance
getRamiSimulationSZA(SimulationName)
Get the value of the sun zenith angle (SZA) from the name of the simulation
Input:
------
arg:
  - SimulationName: simulation name formatted according to the ROMC guidelines
    
Return:
-------
  - Value of the SZA (0,20,30,50 or 60)
getRamiSimulationTurbidProperties(SimulationName)
Get the value of turbid properties from the name of the simulation
Input:
------
arg:
  - SimulationName: simulation name formatted according to the ROMC guidelines
 
Return:
-------
  - ScattererRadius: radius of scatterers
  - DiscreteScatterer: False for turbid medium, true for discrete scatterers

 
Data
        __author__ = 'Cajgfinger T.'
__credits__ = 'CESBIO'
__version__ = '1.0'
degToRad = 0.017453292519943295
separator = '/'

 
Author
        Cajgfinger T.

 
Credits
        CESBIO