MODIS Ocean Color Processing Logo

 

Table 7b: Processing Files (M-Z)


 

All of the listed files are ascii unless otherwise indicated.

Filename (Subroutines) Description Location

M

A-L | M | N | O | P | R | S | T | U | V | W | X

 

makefile

 

makefile STORE/shared_lib/ocean/oceanLibSrc/io/
STORE/shared_lib/ocean/oceanLibSrc/anc/
STORE/shared_lib/ocean/oceanLibSrc/sphlib/
STORE/shared_lib/ocean/oceanLibSrc/ulib/
STORE/shared_lib/ocean/oceanLibSrc/rtlib/
STORE/shared_lib/ocean/oceanLibSrc/modisio/
STORE/shared_lib/ocean/oceanLibSrc/msstshr5/
STORE/shared_lib/ocean/oceanLibSrc/vmsforlib/
STORE/shared_lib/ocean/oceanLibSrc/binshr/
STORE/shared_lib/ocean/oceanLibSrc/atmcorshr/
STORE/shared_lib/ocean/oceanLibSrc/displyshr/
STORE/shared_lib/ocean/oceanLibSrc/satellite/
STORE/shared_lib/ocean/oceanLibSrc/mcolshr8/
STORE/shared_lib/ocean/oceanLibSrc/Mwrap/
STORE/shared_lib/ocean/oceanLibSrc/mocean/
STORE/shared_lib/ocean/oceanLibSrc/goelib/
makelibs Execute this procedure to make all Modis Ocean's libraries at once. STORE/shared_lib/ocean/oceanLibSrc/
makelibs.log Output from makelibs. STORE/shared_lib/ocean/oceanLibSrc/
makestarttime.f90

(makestarttime)

Creates date and time strings for metadata. STORE/shared_src/ocean_src/msbin/
maketime.f90

(maketime)

This subroutine, maketime, creates date and time strings for metadata. STORE/shared_lib/ocean/oceanLibSrc/binshr/
mapsetup.f90

(mapsetup)

Initialize a grid transformation. STORE/shared_lib/ocean/oceanLibSrc/sphlib/
marit_h*_v*_s*.dat.coeff Aerosol ancillary data (maritime, 50%, 70%, 90%, and 99% humidity). RUN/input/coeff/PGE09/
RUN/input/coeff/shared_ocean/
mcsstop.f90

(mcsstop)

Open input file for MCSST type program.  Open the required image and associated subimages for the requested bands. Get the calibration information for the image and setup the input/output size. STORE/PGE10/MOD_PR28/
merge.c

(merge)

Copy one string to another string. STORE/shared_lib/ocean/oceanLibSrc/rtlib/
mergeb.c

(mergeb)

Copy string removing non-printable characters, blanks and tabs. STORE/shared_lib/ocean/oceanLibSrc/rtlib/
message.h DSP error include file. STORE/shared_src/ocean_incl/
miltim.f90

(miltim)

Convert milliseconds to HHMMSS. STORE/shared_lib/ocean/oceanLibSrc/satellite/
miltmr.f90

(miltmr)

Convert milliseconds to HHMMSS.SS. STORE/shared_lib/ocean/oceanLibSrc/satellite/
misc_header.h DSP image file structure include file. STORE/shared_src/ocean_incl/
missiondays.f90

(missiondays)

Returns the total number of days since mission day 0: Jan 1, 1971, 00:00:00. STORE/shared_src/ocean_src/mtbin/
mmalloc.c

(mmalloc)

Wrapper for PGS_MEM_Malloc. STORE/shared_lib/ocean/oceanLibSrc/Mwrap/
mmap_params_*.dat.coeff Input parameters for mmap. RUN/input/shared_coeffs/ocean/
RUN/input/coeff/shared_ocean/
mmemcpy.c

(mmemcpy)

Wrapper for memcpy. STORE/shared_lib/ocean/oceanLibSrc/Mwrap/
MO*.hdf Modis oceans output file (HDF). RUN/output/ subdirectories
MO*.mcf Modis oceans MCF file. STORE/cfg/ and subdirectories
mocean.h This file defines structures and constants for the moceans subroutines and functions. STORE/shared_src/ocean_incl/
moceancal.c

(Mocean_CalInit, Mocean_ReadCalibration, Mocean_WriteCalibration)

Collection of subroutines to read and write scaling factors and associated data (aka calibration data) for mocean HDF files. STORE/shared_lib/ocean/oceanLibSrc/mocean/
moceanclose.c

(Mocean_ImageClose)

Terminates the access of mocean API routines to a MODIS HDF file opened using moceanopen. STORE/shared_lib/ocean/oceanLibSrc/mocean/
moceancreate.c

(Mocean_CreateOutputImage)

This function creates an HDF file in the specified format. STORE/shared_lib/ocean/oceanLibSrc/mocean/
moceandata.h Defines structures and variables for the moceans subroutines and functions. STORE/shared_src/ocean_incl/
moceangeoloc.c

(Mocean_GeolocReadElemt)

Function to read MODIS geolocation HDF files on a per scan line basis. STORE/shared_lib/ocean/oceanLibSrc/mocean/
moceanopen.c

(Mocean_ImageOpen)

Opens a file and creates the HDF structures to support the Mocean routines' access to it.  openMOCEANfile must be called to produce the MODIS file structure before any of the MOCEAN API routines can access it. Note that setting the file access to "w" creates a file and will overwrite a pre-existing one. moceanopen will close the file and return null outputs if an error occurs. STORE/shared_lib/ocean/oceanLibSrc/mocean/
moceanread.c

(Mocean_ImageReadRaw, Mocean_ImageRead)

Functions to read mocean HDF files on a per scan line basis. STORE/shared_lib/ocean/oceanLibSrc/mocean/
moceanutil.c

(Mocean_ReadImageAttr, Mocean_ReadAttr, Mocean_WriteImageAttr, Mocean_WriteAttr, Mocean_NumberOfBands, Mocean_GetBandPixelType, Mocean_GetFileId, Mocean_GetImageFormat, Mocean_GetImageSizeX, Mocean_GetImageSizeY, Mocean_AttrSize, Mocean_ImageAttrSize, Mocean_GetBandPixelSize)

This module contains a collection of functions for reading and writing mocean file attributes. STORE/shared_lib/ocean/oceanLibSrc/mocean/
moceanwrite.c

(Mocean_ImageWrite, Mocean_ImageWriteRaw)

Functions to write a scan line. STORE/shared_lib/ocean/oceanLibSrc/mocean/
mocmoc.h DSP communications include file. STORE/shared_src/ocean_incl/
mod_get_l1b_attr_v2.c

(mod_get_l1b_attr_v2)

mod_get_l1b_attr_v2 parses the metadata strings to retrieve the attribute values needed by the science programs. STORE/shared_lib/ocean/oceanLibSrc/modisio/
MOD_PR18.f90

(modcol, modcolmain)

The routine to obtain information from the command line for inputs to the atmospheric correction which computes Rayleigh scattering for a given satellite pass. STORE/PGE09/MOD_PR18/
MOD_PR18.mk makefile for modcol (MOD_PR18) STORE/PGE09/MOD_PR18/
MOD_PR28.f90

(modsst, modsstmain, fixlon)

Modsst contains the main subroutine MODSSTMAIN for the modsst module and the input for the command line to the module. Several other utility subroutines are also contained in this file. STORE/PGE10/MOD_PR28/
MOD_PR28.mk makefile for modsst (MOD_PR28) STORE/PGE10/MOD_PR28/
MOD_PRmcloud.f90

(mcloud, mcloudmain)

This program checks the quality of a value by comparing  it to a 3 week reference. STORE/shared_src/ocean_src/mcloud/
MOD_PRmcloud.mk Makefile for mcloud. STORE/shared_src/ocean_src/mcloud/
MOD_PRmfill.f90

(mfill, mfillmain, fill_grid, relax_grid)

The main program for image filling using distance weighted average and iterative smoothing. This program reads binned data (a PST file) and outputs the data with missing data areas inserted with smoothed distance weighted averages of the surrounding pixels. STORE/shared_src/ocean_src/mfill/
MOD_PRmfill.mk Makefile for mfill. STORE/shared_src/ocean_src/mfill/
MOD_PRmmap.f90

(mmap, mmapmain)

This routine obtains parameters from the command line for input to the mapping module mmap. The program mmap maps the equal area binned data into any of 28 possible projections. STORE/shared_src/ocean_src/mmap/
MOD_PRmmap.mk Makefile for mmap. STORE/shared_src/ocean_src/mmap/
MOD_PRmsbin.f90

(msbin, msbinmain)

This routine is the main program for MODIS Ocean Color space binning. This program reads the specified level-2 file and uses the binit routine to bin the data into equal area bins. During the binning process the routine uses information from the l2 data flags to exclude data from the bin. The main routine then writes out the level-3 binned product file. STORE/shared_src/ocean_src/msbin/
MOD_PRmsbin.mk Makefile for MSBIN. STORE/shared_src/ocean_src/msbin/
MOD_PRmspc.f90

(mspc, mspcmain)

Subsample (actually sum) a pst file (9k) into a pst file with a different resolution (18k). STORE/shared_src/ocean_src/mspc/
MOD_PRmspc.mk Makefile for mspc. STORE/shared_src/ocean_src/mspc/
MOD_PRmtbin.f90

(mtbin, mtbinmain)

The main program for time binning. This program accepts a list of PST images to sum. The output file contains the sums of the best quality data available from the input files. STORE/shared_src/ocean_src/mtbin/
MOD_PRmtbin.mk Makefile for MTBIN. STORE/shared_src/ocean_src/mtbin/
MOD_PRrey.f90

(sstreymain)

Program to calculate a 1-2-1 weighted average of 3 weekly Reynolds' OI  sst fields to be used as a reference for modsst and modcol.  Contains the main subroutine SSTREYMAIN for the sstrey module and the input for the command line to the module. STORE/PGErey/MOD_PRrey/
MOD_PRrey.mk Makefile for MOD_PRrey. STORE/PGErey/MOD_PRrey/
MOD021KM.*.hdf.sim Simulated input data (HDF). RUN/input/simdata/
MOD03.*.hdf.sim Simulated input data (HDF). RUN/input/simdata/
MOD35_L2.*.hdf.sim Simulated input data (HDF). RUN/input/simdata/
modcol_params*.dat.coeff List of general parameters for the MODCOL program. RUN/input/coeff/PGE09/
RUN/input/coeff/shared_ocean/
MODIS_38101.t Status Message mnemonic File. STORE/shared_src/ocean_seed/
modis_chl.1.c

(carder_interp_init, carder_interp, aph, get_params)

Calculates aph675 and ag400 algebraically from Rrs model equations. Chlorophyll is then calculated from aph675. STORE/PGE09/MOD_PR18/
modis_smf.h The macros in this file are used for error handling: write error messages, and possible exit or return.  If SMF_TO_SCREEN is defined (by compile option) then error messages print to the screen and ERR_RETURN will cause the code to exit so that local variables can be examined in the debugger. If SMF_TO_SCREEN is not defined then error messages go to the Log files, and ERR_RETURN returns an error code to the calling function. STORE/shared_src/ocean_incl/
modisdob.cal.coeff Dobson to ozone optical thickness coefficients. RUN/input/coeff/PGE09/
RUN/input/coeff/shared_ocean/
modisf0.cal.coeff Mean solar constants. RUN/input/coeff/PGE09/
RUN/input/coeff/shared_ocean/
modisio_v2.h Head file for MODIS ocean's I/O interface. STORE/shared_src/ocean_incl/
modislcw.cal.coeff Clear water values for given chlorophyll concentrations. RUN/input/coeff/PGE09/
RUN/input/coeff/shared_ocean/
modisoob.cal.coeff - RUN/input/coeff/PGE09/
modiswhite.cal .coeff Whitecap coefficients. RUN/input/coeff/PGE09/
RUN/input/coeff/shared_ocean/
MODOC*.in Test MODIS data (HDF). RUN/input/testdata/
MODOCNMC* Test ancillary data (HDF). RUN/input/ancdata/dynamic/
MODOCOZN* Test ancillary data (HDF). RUN/input/ancdata/dynamic/
modsst_coeffs.dat - RUN/input/coeff/shared_ocean/
modsst_no*.coeff - RUN/input/coeff/PGE10/
modsst_params*.dat.coeff List of general parameters for MODSST. RUN/input/coeff/PGE10/
RUN/input/coeff/shared_ocean/
modsst_sst* - RUN/input/coeff/PGE10/
modsstcoeffs.f90

(modsstcoeffs)

Obtain coefficents for the SST and SST4 algorithm formulation;  These algorithms use one set of 5 coefficients which are selected based on the type of atmospheric regime. For SST, three types of regimes are possible. Coefficient selection is determined by the chan31-chan32 difference; <.7, .8-1.8, and > 1.8.  The subroutine modsstcoeffs reads the three sets of five coefficients for a given date into a single 15 element array. For SST4, there are five sets of 5 coefficients for each of the 3 channel combinations (22-23, 20-22, 20-23). The set is selected based on latitude. The subroutine modsstcoeffs reads the 15 sets of five coefficients for a given date into a single 75 element arrays. STORE/PGE10/MOD_PR28/
msbin_params1.dat.coeff MSBIN parameters. RUN/input/shared_coeffs/ocean/
RUN/input/coeff/shared_ocean/
msgetcal.c

(msgetcal)

The msgetcal routine contains a function to obtain the channel calibration information for a group of bands specified by <channl>. STORE/shared_lib/ocean/oceanLibSrc/atmcorshr/
mspc_params_*.dat.coeff Input parameters for mspc. RUN/input/shared_coeffs/ocean/
RUN/input/coeff/shared_ocean/
mtbin_params*.dat.coeff MTBIN parameters. RUN/input/shared_coeffs/ocean/
RUN/input/coeff/shared_ocean/
mwrap.h Include file for the Mwrap routines. STORE/shared_src/ocean_incl/
mwrap_1.h Include file for the Mwrap routines. STORE/shared_src/ocean_incl/

N

A-L | M | N | O | P | R | S | T | U | V | W | X

nameanddescription.all List of all delivered files with their locations and brief description. STORE/shared_docs/ocean/
navigation.h Navigation information include file. STORE/shared_src/ocean_incl/
newnames.h DSP prototypes include file. STORE/shared_src/ocean_incl/
NOAA11.cal NOAA-11 calibration data. RUN/input/coeff/shared_ocean/
NOAA11.table NOAA-11 Nonlinearity Correction Table. RUN/input/coeff/shared_ocean/
noaaness.ids Mapping from NOAA convention to RSMAS values. RUN/input/coeff/shared_ocean/

O

A-L | M | N | O | P | R | S | T | U | V | W | X

ocean_build.csh This script sets toolkit related env variables. STORE/cfg/
ocean_build.ksh This script sets toolkit related env variables. STORE/cfg/ 
ocean_build_env.csh This file sets variables which are used by Miami oceans makefiles.  Toolkit variables (PGS, HDF, HDFEOS, MAPI) are set separately. STORE/cfg/
ocean_h*_v*_s*_d*.hdf - RUN/input/coeff/PGE09/
ocean_lun.f Logical unit numbers for Miami Oceans processes.  Files ocean_lun.* should be consistent. STORE/shared_src/ocean_incl/
ocean_lun.h Logical unit numbers for Miami Oceans processes.  Files ocean_lun.* should be consistent STORE/shared_src/ocean_incl/
ocean_tk_env.csh This script sets toolkit related env variables. STORE/cfg/
OCEANS_SMF_GenerateStatusReport.c

(OCEANS_SMF_GenerateStatusReport, oceans_smf_generatestatusreport_)

OCEANS_SMF_GenerateStatusReport uses PGS toolkit function calls to register a user-defined message to either a LogReport file, the screen, or both. STORE/shared_lib/ocean/oceanLibSrc/modisio/
OCEANS_SMF_SetDynamicMsg.c

(OCEANS_SMF_SetDynamicMsg, oceans_smf_setdynamicmsg_)

OCEANS_SMF_SetDynamicMsg uses PGS toolkit function calls to register run-time dynamic messages to either the LogStatus file, the screen, or both.   STORE/shared_lib/ocean/oceanLibSrc/modisio/
oi.mean.bias.* Sample Reynolds weekly SST data reference file (binary). RUN/input/ancdata/dynamic/
openmask.f90

(openmask)

The openmask routine is a function which reads the byte array of the bitmask corresponding to the postage-stamp bins. STORE/shared_lib/ocean/oceanLibSrc/binshr/

P

A-L | M | N | O | P | R | S | T | U | V | W | X

packinglist Delivery details. STORE/shared_docs/ocean/
pal.h DSP color palette include file. STORE/shared_src/ocean_incl/
palette.h DSP color palette include file. STORE/shared_src/ocean_incl/
parsearray.f90

(parsearray)

Convert a list of integer index values into a list of numbers STORE/PGE09/MOD_PR18/
parsemskflg.f90

(parsemskflg)

Convert a list of mask/flag keywords into their combined bit positions. STORE/PGE09/MOD_PR18/
STORE/PGE10/MOD_PR28/
parser.c

(Dsp_ParseCommandLine, DupeString, GetNextChar, GetNextToken, isIdentifier, LinkInNode, MakeNode, NameToken, ParseArg, ParseExpr, ParseSubExpr, PeekAtToken, PushBackChar, SimpleToken, SlurpCommas, SyntaxError)

Contains a number of routines. STORE/shared_lib/ocean/oceanLibSrc/io/
parser.h Constants and structures for parsing the command line. STORE/shared_src/ocean_incl/
parsereals.f90

(parsereals)

Convert a list of real values into a list of numbers. STORE/PGE10/MOD_PR28/
pathnlc_coeffs.dat - RUN/input/coeff/shared_ocean/
pc* Contains logical unit numbers (luns) for the input and output files to be used, as listed in the pcf file.  First line: first number = output file lun, second number = version number for output file lun (eg. a version number of 5 means that the fifth occurence of the lun in the pcf (from top to bottom) is the one to be used), third number = output mcf file lun.  For MTBIN, the subsequent lines contain the luns and versions of the input files to be time binned together.  Otherwise, the second line contains the input file lun and version, and the third line contains the input parameters file lun and version. RUN/output/ subdirectories
PGE09.csh Modis Ocean PGE09 (MOD_PR18 and msbin) script. STORE/PGE09/script/
PGE09.pcf PCF to create level 2 ocean color data from MODIS L1b data and level 3 data from level 2 data.  STORE/PGE09/pge_cfg/
pge09.txt PGE09 Production Rules. STORE/PGE09/doc/
PGE10.csh Modis Ocean PGE10 (MOD_PR28 and msbin) script. STORE/PGE10/script/
PGE10.pcf PCF to create level 2 sst data from modis L1b data. STORE/PGE10/pge_cfg/
pge10.txt PGE10 Production Rules. STORE/PGE10/doc/
PGE20.pl Modis Ocean PGE20 Perl script. STORE/PGE20/script/
pge20.1.txt PGE20 Production Rules. STORE/PGE20/doc/
PGE20*.pcf PCF for PGE20. STORE/PGE20/pge_cfg/
PGE20_pcf.pl Modis Ocean PGE20 Perl script (see README). STORE/PGE20/scf_cfg/
PGE49.csh Modis Ocean PGE49 script. STORE/PGE49/script/
PGE49.inputlist.coeff Inputs for PGE49. RUN/input/PGE49/
PGE49.pcf PCF for PGE49. STORE/PGE49/pge_cfg/
PGE49.1.txt PGE49 Production Rules. STORE/PGE49/doc/
PGE50.csh Modis Ocean PGE50 script. STORE/PGE50/script/
PGE50.inputlist.coeff Input for PGE50. RUN/input/PGE50/
PGE50.pcf PCF file for PGE50. STORE/PGE50/pge_cfg/
PGE50.1.txt PGE50 Production Rules. STORE/PGE50/doc/
PGE53.pl Modis Ocean PGE53 Perl script. STORE/PGE53/script/
pge53.1.txt PGE53 Production Rules. STORE/PGE53/doc/
PGE53*.pcf PCF for PGE53. STORE/PGE53/pge_cfg/
PGE53_pcf.pl Modis Ocean PGE53 Perl script (see README). STORE/PGE53/scf_cfg/
PGE54.pl Modis Ocean PGE54 Perl script. STORE/PGE54/script/
PGE54.1.txt PGE54 Production Rules. STORE/PGE54/doc/
PGE54*.pcf PCF for PGE54. STORE/PGE54/pge_cfg/
PGE54_pcf.pl Modis Ocean PGE54 Perl script (see README). STORE/PGE54/scf_cfg/
pgerey.txt PGErey Production Rules. STORE/PGErey/doc/
pgs-util.c

(get_pgs_numfiles, get_pgs_filename)

Utilities for getting the number and names of PGS files. STORE/shared_lib/ocean/oceanLibSrc/binshr/
pgsmetwrap.c

(pgs_met_getpcattrs_wrap, pgs_met_getpcattr_wrap, pgs_met_setattrs_wrap, pgs_met_setattr_wrap)

Wrapper routines so that we can use the C version of the toolkit metadata routines from Fortran. STORE/shared_lib/ocean/oceanLibSrc/binshr/
projvars.h Navigation information include file. STORE/shared_src/ocean_incl/

R

A-L | M | N | O | P | R | S | T | U | V | W | X

rawcal.h Calibration information include file. STORE/shared_src/ocean_incl/
raylei.f

(RAYLEI)

Compute Rayleigh "radiance" given the sun/satellite geometry, the solar constant, and the Rayleigh optical thickness. STORE/shared_lib/ocean/oceanLibSrc/sphlib/
rayleigh_modis_***_iqu.dat.coeff Rayleigh Stokes parameters. RUN/input/coeff/PGE09/
RUN/input/coeff/shared_ocean/
readme Instructions that accompany the delivery of the code. STORE/shared_docs/ocean/
README Readme file. STORE/PGE20/scf_cfg/
STORE/PGE53/scf_cfg/
STORE/PGE54/scf_cfg/
readndt.f

(read_ndt_data)

Read ndt data. STORE/PGE09/MOD_PR18/
readrey.f90

(readrey)

Reads a weekly Reynold's SST OI file. STORE/PGErey/MOD_PRrey/
readreyw.f90

(readreyw)

Reads a weekly Reynold's SST OI file. STORE/PGE10/MOD_PR28/
STORE/shared_lib/ocean/oceanLibSrc/atmcorshr/
reflec.f

(REFLEC)

Compute the air/water reflectance given the "air" incident angle. STORE/shared_lib/ocean/oceanLibSrc/sphlib/
remapgrid.f90

(regrid)

Compute distortion matrix. STORE/shared_src/ocean_src/mmap/
remapit.f90

(remapit)

REMAPIT is a subroutine to re-map images.   This routine remaps the level-3 binned products onto equirectangular projection images.

The routine REMAPIT, calls the subroutine regrid, to build the geometric distortion matrix, and then calls the subroutine getlevel, to obtain the remap level and loads this information into the navigation.  The subroutine RECTLL, is then called to perform the geometric picture transformation and interpolation.
STORE/shared_src/ocean_src/mmap/
removecomma.c

(removeCommas)

Removes commas from a string and replaces them with spaces. STORE/shared_lib/ocean/oceanLibSrc/atmcorshr/
reverse.f90

(reverseproject)

Convert a projection pseudo coordinate into earth location. STORE/shared_lib/ocean/oceanLibSrc/sphlib/
rpc.h Remote procedure calling include file. STORE/shared_src/ocean_incl/
rpc-types.h Type definitions include file. STORE/shared_src/ocean_incl/
rrealloc.c

(rrealloc)

Wrapper for PGS_MEM_Malloc. STORE/shared_lib/ocean/oceanLibSrc/Mwrap/
rtlib.h Prototypes include file. STORE/shared_src/ocean_incl/
runcal.h Calibration structure include file. STORE/shared_src/ocean_incl/

S

A-L | M | N | O | P | R | S | T | U | V | W | X

S*_NCEP.MET Test ancillary data (HDF). RUN/input/ancdata/dynamic/
satcalpar.h Scaling types include file. STORE/shared_src/ocean_incl/
satellite.ids - RUN/input/coeff/shared_ocean/
scan_cache.h I/o structures include file. STORE/shared_src/ocean_incl/
scopy.c

(scopy)

Copy no more than 'n' characters to 'out' from 'in'. STORE/shared_lib/ocean/oceanLibSrc/rtlib/
seabam_chlor.c Compute the chlorophyll concentration (mg/m3) and pigment using band 3 & 5 ratio using the SeaBAM algorithm described in the 'SeaWiFS Bio-optical Mini-workshop (SeaBAM) Overview' by C. R. McLain. STORE/PGE09/MOD_PR18/
seawifs_rayleigh_*.dat.coeff - RUN/input/coeff/PGE09/seacal/
seawifs_rayleigh_*.hdf - RUN/input/coeff/PGE09/seacal/
seawifs_to_modis_coast_* - RUN/input/coeff/PGE09/seacal/
seawifs_to_modis_marit_* - RUN/input/coeff/PGE09/seacal/
seawifs_to_modis_ocean_* - RUN/input/coeff/PGE09/seacal/
seawifs_to_modis_tropo_* - RUN/input/coeff/PGE09/seacal/
seawifs_to_modis_urban_* - RUN/input/coeff/PGE09/seacal/
seawifsdob.cal Dobson to ozone optical thickness coefficients. RUN/input/coeff/PGE09/seacal/
seawifsf0.cal Mean Solar Constants. RUN/input/coeff/PGE09/seacal/
seawifslcw.cal Clear water values for given chlorophyll concentrations. RUN/input/coeff/PGE09/seacal/
seawifsoob.cal - RUN/input/coeff/PGE09/seacal/
seawifswhite.cal SeaWiFS-MODIS Whitecap coefficients. RUN/input/coeff/PGE09/seacal/
secnds.f90

(secnds)

Compute elapsed time in (continuous) seconds STORE/PGE09/MOD_PR18/
setcolmeta.f90

(setcolmeta)

Set metadata for ocean color L2 files. STORE/PGE09/MOD_PR18/
setcolqual.f90 Set quality values for ocean color L2 products. STORE/PGE09/MOD_PR18/
setlow.c

(setlow)

Convert a string to lower case. STORE/shared_lib/ocean/oceanLibSrc/rtlib/
setreymeta.f90

(setreymeta)

Set metadata for Reynolds OI files. STORE/PGErey/MOD_PRrey/
setsbinmeta.f90

(setsbinmeta)

Set metadata for sbin L3 files. STORE/shared_src/ocean_src/msbin/
setsstmeta.f90

(setsstmeta)

Set metadata for sst L2 files. STORE/PGE10/MOD_PR28/
setsstqual.f90

(setsstqual)

Set quality values for sst L2 products. STORE/PGE10/MOD_PR28/
settbinmeta.f90

(settbinmeta)

Set metadata for tbin L3 files. STORE/shared_lib/ocean/oceanLibSrc/binshr/
setupflags.f90

(setupflags)

This subroutine converts the ASCII string representing algorithm flags to be used for pixel binning decision to a 32 bit integer.  The routine also checks that the flags specified for space binning are the same as were used in the level-2 product. STORE/shared_src/ocean_src/msbin/
setupl3b.f90

(setupl3b)

The function setupl3b initializes the pixel type and size for each band for modis ocean level 3 binned files. STORE/shared_lib/ocean/oceanLibSrc/binshr/
setuplog.f90

(setuplog)

Show user the input parameters and set up string to be written to the output file. STORE/PGE10/MOD_PR28/
STORE/shared_src/ocean_src/msbin/
STORE/shared_src/ocean_src/mtbin/
STORE/shared_src/ocean_src/mspc/
setuplogmfill.f90

(setuplog)

Show user the input parameters for mfill and set up string to be written to the output file. STORE/shared_src/ocean_src/mfill/
setuplogmmap.f90

(setuplogmmap)

Show user the input parameters and set up string to be written to the output file. STORE/shared_src/ocean_src/mmap/
setuplogmsc.f90

(setuplog)

Show user the input parameters and set up string to be written to the output file. STORE/shared_src/ocean_src/mcloud/
setupp.c

(setupp, setuppn)

Subroutines to convert a string or substring to upper case. STORE/shared_lib/ocean/oceanLibSrc/rtlib/
ShmMem* Output from the toolkit routines.   Must be unique for each run of a PGE. RUN/output/  subdirectories
shpsphcom.h Navigation information include file. STORE/shared_src/ocean_incl/
simpsn.f

(simpsn)

To integrate over a given set of ordinates for equally spaced abcissas using Simpson(s) method or using entry point  Simpne to integrate analytically a 3-point  Lagrangian interpolation polynomial  fitting the ordinates. STORE/shared_lib/ocean/oceanLibSrc/ulib/
sind.c

(sind)

Compute sin(a). STORE/shared_lib/ocean/oceanLibSrc/vmsforlib/
SMF.h Define (or not) variables which cause error messages to be output using the MODIS toolkit; and/or output to the user's screen. STORE/shared_src/ocean_incl/
smove.c

(smove)

Copy bytes from one location to another. STORE/shared_lib/ocean/oceanLibSrc/rtlib/
spectra.coeff Modis spectral transmittance function as a function of wavelength. RUN/input/coeff/PGE10/
RUN/input/coeff/shared_ocean/
splitimg.c

(Dsp_SplitImageName, dsplim_)

Routines to split the sub image name from the file name. STORE/shared_lib/ocean/oceanLibSrc/io/
stdtime.f90

(ymd, stdtime)

The routine stdtime contains two functions. The function ymd returns the julian date as days since January 1, 1971, 00:00:00 UTC for input year, month, day. The function stdtime returns the total number of julian days and fractions of days for an input of year, month, day, hours, and minutes. STORE/shared_src/ocean_src/msbin/
stoupper.c

(stoupper)

Convert a string to upper case. STORE/shared_lib/ocean/oceanLibSrc/rtlib/
stripandappend.f90

(stripandappend)

Strip out base filename and append it to the blank separated output string, and optionally write it out as metadata. STORE/shared_lib/ocean/oceanLibSrc/binshr/
sunang2.f

(SUNANG)

Compute solar zenith, azimuth, and air-mass given the earth location, date, and time. STORE/shared_lib/ocean/oceanLibSrc/sphlib/

T

A-L | M | N | O | P | R | S | T | U | V | W | X

table.h Image plane information include file. STORE/shared_src/ocean_incl/
timestamp.f90

(timestamp)

Returns the current date and time. STORE/shared_lib/ocean/oceanLibSrc/binshr/
tmrmil.f90

(tmrmil)

Convert HHMMSS.SS to milliseconds. STORE/shared_lib/ocean/oceanLibSrc/satellite/
tropo_h*_v*_s*.dat.coeff Aerosol ancillary data (tropospheric, 50%, 70%, 90%, and 99% humidity). RUN/input/coeff/PGE09/
RUN/input/coeff/shared_ocean/
types.h Type definitions include file. STORE/shared_src/ocean_incl/

U

A-L | M | N | O | P | R | S | T | U | V | W | X

utils.c

(BitsPerEntry, BytesPerBand, ClearFlag, ConvertOldDate, ConvertOldTime, DelImageStruct, Dsp_FreeFlag, Dsp_GetFlag, emalloc, FillInBandStucture, FoldUp, FreeLun, FreeMem, GetDataFieldSize, GetFreeLun, GetImageStruct, GetImageVersion, GetLocalInputLine, initEfs, ItoA, ItoAZ, julgre, nstrcpy, OutputDec, OutputHex, OutputMsg, OutputTwoDec, ReadFlag, SetFlag, WaitForFlag)

Utilities get image sizes and structures, convert dates and times, set and read event flags, various conversion utilities, and routines to print messages. STORE/shared_lib/ocean/oceanLibSrc/io/
utils.f90

(ffmod, ffsign)

The utils routine contains two subroutines which are wrappers for FORTRAN intrinsic functions. STORE/shared_lib/ocean/oceanLibSrc/atmcorshr/

V

A-L | M | N | O | P | R | S | T | U | V | W | X

v2_meta.c

(main, v2_meta, CopyPSA,  setL2L3sbin_metafrominput, setL3PSA_meta, ReadTypedPSA,   setL3tbin_metafromparams, SetLocalGranId, setMeasParam_metafrominput, SetPSA, SetTypedPSA, setVerparm_metafrominput)

The functions in this file are used to write metadata (normal & PSAs), and read PSAs. STORE/shared_lib/ocean/oceanLibSrc/modisio/
v2_meta.h Header file containing prototypes for functions which write/read/copy ECS metadata (v2_meta.c). STORE/shared_src/ocean_incl/
vfont.h Vfont structures include file. STORE/shared_src/ocean_incl/

W

A-L      M | N | O | P | R | S | T | U | V | W | X

wang3.f 

(angle_indices, diffuse_transmittance, funct_a_b_c_d_fourier, funct_eps, INTERV, newatm, read_model_data, READ_RAYLEIGH_IQU, RAYLEIGH_IQU,  rho_a_find_newton, rho_a_sub_quartic, select_model_data, SPL1D1, spl1d2, spl1d2lcl, taua_invert, ylgint)

The main subroutine newatm is the central routine for making the atmospheric correction to the wavebands.

The main subroutine begins by converting the radiance data at each  waveband to reflectance, and then makes an external call to apply an oxygen absorption correction to waveband 7.

The main subroutine then reads in the coefficients for the models by a call to read_model_data.

The main subroutine models the aerosol contribution by using the Fourier coefficients of the (rho_a+rho_ra) vs. (rho_as) fitted as a QUARTIC function! through an internal call to rho_a_sub_quartic.  The main subroutine then calculates epsilon values by calling funct_eps.

The main subroutine then converts back to radiances from reflectance and removes the atmospheric component from the non-aerosol bands.

STORE/PGE09/MOD_PR18/
winset.f90

(windowsetup)

This subroutine takes image size information and calculates the necessary parameters so that U,V projection coordinates can be converted to output grid (screen) coordinates. STORE/shared_lib/ocean/oceanLibSrc/sphlib/
writecal.c

(writecal)

Write calibration information to L3b file. Each product which is summed has two output bands: sum and sum_squared. Both flag bands have calibration information also (to be like DSP). STORE/shared_lib/ocean/oceanLibSrc/binshr/
writerey.f90

(writerey)

Writes a weekly Reynold's SST OI file. STORE/PGErey/MOD_PRrey/
writetest.c - STORE/shared_lib/ocean/oceanLibSrc/mocean/
wrkfun.h Workspace functions include file. STORE/shared_src/ocean_incl/
wrkspc.h Workspace error codes include file. STORE/shared_src/ocean_incl/

X

A-L | M | N | O | P | R | S | T | U | V | W | X

xdr.h Convert data types include file. STORE/shared_src/ocean_incl/
xfb.h DSP display structures include file. STORE/shared_src/ocean_incl/

 

Documented by Jasmine S. Bartlett, COAS, Oregon State University.