Skip to content

Latest commit

 

History

History
210 lines (182 loc) · 7.95 KB

Documentation.md

File metadata and controls

210 lines (182 loc) · 7.95 KB

Description of each FORTRAN files:

  • geom2.f90 Subroutine computes the new X,Y and Z position of the photon after a scattering event.
  • global.f90 Subroutine contains all the global variables used in the AOMC model.
  • interface.f90 Determines the outcome of the photon's interaction with the air-water interface.
  • light_internal.f90 Subroutine computes the incident angle of the new photon on the water surface.
  • logbin.f90 Subroutine logs the photon's trajectory.
  • mc.f90 (main program) This is the main program.
  • modules.f90 Contains the random number generator function "rand", and the angle summation routine "anglesum".
  • rand_global.f90 Module is contained in subroutine "modules.f90" and computes the random number "rand".
  • vsf.f90 Subroutine determines the photon's angle of scatter using the scattering phase function.
  • water.f90 Subroutine traces the path of a photon from the moment it enters the water to the moment when it lost from the system.

The input files:

  • amc.inp: Main input file. Defines general environmental parameters such as bottom depth, vertical heterogenaty of water body, and solar zenith angle. Also defines model parameters such as sky model to use, number of photons to run and number of bands to simulate.
  • conc.inp: Defines the concentration for each parameters simulated at the different depths (if a vertically heterogenous water body is simulated). This file also allows the user to define the refractive index of each layer.
  • lamba.inp
  • lambs.inp
  • lambda.inp
  • spf.inp

The output files:

The AOMC model will output 4 " *.out " files:

  • aop.out A listing by depth and wavelength of all of the apparent optical properties except radiance.
  • iop.out A listing of the inherent optical properties.
  • rad.out A listing by depth and wavelength of radiance at various angles
  • wave.out A listing by wavelength of the "just below the surface (0-)" values for several apparent optical properties (this is a subset of the data presented in the aop.out file).

amc.inp input file parameters

  1. Number of photons (iterations) to simulate.
    UNITS = n/a
    FORMAT = I12
    LIMIT = [0,99999999]

  2. Use boundary light condition from a lookup table (1) or let the model generate it from a direct or uniformly diffuse source (1). If data are read from file, skylight distribution must wavelength dependent.
    UNITS = n/a
    FORMAT = I1
    LIMIT = [0;1]

    a) Azimuth angle of specular light source (if using model's skylight distribution module)
    UNITS = deg
    FORMAT = I8
    LIMIT = [0,359]

    b) Zenith angle of specular light source. 0deg is the polward angle. (if using model's skylight distribution module)
    UNITS = deg
    FORMAT = I8
    LIMIT = [0,90[

  3. Number of water constituents (including water). The minimum value should be 1 to include water.
    UNITS = n/a
    FORMAT = I8
    LIMIT = [1,20]

  4. Depth of bottom boundary.
    UNITS = meter
    FORMAT = F12.2
    LIMIT = ]0,10000[

  5. Width of side boundary (same for both X and Y). If a photon interacts with the side boundary, it is lost from the system.
    UNITS = meter
    FORMAT = F12.2
    LIMIT = ]0,100000[

  6. Number of layers in which apparent optical properties are to be recorded.
    UNITS = n/a
    FORMAT = I8
    LIMIT = [2,500]

    a) Specify the thickness of the recording layers. If the number of layers are to span the entire water column, set this value to -1.0 ( The actual depth of these recordings will then be calculated from the ratio (depth)/(depth intervals))
    UNITS = meter
    FORMAT = F12.4
    LIMIT = [-1] U ]0,+inf[

  7. When the model records a photon's transfer across a layer interval, it bins the angle of the photon's vector. The bins are divided into equal degrees of latitude.
    UNITS = n/a
    FORMAT = I8
    LIMIT = [1,180]

  8. When the model records a photon's transfer across a depth interval, it bins the angle of the photon's vector. The bins are divided into equal degrees of longitude. UNITS = n/a FORMAT = I8 LIMIT = [1,360]

    a)The user may opt to have the polward bin concatenated into a single polar bin (polar cap). A value of 1 will create a single polar bin. A value of 0 will break down the polar cap into PHI number of bins.
    UNITS = n/a
    FORMAT = I1
    LIMIT = [0;1]

  9. The user may request to log all instances of absorption within the water column. The log records the position X, Y, Z of the absorbing event, the total optical pathlength of the photon and it's last angle of propagation. This file is only applicable to single wavelength mode. (1=yes 0=no).
    UNITS = n/a
    FORMAT = I1
    LIMIT = [0;1]

  10. The user may request to log all instances of photons absorbed by the bottom boundary. The log records the position X, Y, Z of the absorbing event, the total optical pathlength of the photon and it's last angle of propagation. This file is only applicable to single wavelength mode. (1=yes 0=no).
    UNITS = n/a
    FORMAT = I1
    LIMIT = [0;1]

  11. The user may request to log all instances of photons absorbed by the side boundary. The log records the position X, Y, Z of the absorbing event, the total optical pathlength of the photon and it's last angle of propagation. This file is only applicable to single wavelength mode. (1=yes 0=no).
    UNITS = n/a
    FORMAT = I1
    LIMIT = [0;1]

  12. Determine if the cumulative SPF is to be read from a file (1) or randomly determined from an isotropic function.
    UNITS = n/a
    FORMAT = I1
    LIMIT = [0;1]

  13. Number of layers with different optical characteristics (varying concentrations and refractive index)
    UNITS = n/a
    FORMAT = I8
    LIMIT = [1,100]

  14. Grid file output: select the number of rows and columns for the grid output. If a value of 0 is selected, no grid file will be created.
    UNITS = n/a
    FORMAT = I8
    LIMIT = [0,101] (must be odd number)
    a) Size of each cell (same for dX and dY)
    UNITS = meters
    FORMAT = F12.6
    LIMIT = }0,inf[
    b) If file output is to be in SURFER (Golden Software) format, only the upwelling radiance from the air/water surface is reported. The SURFER file format is a SURFER GRID ASCII file.
    UNITS = n/a
    FORMAT = I8
    LIMIT = [0;1]

  15. The light source type can be chosen to be a point (value=1), a circle (value=2) or a rectangle (value=3).
    UNITS = n/a
    FORMAT = I8
    LIMIT = [1;2;3]

  • a) If a circular light source is chosen, enter the diameter of the collimated light source.
    UNITS = m
    FORMAT = F12.6
    LIMIT = ]0,+inf[
  • b) If a rectangular light source is chosen, enter the X value of its dimensions.
    UNITS = m
    FORMAT = F12.6
    LIMIT = ]0,+inf[
  • c) If a rectangular light source is chosen, enter the Y value of its dimensions.
    UNITS = m
    FORMAT = F12.6
    LIMIT = ]0,+inf[
  1. A bottom target can be specified by the user
    UNITS = n/a
    FORMAT = I8
    LIMIT = [1,2]
    a)The X and Y dimensions of the target need to be specified.
    UNITS = meter
    FORMAT = F12.6
    LIMIT = ]0,+inf[

  2. Determine if optical properties are to be normalized to the incident radiation impinging on the water surface (0) or to that just below the air-water interface (1).
    UNITS = meter
    FORMAT = F12.6
    LIMIT = [0;1]