Soil Water Balance (SWB2)
Loading...
Searching...
No Matches
output Module Reference

Data Types

type  netcdf_file_collection_t
type  output_specs_t

Enumerations

enum  {
  ncdf_gross_precipitation =1 , ncdf_rainfall , ncdf_snowfall , ncdf_interception ,
  ncdf_interception_storage , ncdf_runon , ncdf_runoff , ncdf_surface_runoff ,
  ncdf_snow_storage , ncdf_surface_storage , ncdf_soil_storage , ncdf_delta_soil_storage ,
  ncdf_reference_et0 , ncdf_actual_et , ncdf_climatic_deficit , ncdf_snowmelt ,
  ncdf_tmin , ncdf_tmax , ncdf_tmax_minus_tmin , ncdf_net_infiltration ,
  ncdf_rejected_net_infiltration , ncdf_infiltration , ncdf_irrigation , ncdf_runoff_outside ,
  ncdf_crop_et , ncdf_bare_soil_evap , ncdf_gdd , ncdf_direct_net_infiltration ,
  ncdf_direct_soil_moisture , ncdf_storm_drain_capture , ncdf_growing_season , ncdf_fog
}

Functions/Subroutines

subroutine set_output_latlon_option (output_includes_latlon_l)
subroutine set_output_directory (output_dir_name)
subroutine set_output_prefix (output_prefix)
subroutine initialize_output (cells)
subroutine initialize_multiple_sim_output (cells, number_of_simulations)
subroutine finalize_output (cells)
subroutine output_2d_float_array (ncfile_ptr, values, cells)
subroutine write_output (cells)
subroutine write_multi_sim_output (cells, simulation_number)
pure real(c_float) function update_minimum_value (current_minimum, values)
pure real(c_float) function update_maximum_value (current_maximum, values)

Variables

real(c_double), dimension(:), allocatable recharge_array
type(netcdf_file_collection_t), dimension(:), allocatable, public nc_out
type(netcdf_file_collection_t), dimension(:,:), allocatable, public nc_multi_sim_out
integer(c_int), parameter ncdf_num_outputs = 32
type(output_specs_t), dimension(ncdf_num_outputsoutspecs = [ OUTPUT_SPECS_T( "gross_precipitation ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "rainfall ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "snowfall ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "interception ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "interception_storage ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "runon ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "runoff ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "surface_runoff ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "snow_storage ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "surface_storage ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "soil_storage ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "delta_soil_storage ", "inches ", 2000.0, -2000.0, FALSE, FALSE ), OUTPUT_SPECS_T( "reference_ET0 ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "actual_et ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "climatic_deficit ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "snowmelt ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "tmin ", "degrees_fahrenheit ", 2000.0, -2000.0, TRUE, FALSE ), OUTPUT_SPECS_T( "tmax ", "degrees_fahrenheit ", 2000.0, -2000.0, TRUE, FALSE ), OUTPUT_SPECS_T( "tmax_minus_tmin ", "degrees_fahrenheit ", 2000.0, -2000.0, FALSE, FALSE ), OUTPUT_SPECS_T( "net_infiltration ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "rejected_net_infiltration ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "infiltration ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "irrigation ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "runoff_outside ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "crop_et ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "bare_soil_evaporation ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "growing_degree_day ", "degree_day_fahrenheit", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "direct_net_infiltation ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "direct_soil_moisture ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "storm_drain_capture ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "growing_season ", "0_no__1_yes ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "fog ", "inches ", 2000.0, 0.0, FALSE, FALSE) ]
logical(c_bool) output_includes_latlon = TRUE

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ncdf_gross_precipitation 
ncdf_rainfall 
ncdf_snowfall 
ncdf_interception 
ncdf_interception_storage 
ncdf_runon 
ncdf_runoff 
ncdf_surface_runoff 
ncdf_snow_storage 
ncdf_surface_storage 
ncdf_soil_storage 
ncdf_delta_soil_storage 
ncdf_reference_et0 
ncdf_actual_et 
ncdf_climatic_deficit 
ncdf_snowmelt 
ncdf_tmin 
ncdf_tmax 
ncdf_tmax_minus_tmin 
ncdf_net_infiltration 
ncdf_rejected_net_infiltration 
ncdf_infiltration 
ncdf_irrigation 
ncdf_runoff_outside 
ncdf_crop_et 
ncdf_bare_soil_evap 
ncdf_gdd 
ncdf_direct_net_infiltration 
ncdf_direct_soil_moisture 
ncdf_storm_drain_capture 
ncdf_growing_season 
ncdf_fog 

Definition at line 67 of file output.F90.

Function/Subroutine Documentation

◆ finalize_output()

subroutine output::finalize_output ( class (model_domain_t), intent(inout) cells)

Definition at line 295 of file output.F90.

Here is the call graph for this function:

◆ initialize_multiple_sim_output()

subroutine output::initialize_multiple_sim_output ( class (model_domain_t), intent(inout) cells,
integer (c_int), intent(in) number_of_simulations )

Definition at line 204 of file output.F90.

Here is the call graph for this function:

◆ initialize_output()

subroutine output::initialize_output ( class (model_domain_t), intent(inout) cells)

Definition at line 119 of file output.F90.

Here is the call graph for this function:

◆ output_2d_float_array()

subroutine output::output_2d_float_array ( type (t_netcdf4_file), pointer ncfile_ptr,
real (c_float), dimension(:), intent(in) values,
class (model_domain_t), intent(in) cells )

Definition at line 335 of file output.F90.

Here is the call graph for this function:

◆ set_output_directory()

subroutine output::set_output_directory ( character (len=*), intent(in) output_dir_name)

Definition at line 99 of file output.F90.

◆ set_output_latlon_option()

subroutine output::set_output_latlon_option ( logical (c_bool) output_includes_latlon_l)

Definition at line 89 of file output.F90.

◆ set_output_prefix()

subroutine output::set_output_prefix ( character (len=*), intent(in) output_prefix)

Definition at line 109 of file output.F90.

◆ update_maximum_value()

pure real (c_float) function output::update_maximum_value ( real (c_float), intent(in) current_maximum,
real (c_float), dimension(:), intent(in) values )

Definition at line 894 of file output.F90.

◆ update_minimum_value()

pure real (c_float) function output::update_minimum_value ( real (c_float), intent(in) current_minimum,
real (c_float), dimension(:), intent(in) values )

Definition at line 881 of file output.F90.

◆ write_multi_sim_output()

subroutine output::write_multi_sim_output ( class (model_domain_t), intent(inout) cells,
integer (c_int), intent(in) simulation_number )

Definition at line 799 of file output.F90.

Here is the call graph for this function:

◆ write_output()

subroutine output::write_output ( class (model_domain_t), intent(inout) cells)

Definition at line 363 of file output.F90.

Here is the call graph for this function:

Variable Documentation

◆ nc_multi_sim_out

type (netcdf_file_collection_t), dimension(:,:), allocatable, public output::nc_multi_sim_out

Definition at line 19 of file output.F90.

◆ nc_out

type (netcdf_file_collection_t), dimension(:), allocatable, public output::nc_out

Definition at line 18 of file output.F90.

◆ ncdf_num_outputs

integer (c_int), parameter output::ncdf_num_outputs = 32

Definition at line 22 of file output.F90.

◆ output_includes_latlon

logical ( c_bool ) output::output_includes_latlon = TRUE

Definition at line 85 of file output.F90.

◆ outspecs

type (output_specs_t), dimension(ncdf_num_outputs) output::outspecs = [ OUTPUT_SPECS_T( "gross_precipitation ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "rainfall ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "snowfall ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "interception ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "interception_storage ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "runon ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "runoff ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "surface_runoff ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "snow_storage ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "surface_storage ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "soil_storage ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "delta_soil_storage ", "inches ", 2000.0, -2000.0, FALSE, FALSE ), OUTPUT_SPECS_T( "reference_ET0 ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "actual_et ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "climatic_deficit ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "snowmelt ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "tmin ", "degrees_fahrenheit ", 2000.0, -2000.0, TRUE, FALSE ), OUTPUT_SPECS_T( "tmax ", "degrees_fahrenheit ", 2000.0, -2000.0, TRUE, FALSE ), OUTPUT_SPECS_T( "tmax_minus_tmin ", "degrees_fahrenheit ", 2000.0, -2000.0, FALSE, FALSE ), OUTPUT_SPECS_T( "net_infiltration ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "rejected_net_infiltration ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "infiltration ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "irrigation ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "runoff_outside ", "inches ", 2000.0, 0.0, TRUE, FALSE ), OUTPUT_SPECS_T( "crop_et ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "bare_soil_evaporation ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "growing_degree_day ", "degree_day_fahrenheit", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "direct_net_infiltation ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "direct_soil_moisture ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "storm_drain_capture ", "inches ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "growing_season ", "0_no__1_yes ", 2000.0, 0.0, FALSE, FALSE ), OUTPUT_SPECS_T( "fog ", "inches ", 2000.0, 0.0, FALSE, FALSE) ]

Definition at line 33 of file output.F90.

◆ recharge_array

real( c_double ), dimension(:), allocatable output::recharge_array

Definition at line 12 of file output.F90.