The AHA Model
Revision: 12809
Reference implementation 04 (HEDG02_04)
|
Calculate visual range of predator using Dag Aksnes's procedures srgetr()
, easyr()
and deriv()
.
More...
Public Member Functions | |
real(srp) function | visual_range_scalar (irradiance, prey_area, prey_contrast) |
Wrapper for calculating visual range of a fish predator using the Dag Aksnes's procedures srgetr() , easyr() and deriv() . See srgetr() for computational details. More... | |
real(srp) function, dimension(size(prey_area)) | visual_range_vector (irradiance, prey_area, prey_contrast_vect, prey_contrast) |
Wrapper for calculating visual range of a fish predator using the Dag Aksnes's procedures srgetr() , easyr() and deriv() . See srgetr() for computational details. More... | |
Calculate visual range of predator using Dag Aksnes's procedures srgetr()
, easyr()
and deriv()
.
visual_range()
, it is this name which is used throughout the code. visual_range()
by tweaking the interface name, e.g. to switch to the debug version rename visual_range_debug()
to visual_range()
and the next version to visual_range_disable()
.See specific implementations:
real(srp) function the_environment::visual_range::visual_range_scalar | ( | real(srp), intent(in) | irradiance, |
real(srp), intent(in), optional | prey_area, | ||
real(srp), intent(in), optional | prey_contrast | ||
) |
Wrapper for calculating visual range of a fish predator using the Dag Aksnes's procedures srgetr()
, easyr()
and deriv()
. See srgetr()
for computational details.
[in] | irradiance | background irradiance at specific depth |
[in] | prey_area | prey area, m^2 |
[in] | prey_contrast | optional prey inherent contrast or default parameter if not present. |
Example call:
See specific implementations:
Definition at line 4730 of file m_env.f90.
real(srp) function, dimension(size(prey_area)) the_environment::visual_range::visual_range_vector | ( | real(srp), intent(in) | irradiance, |
real(srp), dimension(:), intent(in) | prey_area, | ||
real(srp), dimension(size(prey_area)), intent(in), optional | prey_contrast_vect, | ||
real(srp), intent(in), optional | prey_contrast | ||
) |
Wrapper for calculating visual range of a fish predator using the Dag Aksnes's procedures srgetr()
, easyr()
and deriv()
. See srgetr()
for computational details.
prey_area
is mandatory and also defines the vector size for all other vector parameters including the returned function value vector. This is useful for selecting among a swarm of prey with different sizes when vector is processed. The measurement unit here is meter. Might need conversion if other units are used. [in] | irradiance | background irradiance at specific depth |
[in] | prey_area | prey area, m^2; Mandatory parameter. |
[in] | prey_contrast_vect | optional prey inherent contrast or default parameter if not present. This parameter sets individual vector prey contrast, so can be used for providing stochastic contrast data for each object. |
[in] | prey_contrast | optional prey inherent contrast or default parameter if not present. This parameter sets common scalar prey contrast for the whole vector. |
See specific implementations:
Definition at line 4898 of file m_env.f90.