Opened 3 years ago

Last modified 3 years ago

#879 closed upgrade

IMPORTANT: Added several Matlab scripts to manipulate grids — at Initial Version

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

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.