Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gshhstograss(1gmt) [debian man page]

GSHHS2GRASS(1gmt)					       Generic Mapping Tools						 GSHHS2GRASS(1gmt)

NAME
gshhs2grass - Extracting GSHHS and WDBII data in GRASS-compatible ASCII format SYNOPSIS
gshhs2grass -i gshhs_[f|h|i|l|c].b [ -xminx ] [-Xmaxx ] [ -yminy ] [ -Ymaxy ] DESCRIPTION
gshhs2grass reads the binary coastline (GSHHS) and and translates it into an ASCII format suitable for import into GRASS. It automatically handles byte-swabbing between different architectures. gshhs_[f|h|i|l|c].b One of the GSHHS binary data file as distributed with the GSHHS data supplement. Any of the 5 standard resolutions (full, high, intermediate, low, crude) can be used. The resulting files are called dig_[ascii|att|cats].gshhs_[f|h|i|l|c]. OPTIONS
-x Specify a minimum (west) longitude. -X Specify a maximum (east) longitude. -y Specify a minimum (south) latitude. -Y Specify a maximum (north) latitude. EXAMPLES
To convert the full GSHHS data set , try gshhs2grass gshhs_f.b BUGS
Not updated to handle the WDBII line data (borders or rivers). AUTHOR
Original version by Simon Cox (simon@ned.dem.csiro.au) with some maintenance by Paul Wessel (pwessel@hawaii.edu). SEE ALSO
GMT(1), gshhs(1) gshhs_dp(1) GMT 4.5.7 15 Jul 2011 GSHHS2GRASS(1gmt)

Check Out this Related Man Page

GSHHS_DP(1gmt)						       Generic Mapping Tools						    GSHHS_DP(1gmt)

NAME
gshhs_dp - Line reduction using the Douglas-Peucker algorithm SYNOPSIS
gshhs_dp input.b tolerance output.b [-v] DESCRIPTION
gshhs_dp reads the binary coastline (GSHHS) or political boundary or river (WDBII) files and and reduces the complexity of the line by applying the Douglas-Peucker algorithm. It automatically handles byte-swabbing between different architectures. input.b GSHHS or WDBII binary data file as distributed with the GSHHS data supplement. Any of the 5 standard resolutions (full, high, intermediate, low, crude) can be used. tolerance tolerance is maximum mismatch in km. The larger the value the more reduction will take place. output.b The reducted data set. OPTIONS
-v Reports progress and statistics while running. EXAMPLES
To simplify the full GSHHS data set with a custom tolerance of 2 km, try gshhs_dp gshhs_f.b 2 gshhs_2km.b REFERENCES
Douglas, D. H., and T. K. Peucker, Algorithms for the reduction of the number of points required to represent a digitized line of its cari- cature, Can. Cartogr., 10, 112-122, 1973. AUTHOR
This implementation of the D-P algorithm has been kindly provided by Dr. Gary J. Robinson, Environmental Systems Science Centre, University of Reading, Reading, UK (gazza@mail.nerc-essc.ac.uk); his subroutine forms the basis for this program. SEE ALSO
GMT(1), gshhs(1), gshhstograss(1) GMT 4.5.7 15 Jul 2011 GSHHS_DP(1gmt)
Man Page

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to check the file data type(ascii or binary)

hi i am receiving a file from one system , i have to verify the format of the file data i.e whether the data is in acii format or binary format, please help thanks in advance satya (1 Reply)
Discussion started by: Satyak
1 Replies

2. Shell Programming and Scripting

binary to ascii

Hi, Is there a way to convert the binary file to ascii . the binary file is pipe delimited. from source the file(pipe delimited) is ftped to mainframe and from mainframe it is ftped to the unix box using binary format. Is there a way to change it back to ascii and view it? Thanks! (3 Replies)
Discussion started by: dnat
3 Replies

3. Shell Programming and Scripting

Extracting text between two patterns 1 and 2 and pattern2 should be second occurrence of the file

Hi All, I have a small query. I have a file containing the following lines File 1: 29-Jul-2011 GMT Static data requires update <Extraction should start here> ----------- ----------- -------------------- ----------------------- ----------- <should stop here> Pattern1 will be time... (2 Replies)
Discussion started by: gangii87
2 Replies

4. UNIX for Dummies Questions & Answers

Extracting part of a word

I have the code message={TP=2012:09:23:00:00:00:GMT,SD=2012:09:23:00:00:00:GMT,SP=2,FT=CCGT,FG=3605} I want to extract the FG=3605 parts of this. Please help. I am trying to do this using awk or unix. (5 Replies)
Discussion started by: JenniferTopham
5 Replies

5. Shell Programming and Scripting

Converting a binary file to ascii and vice versa?

Hi All, I have a binary file which is being exported from a Database, and i need to convert that to ASCII format. How can i achieve that? And this solution should work for any file which is given to us; means they will give different files from different tables. Thanks in advance. (8 Replies)
Discussion started by: baranisachin
8 Replies