basin_builder module reference

An idealized topography building system

Functions/Subroutines

basin_builder_topography

Constructs idealized topography from simple functions

cone

Returns the value of a triangular function centered at x=x0 with value 1 and linearly decreasing to 0 at x=x0+/-L, and 0 otherwise [nondim]. If clip is present the top of the cone is cut off at "clip", which effectively defaults to 1.

scurve

Returns an s-curve s(x) s.t. s(x0)<=0, s(x0+L)>=1 and cubic in between [nondim].

cstprof

Returns a "coastal" profile [nondim].

dist_line_fixed_x

Distance between points x,y and a line segment (x0,y0) and (x0,y1) in arbitrary units [A].

dist_line_fixed_y

Distance between points x,y and a line segment (x0,y0) and (x1,y0) in arbitrary units [A].

angled_coast

An "angled coast profile" [nondim].

NS_coast

A "coast profile" applied in an N-S line from lonC,lat0 to lonC,lat1 [nondim].

EW_coast

A "coast profile" applied in an E-W line from lon0,latC to lon1,latC [nondim].

NS_conic_ridge

A NS ridge with a cone profile [nondim]

NS_scurve_ridge

A NS ridge with an scurve profile [nondim]

circ_conic_ridge

A circular ridge with cutoff conic profile [nondim]

circ_scurve_ridge

A circular ridge with cutoff scurve profile [nondim]

Functions/Subroutine Documentation

subroutine basin_builder_topography(D, G, param_file, max_depth)

Constructs idealized topography from simple functions

Parameters
  • G [in]

    The dynamic horizontal grid type

  • D [out]

    Ocean bottom depth in the units of depth_max [A]

  • param_file [in]

    Parameter file structure

  • max_depth [in]

    Maximum ocean depth in arbitrary units [A]

Callees call graph
Callees of basin_builder::basin_builder_topography calls cluster_basin_builder basin_builder cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_mom_string_functions MOM_string_functions basin_builder::angled_coast angled_coast [private/internal] basin_builder::basin_builder_topography basin_builder_topography basin_builder::basin_builder_topography->basin_builder::angled_coast basin_builder::circ_conic_ridge circ_conic_ridge [private/internal] basin_builder::basin_builder_topography->basin_builder::circ_conic_ridge basin_builder::circ_scurve_ridge circ_scurve_ridge [private/internal] basin_builder::basin_builder_topography->basin_builder::circ_scurve_ridge basin_builder::ew_coast EW_coast [private/internal] basin_builder::basin_builder_topography->basin_builder::ew_coast basin_builder::ns_coast NS_coast [private/internal] basin_builder::basin_builder_topography->basin_builder::ns_coast basin_builder::ns_conic_ridge NS_conic_ridge [private/internal] basin_builder::basin_builder_topography->basin_builder::ns_conic_ridge basin_builder::ns_scurve_ridge NS_scurve_ridge [private/internal] basin_builder::basin_builder_topography->basin_builder::ns_scurve_ridge mom_error_handler::mom_error MOM_error basin_builder::basin_builder_topography->mom_error_handler::mom_error mom_error_handler::mom_mesg MOM_mesg basin_builder::basin_builder_topography->mom_error_handler::mom_mesg mom_file_parser::interface::get_param get_param (interface) basin_builder::basin_builder_topography->mom_file_parser::interface::get_param mom_file_parser::interface::log_version log_version (interface) basin_builder::basin_builder_topography->mom_file_parser::interface::log_version mom_string_functions::lowercase lowercase basin_builder::basin_builder_topography->mom_string_functions::lowercase
Text view
Callers call graph
Callers of basin_builder::basin_builder_topography calls cluster_basin_builder basin_builder cluster_mom_fixed_initialization MOM_fixed_initialization basin_builder::basin_builder_topography basin_builder_topography mom_fixed_initialization::mom_initialize_topography MOM_initialize_topography mom_fixed_initialization::mom_initialize_topography->basin_builder::basin_builder_topography
Text view
real function cone(x, x0, L, clip)

Returns the value of a triangular function centered at x=x0 with value 1 and linearly decreasing to 0 at x=x0+/-L, and 0 otherwise [nondim]. If clip is present the top of the cone is cut off at "clip", which effectively defaults to 1.

Parameters
  • x [in]

    Coordinate in arbitrary units [A]

  • x0 [in]

    position of peak in arbitrary units [A]

  • L [in]

    half-width of base of cone in arbitrary units [A]

  • clip [in]

    clipping height of cone [nondim]

Callers call graph
Callers of basin_builder::cone calls cluster_basin_builder basin_builder basin_builder::circ_conic_ridge circ_conic_ridge [private/internal] basin_builder::cone cone [private/internal] basin_builder::circ_conic_ridge->basin_builder::cone basin_builder::ns_conic_ridge NS_conic_ridge [private/internal] basin_builder::ns_conic_ridge->basin_builder::cone
Text view
real function scurve(x, x0, L)

Returns an s-curve s(x) s.t. s(x0)<=0, s(x0+L)>=1 and cubic in between [nondim].

Parameters
  • x [in]

    Coordinate in arbitrary units [A]

  • x0 [in]

    position of peak in arbitrary units [A]

  • L [in]

    half-width of base of cone in arbitrary units [A]

Callers call graph
Callers of basin_builder::scurve calls cluster_basin_builder basin_builder basin_builder::circ_scurve_ridge circ_scurve_ridge [private/internal] basin_builder::scurve scurve [private/internal] basin_builder::circ_scurve_ridge->basin_builder::scurve basin_builder::cstprof cstprof [private/internal] basin_builder::cstprof->basin_builder::scurve basin_builder::ns_scurve_ridge NS_scurve_ridge [private/internal] basin_builder::ns_scurve_ridge->basin_builder::scurve
Text view
real function cstprof(x, x0, L, lf, bf, sf, sh)

Returns a "coastal" profile [nondim].

Parameters
  • x [in]

    Coordinate in arbitrary units [A]

  • x0 [in]

    position of peak in arbitrary units [A]

  • L [in]

    width of profile in arbitrary units [A]

  • lf [in]

    fraction of width that is "land" [nondim]

  • bf [in]

    fraction of width that is "beach" [nondim]

  • sf [in]

    fraction of width that is "continental slope" [nondim]

  • sh [in]

    depth of shelf as fraction of full depth [nondim]

Callees call graph
Callees of basin_builder::cstprof calls cluster_basin_builder basin_builder basin_builder::cstprof cstprof [private/internal] basin_builder::scurve scurve [private/internal] basin_builder::cstprof->basin_builder::scurve
Text view
Callers call graph
Callers of basin_builder::cstprof calls cluster_basin_builder basin_builder basin_builder::angled_coast angled_coast [private/internal] basin_builder::cstprof cstprof [private/internal] basin_builder::angled_coast->basin_builder::cstprof basin_builder::ew_coast EW_coast [private/internal] basin_builder::ew_coast->basin_builder::cstprof basin_builder::ns_coast NS_coast [private/internal] basin_builder::ns_coast->basin_builder::cstprof
Text view
real function dist_line_fixed_x(x, y, x0, y0, y1)

Distance between points x,y and a line segment (x0,y0) and (x0,y1) in arbitrary units [A].

Parameters
  • x [in]

    X-coordinate in arbitrary units [A]

  • y [in]

    Y-coordinate in arbitrary units [A]

  • x0 [in]

    x-position of line segment in arbitrary units [A]

  • y0 [in]

    y-position of line segment end in arbitrary units [A]

  • y1 [in]

    y-position of line segment end in arbitrary units [A]

Callers call graph
Callers of basin_builder::dist_line_fixed_x calls cluster_basin_builder basin_builder basin_builder::dist_line_fixed_x dist_line_fixed_x [private/internal] basin_builder::dist_line_fixed_y dist_line_fixed_y [private/internal] basin_builder::dist_line_fixed_y->basin_builder::dist_line_fixed_x basin_builder::ns_coast NS_coast [private/internal] basin_builder::ns_coast->basin_builder::dist_line_fixed_x basin_builder::ns_conic_ridge NS_conic_ridge [private/internal] basin_builder::ns_conic_ridge->basin_builder::dist_line_fixed_x basin_builder::ns_scurve_ridge NS_scurve_ridge [private/internal] basin_builder::ns_scurve_ridge->basin_builder::dist_line_fixed_x
Text view
real function dist_line_fixed_y(x, y, x0, x1, y0)

Distance between points x,y and a line segment (x0,y0) and (x1,y0) in arbitrary units [A].

Parameters
  • x [in]

    X-coordinate in arbitrary units [A]

  • y [in]

    Y-coordinate in arbitrary units [A]

  • x0 [in]

    x-position of line segment end in arbitrary units [A]

  • x1 [in]

    x-position of line segment end in arbitrary units [A]

  • y0 [in]

    y-position of line segment in arbitrary units [A]

Callees call graph
Callees of basin_builder::dist_line_fixed_y calls cluster_basin_builder basin_builder basin_builder::dist_line_fixed_x dist_line_fixed_x [private/internal] basin_builder::dist_line_fixed_y dist_line_fixed_y [private/internal] basin_builder::dist_line_fixed_y->basin_builder::dist_line_fixed_x
Text view
Callers call graph
Callers of basin_builder::dist_line_fixed_y calls cluster_basin_builder basin_builder basin_builder::dist_line_fixed_y dist_line_fixed_y [private/internal] basin_builder::ew_coast EW_coast [private/internal] basin_builder::ew_coast->basin_builder::dist_line_fixed_y
Text view
real function angled_coast(lon, lat, lon_eq, lat_mer, dr, sh)

An "angled coast profile" [nondim].

Parameters
  • lon [in]

    Longitude [degrees_E]

  • lat [in]

    Latitude [degrees_N]

  • lon_eq [in]

    Longitude intersection with Equator [degrees_E]

  • lat_mer [in]

    Latitude intersection with Prime Meridian [degrees_N]

  • dr [in]

    "Radius" of coast profile [degrees]

  • sh [in]

    depth of shelf as fraction of full depth [nondim]

Callees call graph
Callees of basin_builder::angled_coast calls cluster_basin_builder basin_builder basin_builder::angled_coast angled_coast [private/internal] basin_builder::cstprof cstprof [private/internal] basin_builder::angled_coast->basin_builder::cstprof
Text view
Callers call graph
Callers of basin_builder::angled_coast calls cluster_basin_builder basin_builder basin_builder::angled_coast angled_coast [private/internal] basin_builder::basin_builder_topography basin_builder_topography basin_builder::basin_builder_topography->basin_builder::angled_coast
Text view
real function NS_coast(lon, lat, lonC, lat0, lat1, dlon, sh)

A "coast profile" applied in an N-S line from lonC,lat0 to lonC,lat1 [nondim].

Parameters
  • lon [in]

    Longitude [degrees_E]

  • lat [in]

    Latitude [degrees_N]

  • lonC [in]

    Longitude of coast [degrees_E]

  • lat0 [in]

    Latitude of coast end [degrees_N]

  • lat1 [in]

    Latitude of coast end [degrees_N]

  • dlon [in]

    "Radius" of coast profile [degrees]

  • sh [in]

    depth of shelf as fraction of full depth [nondim]

Callees call graph
Callees of basin_builder::ns_coast calls cluster_basin_builder basin_builder basin_builder::cstprof cstprof [private/internal] basin_builder::dist_line_fixed_x dist_line_fixed_x [private/internal] basin_builder::ns_coast NS_coast [private/internal] basin_builder::ns_coast->basin_builder::cstprof basin_builder::ns_coast->basin_builder::dist_line_fixed_x
Text view
Callers call graph
Callers of basin_builder::ns_coast calls cluster_basin_builder basin_builder basin_builder::basin_builder_topography basin_builder_topography basin_builder::ns_coast NS_coast [private/internal] basin_builder::basin_builder_topography->basin_builder::ns_coast
Text view
real function EW_coast(lon, lat, latC, lon0, lon1, dlat, sh)

A "coast profile" applied in an E-W line from lon0,latC to lon1,latC [nondim].

Parameters
  • lon [in]

    Longitude [degrees_E]

  • lat [in]

    Latitude [degrees_N]

  • latC [in]

    Latitude of coast [degrees_N]

  • lon0 [in]

    Longitude of coast end [degrees_E]

  • lon1 [in]

    Longitude of coast end [degrees_E]

  • dlat [in]

    "Radius" of coast profile [degrees]

  • sh [in]

    depth of shelf as fraction of full depth [nondim]

Callees call graph
Callees of basin_builder::ew_coast calls cluster_basin_builder basin_builder basin_builder::cstprof cstprof [private/internal] basin_builder::dist_line_fixed_y dist_line_fixed_y [private/internal] basin_builder::ew_coast EW_coast [private/internal] basin_builder::ew_coast->basin_builder::cstprof basin_builder::ew_coast->basin_builder::dist_line_fixed_y
Text view
Callers call graph
Callers of basin_builder::ew_coast calls cluster_basin_builder basin_builder basin_builder::basin_builder_topography basin_builder_topography basin_builder::ew_coast EW_coast [private/internal] basin_builder::basin_builder_topography->basin_builder::ew_coast
Text view
real function NS_conic_ridge(lon, lat, lonC, lat0, lat1, dlon, rh)

A NS ridge with a cone profile [nondim]

Parameters
  • lon [in]

    Longitude [degrees_E]

  • lat [in]

    Latitude [degrees_N]

  • lonC [in]

    Longitude of ridge center [degrees_E]

  • lat0 [in]

    Latitude of ridge end [degrees_N]

  • lat1 [in]

    Latitude of ridge end [degrees_N]

  • dlon [in]

    "Radius" of ridge profile [degrees]

  • rh [in]

    depth of ridge as fraction of full depth [nondim]

Callees call graph
Callees of basin_builder::ns_conic_ridge calls cluster_basin_builder basin_builder basin_builder::cone cone [private/internal] basin_builder::dist_line_fixed_x dist_line_fixed_x [private/internal] basin_builder::ns_conic_ridge NS_conic_ridge [private/internal] basin_builder::ns_conic_ridge->basin_builder::cone basin_builder::ns_conic_ridge->basin_builder::dist_line_fixed_x
Text view
Callers call graph
Callers of basin_builder::ns_conic_ridge calls cluster_basin_builder basin_builder basin_builder::basin_builder_topography basin_builder_topography basin_builder::ns_conic_ridge NS_conic_ridge [private/internal] basin_builder::basin_builder_topography->basin_builder::ns_conic_ridge
Text view
real function NS_scurve_ridge(lon, lat, lonC, lat0, lat1, dlon, rh)

A NS ridge with an scurve profile [nondim]

Parameters
  • lon [in]

    Longitude [degrees_E]

  • lat [in]

    Latitude [degrees_N]

  • lonC [in]

    Longitude of ridge center [degrees_E]

  • lat0 [in]

    Latitude of ridge end [degrees_N]

  • lat1 [in]

    Latitude of ridge end [degrees_N]

  • dlon [in]

    "Radius" of ridge profile [degrees]

  • rh [in]

    depth of ridge as fraction of full depth [nondim]

Callees call graph
Callees of basin_builder::ns_scurve_ridge calls cluster_basin_builder basin_builder basin_builder::dist_line_fixed_x dist_line_fixed_x [private/internal] basin_builder::ns_scurve_ridge NS_scurve_ridge [private/internal] basin_builder::ns_scurve_ridge->basin_builder::dist_line_fixed_x basin_builder::scurve scurve [private/internal] basin_builder::ns_scurve_ridge->basin_builder::scurve
Text view
Callers call graph
Callers of basin_builder::ns_scurve_ridge calls cluster_basin_builder basin_builder basin_builder::basin_builder_topography basin_builder_topography basin_builder::ns_scurve_ridge NS_scurve_ridge [private/internal] basin_builder::basin_builder_topography->basin_builder::ns_scurve_ridge
Text view
real function circ_conic_ridge(lon, lat, lon0, lat0, ring_radius, ring_thickness, ridge_height)

A circular ridge with cutoff conic profile [nondim]

Parameters
  • lon [in]

    Longitude [degrees_E]

  • lat [in]

    Latitude [degrees_N]

  • lon0 [in]

    Longitude of center of ring [degrees_E]

  • lat0 [in]

    Latitude of center of ring [degrees_N]

  • ring_radius [in]

    Radius of ring [degrees]

  • ring_thickness [in]

    Radial thickness of ring [degrees]

  • ridge_height [in]

    Ridge height as fraction of full depth [nondim]

Callees call graph
Callees of basin_builder::circ_conic_ridge calls cluster_basin_builder basin_builder basin_builder::circ_conic_ridge circ_conic_ridge [private/internal] basin_builder::cone cone [private/internal] basin_builder::circ_conic_ridge->basin_builder::cone
Text view
Callers call graph
Callers of basin_builder::circ_conic_ridge calls cluster_basin_builder basin_builder basin_builder::basin_builder_topography basin_builder_topography basin_builder::circ_conic_ridge circ_conic_ridge [private/internal] basin_builder::basin_builder_topography->basin_builder::circ_conic_ridge
Text view
real function circ_scurve_ridge(lon, lat, lon0, lat0, ring_radius, ring_thickness, ridge_height)

A circular ridge with cutoff scurve profile [nondim]

Parameters
  • lon [in]

    Longitude [degrees_E]

  • lat [in]

    Latitude [degrees_N]

  • lon0 [in]

    Longitude of center of ring [degrees_E]

  • lat0 [in]

    Latitude of center of ring [degrees_N]

  • ring_radius [in]

    Radius of ring [degrees]

  • ring_thickness [in]

    Radial thickness of ring [degrees]

  • ridge_height [in]

    Ridge height as fraction of full depth [nondim]

Callees call graph
Callees of basin_builder::circ_scurve_ridge calls cluster_basin_builder basin_builder basin_builder::circ_scurve_ridge circ_scurve_ridge [private/internal] basin_builder::scurve scurve [private/internal] basin_builder::circ_scurve_ridge->basin_builder::scurve
Text view
Callers call graph
Callers of basin_builder::circ_scurve_ridge calls cluster_basin_builder basin_builder basin_builder::basin_builder_topography basin_builder_topography basin_builder::circ_scurve_ridge circ_scurve_ridge [private/internal] basin_builder::basin_builder_topography->basin_builder::circ_scurve_ridge
Text view
API generated with Flint · Rendered from reStructuredText