﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
776	Updated Matlab Scripts	arango		"Several of the Matlab scripts in the '''matlab/grid''' directory of the repository where updated including the grids to process the contact points between nested grids.

'''New Scripts:'''

* '''check_refine.m:''' Checks a ROMS nested refinement grid structure. It generates and plots several information fields to check a refinement nested configuration.  Several fields are averaged in the fine-to-coarse sense to check conservation properties.

* '''qc_interp.m:''' Interpolates requested field from ROMS coarse to a finer grid using 9-points quadratic conservative interpolation (Clark and Farley, 1984), such that the coarse-to-fine and fine-to-coarse are reversible. 

* '''refined_gridvar.m:''' Sets requested refined grid variable from ROMS coarse grid by division or quadratic conservative interpolation (Clark and Farley, 1984).

Both functions '''qc_interp''' and '''refined_gridvar''' are not currently used. I haven't able to prove and verify the conservation properties discussed in Clark and Farley (1984).

'''Updated Scripts:'''

* '''add_mask.m:''' Adds land/sea masking array to specified NetCDF file that it is not a ROMS grid NetCDF file.  It primarily used to add mask field to datasets to aid on spatial interpolations.

* '''coarse2fine.m:''' Updated interpolation strategy and many other little things.

* '''contact.m:''' Updated interpolation strategy and fixed the computing od the interpolation weights for composite grids.

* '''fine2coarse.m:''' Rewritten completely.

* '''get_roms_grid.m:'''  Added domain perimeter at PSI-points to the grid structure.

* '''grid_connections.m:'''  Added hybrid nesting option.  It will be used in the future.
"	upgrade	closed	major	Release ROMS/TOMS 3.7	Matlab	3.7	Done		
