Opened 3 years ago

Closed 3 years ago

#879 closed upgrade (Done)

IMPORTANT: Added several Matlab scripts to manipulate grids

Reported by: arango Owned by:
Priority: major Milestone: Matlab Processing Scripts
Component: Matlab Version: 3.9
Keywords: Cc:

Description (last modified by arango)

I have several Matlab grid manipulation scripts that may be useful to some Users.

  • cartesian_grid.m: Given a larger donor grid (D), this function extracts a rotated Cartesian grid centered at (Xc, Yc) and rotated by angle theta. The larger donor grid is used during plotting to display the location of the rotated grid.
  • spherical_grid.m: Given a larger donor grid (D), this function extracts a rotated Spherical grid centered at (Tlon, Tlat) and rotated by angle alpha.
  • grid_rotated.m: Given a larger Grid NetCDF file (Ginp), this function extracts and creates a rotated subdomain (Cartesian or Spherical) Grid NetCDF file (Gout) centered at (Xmid,Ymid) and rotated by angle theta.
  • roms_metrics.m: Computes the several ROMS grid metrics from the (lon,lat) coordinates.

I highly recommend using roms_metrics when building the ROMS GRID NetCDF file to have consistent grid variables. The function grid_metrics is deprecated. Use the robust roms_metrics instead. The grid_metrics function will be removed in the future.


Notice that the rotated grids are experimental. They were designed to have rotated nested grids. Such capability is not available in the ROMS numerical kernel.

Change History (1)

comment:1 by arango, 3 years ago

Description: modified (diff)
Resolution: Done
Status: newclosed
Note: See TracTickets for help on using tickets.