Home > robbins > nut_units.m

nut_units

PURPOSE ^

NUT_UNITS Converts nutrient data from micromol/l to micromol/kg

SYNOPSIS ^

function n = nut_units(nut,salt);

DESCRIPTION ^

 NUT_UNITS  Converts nutrient data from micromol/l to micromol/kg
            using a standard lab temperture of 22 C

  Usage:   n = nut_units(nutrients,salt);

  nutrients: vector of nutrient measurements
  salt:      vector of salinity measurements (psu)

 Paul Robbins 1995

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function n = nut_units(nut,salt);
0002 
0003 % NUT_UNITS  Converts nutrient data from micromol/l to micromol/kg
0004 %            using a standard lab temperture of 22 C
0005 %
0006 %  Usage:   n = nut_units(nutrients,salt);
0007 %
0008 %  nutrients: vector of nutrient measurements
0009 %  salt:      vector of salinity measurements (psu)
0010 %
0011 % Paul Robbins 1995
0012 l = length(salt);
0013 rho = sw_dens(salt,22*ones(l,1),zeros(l,1));
0014 n = nut*1000./rho;

Generated on Wed 30-Nov-2005 15:40:09 by m2html © 2003