DAT2GMT(1gmt) Generic Mapping Tools DAT2GMT(1gmt)NAME
dat2gmt - Convert an ASCII file to a binary gmt file
SYNOPSIS
dat2gmt gmtfile
DESCRIPTION
dat2gmt reads an ASCII version of a gmt file (made by gmt2dat) from standard input and creates a binary gmt file.
EXAMPLES
To create a gmt file from the ASCII file c2104_fixed.ascii, run
dat2gmt c2104.gmt < c2104_fixed.ascii
SEE ALSO gmt2dat(1), GMT(1)REFERENCES
Wessel, P., and W. H. F. Smith, 2011, The Generic Mapping Tools (GMT) version 4.5.7 Technical Reference & Cookbook, SOEST/NOAA.
Wessel, P., and W. H. F. Smith, 1998, New, Improved Version of Generic Mapping Tools Released, EOS Trans., AGU, 79(47), p. 579.
Wessel, P., and W. H. F. Smith, 1995, New Version of the Generic Mapping Tools Released, EOS Trans., AGU, 76(33), p. 329.
Wessel, P., and W. H. F. Smith, 1995, New Version of the Generic Mapping Tools Released, http://www.agu.org/eos_elec/95154e.html, Copyright
1995 by the American Geophysical Union.
Wessel, P., and W. H. F. Smith, 1991, Free Software Helps Map and Display Data, EOS Trans., AGU, 72(41), p. 441.
GMT 4.5.7 15 Jul 2011 DAT2GMT(1gmt)
Check Out this Related Man Page
GMTLEGS(1gmt) Generic Mapping Tools GMTLEGS(1gmt)NAME
gmtlegs - Find cruises in a given region
SYNOPSIS
gmtlegs -Rwest/east/south/north[r] [ -G ] [ -M ] [ -T ] [ -L ] [ -V ]
DESCRIPTION
gmtlegs will report the name of all the cruises that happened to be wholly or partially inside the specified region. As an option, only
those cruises that collected a certain type of data can be reported.
-R west, east, south, and north specify the Region of interest, and you may specify them in decimal degrees or in
[+-]dd:mm[:ss.xxx][W|E|S|N] format. Append r if lower left and upper right map coordinates are given instead of w/e/s/n. The two
shorthands -Rg and -Rd stand for global domain (0/360 and -180/+180 in longitude respectively, with -90/+90 in latitude). Alterna-
tively, specify the name of an existing grid file and the -R settings (and grid spacing, if applicable) are copied from the grid.
OPTIONS
No space between the option flag and the associated arguments
-G Report cruises that collected Gravity data. [Default is any data].
-M Report cruises that collected Magnetics. [Default is any data].
-T Report cruises that collected Topography. [Default is any data].
-L Long output, i.e. cruisenames and data types available. [Default is cruisenames only].
-V Selects verbose mode, which will send progress reports to stderr [Default runs "silently"].
EXAMPLES
To find all cruises around Hawaii that collected gravity and topography:
gmtlegs -R-162/-152/18/25 -G -T > hawaii_gt.legs
To find all cruises with magnetics:
gmtlegs -R0/360/-90/90 -M > all_m.legs
SEE ALSO GMT(1), gmt2bin(1), binlegs(1)REFERENCES
Wessel, P., and W. H. F. Smith, 2011, The Generic Mapping Tools (GMT) version 4.5.7 Technical Reference & Cookbook, SOEST/NOAA.
Wessel, P., and W. H. F. Smith, 1998, New, Improved Version of Generic Mapping Tools Released, EOS Trans., AGU, 79(47), p. 579.
Wessel, P., and W. H. F. Smith, 1995, New Version of the Generic Mapping Tools Released, EOS Trans., AGU, 76(33), p. 329.
Wessel, P., and W. H. F. Smith, 1995, New Version of the Generic Mapping Tools Released, http://www.agu.org/eos_elec/95154e.html, Copyright
1995 by the American Geophysical Union.
Wessel, P., and W. H. F. Smith, 1991, Free Software Helps Map and Display Data, EOS Trans., AGU, 72(41), p. 441.
GMT 4.5.7 15 Jul 2011 GMTLEGS(1gmt)
i have another question..
i have this file:
John Jones
John Smith
Jack Smith
100100 13
Helen Bold
100200 5
how can i use sort to make it look like :
Helen Bold
John Jones
Jack Smith
John Smith
100100 13
100200 5 (4 Replies)
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)
This is my first post and right off the bat, I want to let you know that my experience in UNIX is 2 days only backed up with over 20 years of IT working. So, if this is a dumb question or too stupid, please bear with me.
I read somewhere on the web and also on these forums that you can map your... (7 Replies)
Hi, I have text file abc.txt. In this file, I have the following data.
Input:
Mr Smith & Mrs Smith
Mr Smith &apos Mrs Smith
Mr Smith & Mrs Smith
Mr Smith& Mrs Smith
Mr Smith &Mrs Smith
Output:
Mr Smith & Mrs Smith
Mr Smith &apos Mrs Smith
Mr Smith & Mrs Smith
Mr Smith&... (4 Replies)
Unix gurus,
I'm brand new here so go easy on me.
I'm trying to automate the following script to be added to crontab which will automate the deployment of five sql scripts based on day of week. I've got three questions pertaining to the following:
1. Our server date+time is running on... (6 Replies)
I pulled the following code from one of Jim's threads. Since my server time is GMT, I need to make sure the output is GMT-4. Does anyone know how to tweak Perl to reflect this?
Thanks
Scott
#!/bin/ksh
# input format YYYY-MM-DD prints day name
dow()
{
perl -e '
use POSIX... (13 Replies)
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)
Please forgive me here as I don't fully understand what I am talking about here so if I use the wrong terminology please overlook me.
We have multiple AIX LPARs on the managed system with two VIO Servers. A Co-Worker and I are trying to set up a new LPAR client (The guy that knows this is out)... (14 Replies)
I need to change a file like this:
John Smith;http://www.profile1.com
John Smith;http://www.profile2.com
Frank Olsen;http://www.profile3.com
Frank Olsen;http://www.profile4.com
Into:
John Smith;http://www.profile1.com;http://www.profile2.com
Frank... (2 Replies)
what is the diff between ascii and binary file.
my understand is that..
ascii file - has only line feed - \n in it
where as
binary file - has both line feed and carriage return in it- \r\n
is that correct.
also,what is the ksh command to identify whether it is a binary or ascii... (1 Reply)
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)