The netcdf version of gshhg used to be distributed as a part of gmt but as of gmt 4 5 9 the gshhg is a separate package.
Gshhs mat files.
Use the matlab gunzip function to decompress gshhs c b gz and create the file gshhs c b in the location.
A particular level can be extracted using the n option.
Perhaps most importantly the data is available in multiple resolutions so you can pick the data set most appropriate for your application.
Gshhg files must have names of the form gshhs x b wdb borders x b or wdb rivers x b where x is one of the letters c l i h or f corresponding to increasing resolution and file size.
The result returned in s is a polygon or line geographic data structure array a geostruct with lat and lon coordinate fields.
A gnu zipped copy of this file is included in the mapping toolbox data folder on the matlab path.
Here some general technical comments on the binary data files are given.
If the database files are not in subdirectory m map private you must edit the filname settings in m gshhs c m m gshhs l m m gshhs i m m gshhs h m and or m gshhs f m to point to the appropriate files.
The binary files available for downloading are.
It automatically handles byte swabbing between different architectures.
The result returned in s is a polygon or line geographic data structure array a geostruct with lat and lon coordinate fields.
Gshhg files must have names of the form gshhs x b wdb borders x b or wdb rivers x b where x is one of the letters c l i h or f corresponding to increasing resolution and file size.
Gshhs f b full resolution data gshhs h b high resolution data gshhs i b intermediate resolution data.
Name gshhs extract ascii listings from binary gshhs or wdbii data files synopsis gshhs binaryfile b iid l m asciifile txt description gshhs reads the binary coastline gshhs or political boundary or river wdbii files and extracts an ascii listing.
In m gshhs line 116 in m gshhs i line 28 i have checked the file and everything is there and in the pathway plus have redownloaded mutliple times so if anyone has any ideas that would be a great hekp thank you.
Gshhg global self consistent hierarchical high resolution geography database.
This example uses the lowest resolution data from the binary file gshhs c b.
The files are released under the gnu public license.
These files contain completely closed polygons of continents and islands level 1 lakes level 2 islands in lakes level 3 and ponds in islands in lakes level 4.
Gshhg used to be called gshhs global self consistent hierarchical high resolution shorelines but since rivers and political boundaries were also included we changed it to gshhg starting with version 2 2 1.