Opened 6 years ago

Closed 6 years ago

#788 closed upgrade (Done)

IMPORTANT: Update several ROMS processing Matlab scripts

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

Description

Several Matlab scripts in various subdirectories were updated or added:

  • coastlines: The coastline extract function get_coast.m was updated to select the desired GSHHS dataset. Also, updated r_gshhs.m and x_gshhs.m functions to process newer versions of the GSHHS dataset. It currently process up to version 2.3.6.
  • grid: Add new function rotate_grid.m to extract rotated Cartesian (rotate_cartesian.m) or spherical (rotate_spherical) grids. It will be used in the future fon nonalingned uniform refinement grids:

https://www.myroms.org/trac/longisland1.png https://www.myroms.org/trac/longisland1_zoom.png

  • landmask: Modified several functions to work with newer versions of Matlab. The functions editmask.m and editscope.m were updated to use the m_map mapping package for Matlab. The editing GUI has a different look:

https://www.myroms.org/trac/editmask.png

  • m_map: Added Rich Pawlowicz (rich@…) awesome mapping package for Matlab; Version 1.4j May 2018. For information on how to use m_map check is the user manual. I didn't include the GSHHS dataset. To install the GSHHS dataset follow the instructions in the m_map manual.

You have the choice of moving the binary data files to your m_map/private directory or have equivalent links. For example, I have the following links in the private directory.

arango  Jun  5 15:15 gshhs_c.b@ -> ~/ocean/GSHHS/Version_2.3.6/gshhs_c.b
arango  Jun  5 15:15 gshhs_f.b@ -> ~/ocean/GSHHS/Version_2.3.6/gshhs_f.b
arango  Jun  5 15:15 gshhs_h.b@ -> ~/ocean/GSHHS/Version_2.3.6/gshhs_h.b
arango  Jun  5 15:15 gshhs_i.b@ -> ~/ocean/GSHHS/Version_2.3.6/gshhs_i.b
arango  Jun  5 15:15 gshhs_l.b@ -> ~/ocean/GSHHS/Version_2.3.6/gshhs_l.b
arango  Jun  5 15:15 wdb_borders_c.b@ -> ~/ocean/GSHHS/Version_2.3.6/wdb_borders_c.b
arango  Jun  5 15:15 wdb_borders_f.b@ -> ~/ocean/GSHHS/Version_2.3.6/wdb_borders_f.b
arango  Jun  5 15:15 wdb_borders_h.b@ -> ~/ocean/GSHHS/Version_2.3.6/wdb_borders_h.b
arango  Jun  5 15:15 wdb_borders_i.b@ -> ~/ocean/GSHHS/Version_2.3.6/wdb_borders_i.b
arango  Jun  5 15:15 wdb_borders_l.b@ -> ~/ocean/GSHHS/Version_2.3.6/wdb_borders_l.b
arango  Jun  5 15:15 wdb_rivers_c.b@ -> ~/ocean/GSHHS/Version_2.3.6/wdb_rivers_c.b
arango  Jun  5 15:15 wdb_rivers_f.b@ -> ~/ocean/GSHHS/Version_2.3.6/wdb_rivers_f.b
arango  Jun  5 15:15 wdb_rivers_h.b@ -> ~/ocean/GSHHS/Version_2.3.6/wdb_rivers_h.b
arango  Jun  5 15:15 wdb_rivers_i.b@ -> ~/ocean/GSHHS/Version_2.3.6/wdb_rivers_i.b
arango  Jun  5 15:15 wdb_rivers_l.b@ -> ~/ocean/GSHHS/Version_2.3.6/wdb_rivers_l.b

As yu can see, I am using GSHHS Version 2.3.6, released on August 17, 2016.

  • netcdf: Updated check_metadata.m, nc_read.m, and roms_metadata.m. I removed the usage of contains in nc_read.m because it a much newer function and doesn't work with older version of Matlab. However, I love the newer contains function.

Change History (1)

comment:1 by arango, 6 years ago

Resolution: Done
Status: newclosed
Note: See TracTickets for help on using tickets.