coord_hycom module reference
Regrid columns for the HyCOM coordinate
Data Types
Control structure containing required parameters for the HyCOM coordinate |
Functions/Subroutines
Initialise a hycom_CS with pointers to parameters |
|
Initialise a hycom_CS with pointers to parameters |
|
This subroutine deallocates memory in the control structure for the coord_hycom module |
|
This subroutine can be used to set the parameters for the coord_hycom module |
|
Build a HyCOM coordinate column |
|
Calculate interface density anomaly w.r.t. the target. |
Type Documentation
- type, public :: hycom_CS
Control structure containing required parameters for the HyCOM coordinate
- Parameters
nk
Nominal near-surface resolution [Z ~> m]
coordinateResolution
Nominal density of interfaces [R ~> kg m-3]
target_density
Maximum depths of interfaces [H ~> m or kg m-2]
max_interface_depths
Maximum thicknesses of layers [H ~> m or kg m-2]
max_layer_thickness
If true, an interface only moves if it improves the density fit
only_improves
If true, use 3-D control fields
use_3d
Nominal density of interfaces [R ~> kg m-3]
target_density_3d
Nominal near-surface resolution [Z ~> m]
coordinateResolution_3d
Interpolation control structure
Functions/Subroutine Documentation
- subroutine init_coord_hycom(CS, nk, coordinateResolution, target_density, interp_CS)
Initialise a hycom_CS with pointers to parameters
- Parameters
CS
Unassociated pointer to hold the control structure
nk [in]
Number of layers in generated grid
coordinateResolution [in]
Nominal near-surface resolution [Z ~> m]
target_density [in]
Interface target densities [R ~> kg m-3]
interp_CS [in]
Controls for interpolation
Callees call graph
- subroutine init_3d_coord_hycom(CS, G, nk, coordinateResolution, target_density, interp_CS)
Initialise a hycom_CS with pointers to parameters
- Parameters
CS
Unassociated pointer to hold the control structure
G [in]
Ocean grid structure
nk [in]
Number of layers in generated grid
coordinateResolution [in]
Nominal near-surface resolution [Z ~> m]
target_density [in]
Interface target densities [R ~> kg m-3]
interp_CS [in]
Controls for interpolation
Callees call graph
- subroutine end_coord_hycom(CS)
This subroutine deallocates memory in the control structure for the coord_hycom module
- Parameters
CS
Coordinate control structure
- subroutine set_hycom_params(CS, max_interface_depths, max_layer_thickness, only_improves, interp_CS)
This subroutine can be used to set the parameters for the coord_hycom module
- Parameters
CS
Coordinate control structure
max_interface_depths [in]
Maximum depths of interfaces [H ~> m or kg m-2]
max_layer_thickness [in]
Maximum thicknesses of layers [H ~> m or kg m-2]
only_improves [in]
If true, an interface only moves if it improves the density fit
interp_CS [in]
Controls for interpolation
Callers call graph
- subroutine build_hycom1_column(CS, remapCS, eqn_of_state, nz, ix, jy, depth, h, T, S, p_col, z_col, z_col_new, zScale, h_neglect, h_neglect_edge)
Build a HyCOM coordinate column
- Parameters
CS [in]
Coordinate control structure
remapCS [in]
Remapping parameters and options
eqn_of_state [in]
Equation of state structure
nz [in]
Number of levels
ix [in]
x direction array index
jy [in]
y direction array index
depth [in]
Depth of ocean bottom (positive [H ~> m or kg m-2])
T [in]
Temperature of column [C ~> degC]
S [in]
Salinity of column [S ~> ppt]
h [in]
Layer thicknesses [H ~> m or kg m-2]
p_col [in]
Layer pressure [R L2 T-2 ~> Pa]
z_col [in]
Interface positions relative to the surface [H ~> m or kg m-2]
z_col_new [inout]
Absolute positions of interfaces [H ~> m or kg m-2]
zScale [in]
Scaling factor from the input coordinate thicknesses in [Z ~> m] to desired units for zInterface, perhaps GV%Z_to_H in which case this has units of [H Z-1 ~> nondim or kg m-3]
h_neglect [in]
A negligibly small width for the purpose of cell reconstruction [H ~> m or kg m-2]
h_neglect_edge [in]
A negligibly small width for the purpose of edge value calculation [H ~> m or kg m-2]
Callees call graph
Text view
- subroutine build_hycom1_target_anomaly(CS, remapCS, eqn_of_state, nz, ix, jy, depth, h, T, S, p_col, R, RiAnom, h_neglect, h_neglect_edge)
Calculate interface density anomaly w.r.t. the target.
- Parameters
CS [in]
Coordinate control structure
remapCS [in]
Remapping parameters and options
eqn_of_state [in]
Equation of state structure
nz [in]
Number of levels
ix [in]
x direction array index
jy [in]
y direction array index
depth [in]
Depth of ocean bottom (positive [H ~> m or kg m-2])
T [in]
Temperature of column [C ~> degC]
S [in]
Salinity of column [S ~> ppt]
h [in]
Layer thicknesses [H ~> m or kg m-2]
p_col [in]
Layer pressure [R L2 T-2 ~> Pa]
R [out]
Layer density [R ~> kg m-3]
RiAnom [out]
The interface density anomaly w.r.t. the interface target densities [R ~> kg m-3]
h_neglect [in]
A negligibly small width for the purpose of cell reconstruction [H ~> m or kg m-2]
h_neglect_edge [in]
A negligibly small width for the purpose of edge value calculation [H ~> m or kg m-2]