SOCA
soca_utils Module Reference

various utility functions More...

Functions/Subroutines

elemental real(kind=kind_real) function, public soca_rho (sp, pt, p, lon, lat)
 calculate density from temp/salinity profile More...
 
real(kind=kind_real) function, public soca_mld (sp, pt, p, lon, lat)
 calculate mixed layer depth from temp/salinity profile More...
 
subroutine, public soca_diff (dvdz, v, h)
 
subroutine, public write2pe (vec, varname, filename, append)
 per-PE file output, used by soca_geom to write per-PE grid More...
 
subroutine, public nc_check (status)
 wrapper for netcdf calls More...
 
elemental real(kind=kind_real) function, public soca_adjust (std, minstd, maxstd)
 Apply bounds. More...
 
subroutine, public soca_str2int (str, int)
 
subroutine, public soca_remap_idw (lon_src, lat_src, data_src, lon_dst, lat_dst, data_dst)
 inverse distance weighted remaping (modified Shepard's method) More...
 

Detailed Description

various utility functions

Function/Subroutine Documentation

◆ nc_check()

subroutine, public soca_utils::nc_check ( integer(4), intent(in)  status)

wrapper for netcdf calls

Definition at line 156 of file soca_utils.F90.

Here is the caller graph for this function:

◆ soca_adjust()

elemental real(kind=kind_real) function, public soca_utils::soca_adjust ( real(kind=kind_real), intent(in)  std,
real(kind=kind_real), intent(in)  minstd,
real(kind=kind_real), intent(in)  maxstd 
)

Apply bounds.

Definition at line 168 of file soca_utils.F90.

Here is the caller graph for this function:

◆ soca_diff()

subroutine, public soca_utils::soca_diff ( real(kind=kind_real), dimension(:), intent(out)  dvdz,
real(kind=kind_real), dimension(:), intent(in)  v,
real(kind=kind_real), dimension(:), intent(in)  h 
)

Definition at line 95 of file soca_utils.F90.

Here is the caller graph for this function:

◆ soca_mld()

real(kind=kind_real) function, public soca_utils::soca_mld ( real(kind=kind_real), dimension(:), intent(in)  sp,
real(kind=kind_real), dimension(:), intent(in)  pt,
real(kind=kind_real), dimension(:), intent(in)  p,
real(kind=kind_real), intent(in)  lon,
real(kind=kind_real), intent(in)  lat 
)

calculate mixed layer depth from temp/salinity profile

Parameters
ptpotential temperature profile
sppractical salinity profile
ppressure (depth) profile
lonlongitude
latlatitude

Definition at line 63 of file soca_utils.F90.

Here is the caller graph for this function:

◆ soca_remap_idw()

subroutine, public soca_utils::soca_remap_idw ( real(kind_real), dimension(:), intent(in)  lon_src,
real(kind_real), dimension(:), intent(in)  lat_src,
real(kind_real), dimension(:), intent(in)  data_src,
real(kind_real), dimension(:,:), intent(in)  lon_dst,
real(kind_real), dimension(:,:), intent(in)  lat_dst,
real(kind_real), dimension(:,:), intent(inout)  data_dst 
)

inverse distance weighted remaping (modified Shepard's method)

Definition at line 188 of file soca_utils.F90.

Here is the caller graph for this function:

◆ soca_rho()

elemental real(kind=kind_real) function, public soca_utils::soca_rho ( real(kind=kind_real), intent(in)  sp,
real(kind=kind_real), intent(in)  pt,
real(kind=kind_real), intent(in)  p,
real(kind=kind_real), intent(in)  lon,
real(kind=kind_real), intent(in)  lat 
)

calculate density from temp/salinity profile

Parameters
sppractical salinity profile
ptpotential temperature profile
ppressure (depth) profile
lonlongitude
latlatitude

Definition at line 33 of file soca_utils.F90.

Here is the caller graph for this function:

◆ soca_str2int()

subroutine, public soca_utils::soca_str2int ( character(len=*), intent(in)  str,
integer, intent(out)  int 
)

Definition at line 178 of file soca_utils.F90.

Here is the caller graph for this function:

◆ write2pe()

subroutine, public soca_utils::write2pe ( real(kind=kind_real), dimension(:), intent(in)  vec,
character(len=*), intent(in)  varname,
character(len=256), intent(in)  filename,
logical, intent(in)  append 
)

per-PE file output, used by soca_geom to write per-PE grid

Definition at line 115 of file soca_utils.F90.

Here is the call graph for this function:
Here is the caller graph for this function: