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

Functions that change values in simulations xml files

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

 
Functions
       
ChangeDiffuseTransmittanceDisks(SimulationName, DiskTransmittance)
Change the diffuse transmittance of disks in simulation
Input:
------
arg:
  - SimulationName: whole path the simulation
  - DiskTransmittance: desired disks diffuse transmittance
ChangeDirectTransmittanceDisks(SimulationName, DiskTransmittance)
Change the direct transmittance of disks in simulation
Input:
------
arg:
  - SimulationName: whole path the simulation
  - DiskTransmittance: desired disks direct transmittance
ChangeLAD(SimulationName, LAD)
Change the LAD in simulation
Input:
------
arg:
  - SimulationName: whole path the simulation
  - LAD: desired LAD
ChangeLAI(SimulationName, LAI)
Change the LAI in simulation
Input:
------
arg:
  - SimulationName: whole path the simulation
  - LAI: desired LAI
ChangeLeafReflectance(SimulationName, LeafReflectance)
Change the leaf reflectance in simulation
Input:
------
arg:
  - SimulationName: whole path the simulation
  - LeafReflectance: desired leaf reflectance
ChangeLeafTransmittance(SimulationName, LeafTransmittance)
Change the leaf transmittance in simulation
Input:
------
arg:
  - SimulationName: whole path the simulation
  - LeafTransmittance: desired leaf transmittance
ChangeNumberOfAngularSectors(SimulationName, NumberOfAngularSectors=20)
Change the number of angular sectors in simulation
Input:
------
arg:
  - SimulationName: whole path the simulation
  - NumberOfAngularSectors: desired number of angular sectors
ChangeNumberOfDirections(SimulationName, NumberOfDirections=200)
Change the number of directions in simulation
Input:
------
arg:
  - SimulationName: whole path the simulation
  - NumberOfDirections: desired number of directions
ChangeNumberOfIterations(SimulationName, NumberOfIterations)
Change the number of iterations in simulation
Input:
------
arg:
  - SimulationName: whole path the simulation
  - NumberOfIterations: desired number of iterations
ChangeReflectancesDisks(SimulationName, DiskReflectance)
Change the reflectance of disks in simulation
Input:
------
arg:
  - SimulationName: whole path the simulation
  - DiskReflectance: desired disks reflectance
ChangeResolutionXY(SimulationName, ResolutionOnXYAxis=0.1)
Change the z resolution in simulation
Input:
------
arg:
  - SimulationName: whole path the simulation
  - ResolutionOnXYAxis: desired resolution on x,y axis
ChangeResolutionZ(SimulationName, ResolutionOnZAxis=0.1)
Change the z resolution in simulation
Input:
------
arg:
  - SimulationName: whole path the simulation
  - ResolutionOnZAxis: desired resolution on z axis
ChangeSZA(SimulationName, SZA)
Change the SZA in simulation
Input:
------
arg:
  - SimulationName: whole path the simulation
  - SZA: desired SZA
ChangeScattererRadius(SimulationName, ScattererRadius)
Change the scatterers radius in simulation
Input:
------
arg:
  - SimulationName: whole path the simulation
  - ScattererRadius: desired scatterers radius
ChangeSoilReflectance(SimulationName, SoilReflectance)
Change the soil reflectance in simulation
Input:
------
arg:
  - SimulationName: whole path the simulation
  - SoilReflectance: desired soil reflectance
ChangeVegetationHeight(SimulationName, Height)
Change the vegetation height in simulation
Input:
------
arg:
  - SimulationName: whole path the simulation
  - Height: desired vegetation height
ComputeNumberOfScatterers(LAI, ScattererRadius)
Compute the number of scatterers of radius r required to create a given LAI
Input:
------
arg:
  - LAI: desired LAI
  - ScattererRadius: scatterers radius
 
Return:
------
  - Number of necessary objects
GetSAASZA(SimulationName)
Returns the values of SZA and SAA 
Input:
------
arg:
  - SimulationName: whole path the simulation
 
Return:
------
  -  SZA
  -  SAA
getNode(parent, nodeName, nodeNum=0)
getNode2(parent, nodeName, nodeNum=0)
getNodeFromPath(path, rootNode, nodeNum=0)
getNodeFromPath2(path, rootNode, nodeNum=0)

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

 
Author
        Cajgfinger T.

 
Credits
        CESBIO