Configuration
Reading input files and configuration for TMI.
Missing docstring for TMI.config_from_nc. Check Documenter's build log for details.
Missing docstring for TMI.config_from_mat. Check Documenter's build log for details.
TMI.watermassmatrix — Functionfunction watermassmatrix(file)
Read and assemble the water-mass matrix.Arguments
file: TMI NetCDF or MATLAB file name
Output
A: water-mass matrix
update water-mass matrix to agree with new boundaries in γ
function watermassmatrix(m::Union{NamedTuple,Vector}, γ::Grid)
Produce water-mass matrix from mass fractions and grid.
Arguments
m::NamedTuple: collection ofMassFractionsγ::TMI.Grid
Output
A: sparse water-mass matrix
Missing docstring for TMI.matrix_zyx2xyz. Check Documenter's build log for details.
TMI.circulationmatrix — Functionfunction circulationmatrix(file,γ)
Read and assemble the circulation matrix from NetCDF.Arguments
file: TMI MATLAB file nameγ: TMI grid
Output
L: circulation matrix in xyz format
function circulationmatrix(file,A,γ)
Read and assemble the circulation matrix from the efficient storage of A and F₀ variables.Arguments
file: TMI MATLAB file nameA: TMI water-mass matrixγ: TMI grid
Output
L: circulation matrix in xyz format
TMI.boundarymatrix — Function function boundarymatrix(file,γ)
Read and assemble the boundary matrix from MATLAB.
Transfer to updated x,y,z versionArguments
file: TMI MATLAB file nameγ: TMI grid
Output
B: boundary condition matrix
Missing docstring for TMI.updatelinearindex. Check Documenter's build log for details.
TMI.surfaceregion — Function function surfaceregion(TMIversion::String,region::String,γ::Grid)::BoundaryCondition
Read an oceanographically-relevant surface region from NetCDF file. (Also could be read from mat file.)
Return a BoundaryCondition function surfaceregion(TMIversion::String,region::String,γ::Grid)::BoundaryCondition
Read an oceanographically-relevant surface region from NetCDF file. (Also could be read from mat file.)Return a BoundaryCondition
Version 1: operates on a 2D Float fieldTMI.ncurl — Functionfunction ncurl(TMIversion)
placeholder function to give location (URL) of NetCDF Google Drive input
in the future, consider a struct or Dict that describes all TMI versions.Arguments
TMIversion: version of TMI water-mass/circulation model
Output
url: location (URL) for download
Missing docstring for TMI.maturl. Check Documenter's build log for details.
TMI.config2nc — FunctionSave TMI configuration to NetCDF format for non-proprietary access
TMI.griddicts — FunctionSave grid dictionaries of attributes for writing to NetCDF file
Missing docstring for TMI.matfields2nc. Check Documenter's build log for details.
TMI.fieldsatts — FunctionAll variable names and attributes. Useful for writing NetCDF files.
Missing docstring for TMI.regions2nc. Check Documenter's build log for details.
Missing docstring for TMI.watermassmatrix2nc. Check Documenter's build log for details.
TMI.optim2nc — FunctionSave optimization parameters to NetCDF file)
Future considerations: split into 2 functions
- read from mat
- save to nc
TMI.circulationmatrix2nc — FunctionSave circulation matrix L to NetCDF file.
TMI.boundarymatrix2nc — FunctionSave boundary matrix for transient model to NetCDF file
TMI.grid2nc — FunctionPut grid properties (Cartesian index) into NetCDF file
TMI.cartesianindex — Functionfunction cartesianindex(wet)
Read and assemble the grid coordinates
according to a 3D tracer in x,y,z orderArguments
wet: BitArray logical mask for wet points
Output
I: 3D Cartesian indices
function cartesianindex(file)
Read and assemble the grid coordinates
according to the legacy MATLAB code (z,y,x order).Arguments
file: TMI NetCDF file name
Output
I: TMI Cartesian index for wet points
Missing docstring for TMI.gridprops. Check Documenter's build log for details.