Opened 2 years ago

Closed 2 years ago

#776 closed upgrade (Done)

Updated Matlab Scripts

Reported by: arango Owned by:
Priority: major Milestone: Release ROMS/TOMS 3.7
Component: Matlab Version: 3.7
Keywords: Cc:

Description

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.

Change History (1)

comment:1 Changed 2 years ago by arango

  • Resolution set to Done
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.