Opened 12 years ago
Closed 12 years ago
#595 closed upgrade (Done)
Updated extracting bathymetry Matlab scripts
Reported by: | arango | Owned by: | arango |
---|---|---|---|
Priority: | major | Milestone: | Matlab Processing Scripts |
Component: | Nonlinear | Version: | 3.7 |
Keywords: | Cc: |
Description
- Renamed script x_etopo5.m to x_etopo.m in the matlab/bathymetry directory of the repository. This script can be used to extract any resolution ETOPO bathymetry with the following structure:
netcdf etopo5 { dimensions: lon = 4320 ; lat = 2161 ; variables: float topo_lon(lon) ; topo_lon:long_name = "ETOPO5 longitude" ; topo_lon:units = "degrees_east" ; float topo_lat(lat) ; topo_lat:long_name = "ETOPO5 latitude" ; topo_lat:units = "degrees_north" ; short topo(lat, lon) ; topo:long_name = "Earth surface topography" ; topo:units = "meters" ; topo:comment = "elevation:positive, bathymetry:negative" ; // global attributes: :title = "ETOPO5 Earth Surface Topography Data Set" ; :comment = "five_minute resolution" ; :name = "etopo5.nc" ; or netcdf etopo2 { dimensions: lon = 10800 ; lat = 5400 ; variables: float topo_lon(lon) ; topo_lon:long_name = "ETOPO2 longitude" ; topo_lon:units = "degrees_east" ; float topo_lat(lat) ; topo_lat:long_name = "ETOPO2 latitude" ; topo_lat:units = "degrees_north" ; float topo(lat, lon) ; topo:long_name = "Earth surface topography" ; topo:units = "meters" ; topo:comment = "elevation:positive, bathymetry:negative" ; // global attributes: :title = "ETOPO2 v2 Earth Surface Topography Data Set" ; :comment = "two_minute resolution" ; :name = "etopo2.nc" ;
- Added get_bath.m to extract bathymetry from a NetCDF as a function. It is similar to extract_bath.m driver but in function format. For example,
[lon,lat,h]=get_bath(Llon,Rlon,Blat,Tlat,OutFile,InpFile)
Note:
See TracTickets
for help on using tickets.