Extracts bathymetry data from ASCII files with an ARC header.
Stores the latitude, longitude, and depth in spherical earth coordinates for faster interpolation within the WaveQ3D model.
An example of this header is shown below. Each row in the data represents the depth as a function of decreasing latitude, which is the Y coordinate. Each column represents the depth as a function of increasing longitude, which is the X coordinate. The first data point is therefore the depth at north-west corner. Note that it is the south-west corner that is specified by longitude=XLLCENTER and latitude=YLLCENTER. Each depth represents the average value over the CELLSIZE x CELLSIZE area centered on the specified longitude and latitude.
NCOLS 601 NROWS 1201 XLLCENTER -80.25000 YLLCENTER 26.00000 CELLSIZE 0.00083333 NODATA_VALUE 999999 6.0 6.0 6.0 6.0 6.0 ... 6.0 6.0 6.0 6.0 6.0 ... etc.
This format is one of the options used by the Geophysical Data System (GEODAS) Search and Data Retrieval web site to distribute custom bathymetry grids. The link is provided below: http://www.ngdc.noaa.gov/mgg/gdas/gd_designagrid.html
ascii_arc_bathy | ( | const char * | filename | ) |
Load bathymetry from disk from ASCII file with an ARC header.
Load bathymetry from disk.
The entire data file is loaded.
filename | Name of the ASCII ARC file to load. |