/usr/share/doc/gmt/html/man/x2sys_init.html is in gmt-doc 4.5.11-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 | <!-- Creator : groff version 1.19.2 -->
<!-- CreationDate: Tue Nov 5 09:45:53 2013 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="generator" content="groff -Thtml, see www.gnu.org">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta name="Content-Style" content="text/css">
<style type="text/css">
p { margin-top: 0; margin-bottom: 0; }
pre { margin-top: 0; margin-bottom: 0; }
table { margin-top: 0; margin-bottom: 0; }
</style>
<title>X2SYS_INIT</title>
</head>
<body bgcolor="#ffffff">
<h1 align=center>X2SYS_INIT</h1>
<a href="#NAME">NAME</a><br>
<a href="#SYNOPSIS">SYNOPSIS</a><br>
<a href="#DESCRIPTION">DESCRIPTION</a><br>
<a href="#OPTIONS">OPTIONS</a><br>
<a href="#DEFINITION FILES">DEFINITION FILES</a><br>
<a href="#EXAMPLES">EXAMPLES</a><br>
<a href="#SEE ALSO">SEE ALSO</a><br>
<hr>
<a name="NAME"></a>
<h2>NAME</h2>
<p style="margin-left:11%; margin-top: 1em">x2sys_init
− Initialize x2sys data base for track data files</p>
<a name="SYNOPSIS"></a>
<h2>SYNOPSIS</h2>
<p style="margin-left:11%; margin-top: 1em"><b>x2sys_init</b>
<i>TAG</i> <b>−D</b><i>deffile</i> [
<b>−Cc</b>|<b>f</b>|<b>g</b>|<b>e</b> ] [
<b>−E</b><i>suffix</i> ] [ <b>−F</b> ] [
<b>−Gd</b>|<b>g</b> ] [
<b>−I</b><i>dx</i>[/<i>dy</i>] ] [
<b>−Nd</b>|<b>s</b><i>unit</i> ] [
<b>−R</b><i>west</i>/<i>east</i>/<i>south</i>/<i>north</i>[<b>r</b>]
] [ <b>−V</b> ] [ <b>−Wt</b>|<b>d</b><i>gap</i>
] [ <b>−m</b>[<b>i</b>|<b>o</b>][<i>flag</i>] ]</p>
<a name="DESCRIPTION"></a>
<h2>DESCRIPTION</h2>
<p style="margin-left:11%; margin-top: 1em"><b>x2sys_init</b>
is the starting point for anyone wishing to use x2sys; it
initializes a set of data bases that are particular to one
kind of track data. These data, their associated data bases,
and key parameters are given a short-hand notation called an
x2sys TAG. The TAG keeps track of settings such as file
format, whether the data are geographic or not, and the
binning resolution for track indices. Running
<b>x2sys_init</b> is a prerequisite to running any of the
other x2sys programs, such as <b><A HREF="x2sys_binlist.html">x2sys_binlist</A></b>, which
will create a crude representation of where each data track
go within the domain and which observations are available;
this information serves as input to <b><A HREF="x2sys_put.html">x2sys_put</A></b> which
updates the track data base. Then, <b><A HREF="x2sys_get.html">x2sys_get</A></b> can be
used to find which tracks and data are available inside a
given region. With that list of tracks you can use
<b><A HREF="x2sys_cross.html">x2sys_cross</A></b> to calculate track crossovers, use
<b><A HREF="x2sys_report.html">x2sys_report</A></b> to report crossover statistics or
<b><A HREF="x2sys_list.html">x2sys_list</A></b> to pull out selected crossover information
that <b><A HREF="x2sys_solve.html">x2sys_solve</A></b> can use to determine track-specific
systematic corrections. These corrections may be used with
<b><A HREF="x2sys_datalist.html">x2sys_datalist</A></b> to extract corrected data values for
use in subsequent work.</p>
<table width="100%" border=0 rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p style="margin-top: 1em" valign="top"><i>TAG</i></p></td>
<td width="7%"></td>
<td width="78%">
<p style="margin-top: 1em" valign="top">The unique name of
this data type x2sys TAG.</p></td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p style="margin-top: 1em" valign="top"><b>−C</b></p> </td>
<td width="7%"></td>
<td width="78%">
<p style="margin-top: 1em" valign="top">Select procedure
for along-track distance calculation when needed by other
programs:</p> </td>
</table>
<p style="margin-left:22%;"><b>c</b> Cartesian distances
[Default, unless <b>−G</b> is set]. <b><br>
f</b> Flat Earth distances. <b><br>
g</b> Great circle distances [Default if <b>−G</b> is
set]. <b><br>
e</b> Geodesic distances on current <b><A HREF="GMT.html">GMT</A></b>
ellipsoid.</p>
<table width="100%" border=0 rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">
<p style="margin-top: 1em" valign="top"><b>−D</b></p> </td>
<td width="8%"></td>
<td width="78%">
<p style="margin-top: 1em" valign="top">Definition file
prefix for this data set [See DEFINITION FILES below for
more information]. Specify full path if the file is not in
the current directory.</p></td>
</table>
<a name="OPTIONS"></a>
<h2>OPTIONS</h2>
<p style="margin-left:11%; margin-top: 1em">No space
between the option flag and the associated arguments.</p>
<table width="100%" border=0 rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">
<p style="margin-top: 1em" valign="top"><b>−E</b></p> </td>
<td width="8%"></td>
<td width="78%">
<p style="margin-top: 1em" valign="top">Specifies the file
extension (suffix) for these data files. If not given we use
the definition file prefix as the suffix (see
<b>−D</b>).</p> </td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">
<p style="margin-top: 1em" valign="top"><b>−F</b></p> </td>
<td width="8%"></td>
<td width="78%">
<p style="margin-top: 1em" valign="top">Force creating new
files if old ones are present [Default will abort if old TAG
files are found].</p></td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">
<p style="margin-top: 1em" valign="top"><b>−G</b></p> </td>
<td width="8%"></td>
<td width="78%">
<p style="margin-top: 1em" valign="top">Selects
geographical coordinates. Append <b>d</b> for discontinuity
at the Dateline (makes longitude go from -180 to + 180) or
<b>g</b> for discontinuity at Greenwich (makes longitude go
from 0 to 360 [Default]). If not given we assume the data
are Cartesian.</p></td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">
<p style="margin-top: 1em" valign="top"><b>−I</b></p> </td>
<td width="8%"></td>
<td width="78%">
<p style="margin-top: 1em" valign="top"><i>x_inc</i> [and
optionally <i>y_inc</i>] is the grid spacing. Append
<b>m</b> to indicate minutes or <b>c</b> to indicate seconds
for geographic data. These spacings refer to the binning
used in the track bin-index data base.</p></td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">
<p style="margin-top: 1em" valign="top"><b>−m</b></p> </td>
<td width="8%"></td>
<td width="78%">
<p style="margin-top: 1em" valign="top">Multiple segment
file(s). Segments are separated by a special record. For
ASCII files the first character must be <i>flag</i> [Default
is ’>’]. For binary files all fields must be
NaN and <b>−b</b> must set the number of output
columns explicitly. By default the <b>−m</b> setting
applies to both input and output. Use <b>−mi</b> and
<b>−mo</b> to give separate settings to input and
output.</p> </td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">
<p style="margin-top: 1em" valign="top"><b>−N</b></p> </td>
<td width="8%"></td>
<td width="78%">
<p style="margin-top: 1em" valign="top">Sets the units used
for distance and speed when requested by other programs.
Append <b>d</b> for distance or <b>s</b> for speed, then
give the desired <i>unit</i> as <b>c</b> (Cartesian userdist
or userdist/usertime), <b>e</b> (meter or m/s), <b>k</b> (km
or km/hr), <b>m</b> (miles or miles/hr), or <b>n</b>
(nautical miles or knots). [Default is <b>−Ndk
−Nse</b> (km and m/s) if <b>−G</b> is set and
<b>−Ndc</b> and <b>−Nsc</b> otherwise (Cartesian
units)].</p> </td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">
<p style="margin-top: 1em" valign="top"><b>−R</b></p> </td>
<td width="8%"></td>
<td width="78%">
<p style="margin-top: 1em" valign="top"><i>west, east,
south,</i> and <i>north</i> 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 <b>r</b> if lower
left and upper right map coordinates are given instead of
w/e/s/n. The two shorthands <b>−Rg</b> and
<b>−Rd</b> stand for global domain (0/360 and
-180/+180 in longitude respectively, with -90/+90 in
latitude). Alternatively, specify the name of an existing
grid file and the <b>−R</b> settings (and grid
spacing, if applicable) are copied from the grid. For
Cartesian data just give <i>xin/xmax/ymin/ymax</i>. This
sets the complete domain for the relevant track data
set.</p> </td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">
<p style="margin-top: 1em" valign="top"><b>−V</b></p> </td>
<td width="8%"></td>
<td width="78%">
<p style="margin-top: 1em" valign="top">Selects verbose
mode, which will send progress reports to stderr [Default
runs "silently"].</p></td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">
<p style="margin-top: 1em" valign="top"><b>−W</b></p> </td>
<td width="8%"></td>
<td width="78%">
<p style="margin-top: 1em" valign="top">Give <b>t</b> or
<b>d</b> and append the corresponding maximum time gap (in
user units; this is typically seconds [Infinity]), or
distance (for units, see <b>−N</b>) gap [Infinity])
allowed between the two data points immediately on either
side of a crossover. If these limits are exceeded then a
data gap is assumed and no COE will be determined.</p></td>
</table>
<a name="DEFINITION FILES"></a>
<h2>DEFINITION FILES</h2>
<p style="margin-left:11%; margin-top: 1em">These *.def
files contain information about the data file format and
have two sections: (1) header information and (2) column
information. All header information starts with the
character # in the first column, immediately followed by an
upper-case directive. If the directive takes an argument it
is separated by white-space. You may append a trailing #
comments. Five directives are recognized:</p>
<p style="margin-left:11%; margin-top: 1em"><b>ASCII</b>
states that the data files are in ASCII format. <b><br>
BINARY</b> states that the data files are native binary
files. <b><br>
NETCDF</b> states that the data files are COARDS-compliant
1-D netCDF files. <b><br>
SKIP</b> takes an integer argument which is either the
number of lines to skip (when reading ASCII files) or the
number of bytes to skip (when reading native binary files).
Not used with netCDF files. <b><br>
GEO</b> indicates that these files are geographic data sets,
with periodicities in the <i>x</i>-coordinate (longitudes).
Alternatively, use <b>−G</b>. <b><br>
MULTISEG</b> means each track consists of multiple segments
separated by a <b><A HREF="GMT.html">GMT</A></b> multisegment header
(alternatively, use <b>−m</b> when defining the system
TAG). Not used with netCDF files.</p>
<p style="margin-left:11%; margin-top: 1em">The column
information consists of one line per column in the order the
columns appear in the data file. For each column you must
provide seven attributes:</p>
<p style="margin-left:11%; margin-top: 1em"><i>name type
NaN NaN-proxy scale offset oformat</i></p>
<p style="margin-left:11%; margin-top: 1em"><i>name</i> is
the name of the column variable. It is expected that you
will use the special names <i>lon</i> (or <i>x</i> if
Cartesian) and <i>lat</i> (or <i>y</i>) for the two required
coordinate columns, and <i>time</i> when optional time data
are present. <i><br>
type</i> is always <b>a</b> for ASCII representations of
numbers, whereas for binary files you may choose among
<b>c</b> for signed 1-byte character (-127,+128), <b>u</b>
for unsigned byte (0-255), <b>h</b> for signed 2-byte
integers (-32768,+32767), <b>i</b> for signed 4-byte
integers (-2,147,483,648,+2,147,483,647), <b>f</b> for
4-byte floating points and <b>d</b> for 8-byte double
precision floating points. For netCDF, simply use <b>d</b>
as netCDF will automatically handle type-conversions during
reading. <i><br>
NaN</i> is Y if certain values (e.g, -9999) are to be
replaced by NAN, and N otherwise. <i><br>
NaN-proxy</i> is that special value (e.g., -9999). <i><br>
scale</i> is used to multiply the data after reading.
<i><br>
offset</i> is used to add to the scaled data. <i><br>
oformat</i> is a C-style format string used to print values
from this column.</p>
<p style="margin-left:11%; margin-top: 1em">If you give -
as the <i>oformat</i> then <b><A HREF="GMT.html">GMT</A></b>’s formatting
machinery will be used instead (i.e., <b><A HREF="gmtdefaults.html#D_FORMAT">D_FORMAT</A></b>,
<b><A HREF="gmtdefaults.html#PLOT_DEGREE_FORMAT">PLOT_DEGREE_FORMAT</A></b>, <b><A HREF="gmtdefaults.html#PLOT_DATE_FORMAT">PLOT_DATE_FORMAT</A></b>,
<b><A HREF="gmtdefaults.html#PLOT_CLOCK_FORMAT">PLOT_CLOCK_FORMAT</A></b>). Some file formats already have
definition files premade. These include mgd77 (for plain
ASCII MGD77 data files), mgd77+ (for enhanced MGD77+ netCDF
files), gmt (for old mgg supplement binary files), xy (for
plain ASCII x, y tables), xyz (same, with one z-column), geo
(for plain ASCII longitude, latitude files), and geoz (same,
with one z-column).</p>
<a name="EXAMPLES"></a>
<h2>EXAMPLES</h2>
<p style="margin-left:11%; margin-top: 1em">If you have a
large set of track data files you can organize them using
the x2sys tools. Here we will outline the steps. Let us
assume that your track data file format consist of 2 header
records with text information followed by any number of
identically formatted data records with 6 columns (lat, lon,
time, obs1, obs2, obs3) and that files are called *.trk. We
will call this the "line" format. First, we create
the line.def file:</p>
<p style="margin-left:11%; margin-top: 1em"># Define file
for the line format</p>
<table width="100%" border=0 rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%"></td>
<td width="7%">
<p valign="top">#ASCII</p></td>
<td width="8%"></td>
<td width="8%">
</td>
<td width="7%">
<p valign="top"># File is ASCII</p></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="38%">
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%"></td>
<td width="7%">
<p valign="top">#SKIP 2</p></td>
<td width="8%"></td>
<td width="8%">
</td>
<td width="7%">
<p valign="top"># Skip 2 header records</p></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="38%">
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%"></td>
<td width="7%">
<p valign="top">#GEO</p></td>
<td width="8%">
</td>
<td width="8%">
<p valign="top"># Data are geographic</p></td>
<td width="7%"></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="38%">
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%"></td>
<td width="7%">
<p valign="top">#name</p></td>
<td width="8%"></td>
<td width="8%">
<p valign="top">type</p></td>
<td width="7%"></td>
<td width="8%">
<p valign="top">NaN</p></td>
<td width="8%">
<p valign="top">NaN-proxy</p></td>
<td width="8%"></td>
<td width="38%">
<p valign="top">scale offset oformat</p></td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%"></td>
<td width="7%">
<p valign="top">lat</p></td>
<td width="8%">
<p valign="top">a</p></td>
<td width="8%">
<p valign="top">N</p></td>
<td width="7%">
<p valign="top">0</p></td>
<td width="8%">
<p valign="top">1</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="8%">
<p valign="top">%9.5f</p></td>
<td width="38%">
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%"></td>
<td width="7%">
<p valign="top">lon</p></td>
<td width="8%">
<p valign="top">a</p></td>
<td width="8%">
<p valign="top">N</p></td>
<td width="7%">
<p valign="top">0</p></td>
<td width="8%">
<p valign="top">1</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="8%">
<p valign="top">%10.5f</p></td>
<td width="38%">
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%"></td>
<td width="7%">
<p valign="top">time</p></td>
<td width="8%">
<p valign="top">a</p></td>
<td width="8%">
<p valign="top">N</p></td>
<td width="7%">
<p valign="top">0</p></td>
<td width="8%">
<p valign="top">1</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="8%">
<p valign="top">%7.1f</p></td>
<td width="38%">
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%"></td>
<td width="7%">
<p valign="top">obs1</p></td>
<td width="8%">
<p valign="top">a</p></td>
<td width="8%">
<p valign="top">N</p></td>
<td width="7%">
<p valign="top">0</p></td>
<td width="8%">
<p valign="top">1</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="8%">
<p valign="top">%7.2f</p></td>
<td width="38%">
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%"></td>
<td width="7%">
<p valign="top">obs2</p></td>
<td width="8%">
<p valign="top">a</p></td>
<td width="8%">
<p valign="top">N</p></td>
<td width="7%">
<p valign="top">0</p></td>
<td width="8%">
<p valign="top">1</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="8%">
<p valign="top">%7.2f</p></td>
<td width="38%">
</td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%"></td>
<td width="7%">
<p valign="top">obs3</p></td>
<td width="8%">
<p valign="top">a</p></td>
<td width="8%">
<p valign="top">N</p></td>
<td width="7%">
<p valign="top">0</p></td>
<td width="8%">
<p valign="top">1</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="8%">
<p valign="top">%7.2f</p></td>
<td width="38%">
</td>
</table>
<p style="margin-left:11%; margin-top: 1em">Next we create
the TAG and the TAG directory with the databases for these
line track files. Assuming these contain geographic data and
that we want to keep track of the data distribution at a 1 x
1 degree resolution, with distances in km calculated along
geodesics and with speeds given in knots, we may run</p>
<p style="margin-left:11%; margin-top: 1em"><b>x2sys_init</b>
LINE <b>−V −G −D</b> line <b>−Rg
−Ce −Ndk −NsN −I</b> 1/1
<b>−E</b> trk</p>
<p style="margin-left:11%; margin-top: 1em">where we have
selected LINE to be our x2sys tag. When x2sys tools try to
read your line data files they will first look in the
current directory and second look in the file
<i>TAG</i>_paths.txt for a list of additional directories to
examine. Therefore, create such a file (here LINE_paths.txt)
and stick the full paths to your data directories there. All
TAG-related files (definition files, tag files, and track
data bases created) will be expected to be in the directory
pointed to by <b>$X2SYS_HOME</b>/<i>TAG</i> (in our case
<b>$X2SYS_HOME</b>/LINE). Note that the argument to
<b>−D</b> must contain the full path if the *.def file
is not in the current directory. <b>x2sys_init</b> will copy
this file to the <b>$X2SYS_HOME</b>/<i>TAG</i> directory
where all other x2sys tools will expect to find it. <b><br>
Create tbf file(s):</b></p>
<p style="margin-left:22%;">Once the (empty) TAG databases
have been initialized we go through a two-step process to
populate them. First we run <b><A HREF="x2sys_binlist.html">x2sys_binlist</A></b> on all our
track files to create one (or more) multi-segment track
bin-index files (tbf). These contain information on which 1
x 1 degree bins (or any other blocksize; see
<b>−I</b>) each track has visited and which
observations (in your case obs1, obs2, obs3) were actually
observed (not all tracks may have all three kinds of
observations everywhere). For instance, if your tracks are
listed in the file tracks.lis we may run this command:</p>
<p style="margin-left:22%; margin-top: 1em"><b>x2sys_binlist
−V −T</b> LINE :tracks.lis > tracks.tbf</p>
<p style="margin-left:11%;"><b>Update index data
base:</b></p>
<p style="margin-left:22%;">Next, the track bin-index files
are fed to <b><A HREF="x2sys_put.html">x2sys_put</A></b> which will insert the
information into the TAG databases:</p>
<p style="margin-left:22%; margin-top: 1em"><b>x2sys_put
−V −T</b> LINE tracks.tbf</p>
<p style="margin-left:11%;"><b>Search for data:</b></p>
<p style="margin-left:22%;">You may now use
<b><A HREF="x2sys_get.html">x2sys_get</A></b> to find all the tracks within a certain
sub-region, and optionally limit the search to those tracks
that have a particular combination of observables. E.g., to
find all the tracks which has both obs1 and obs3 inside the
specified region, run</p>
<p style="margin-left:22%; margin-top: 1em"><b>x2sys_get
−V −T</b> LINE <b>−R</b> 20/40/-40/-20
<b>−F</b> obs1,obs3 > tracks.tbf</p>
<p style="margin-left:11%;"><b>MGD77[+] or GMT:</b></p>
<p style="margin-left:22%;">Definition files already exist
for MGD77 files (both standard ASCII and enhanced
netCDF-based MGD77+ files) and the old *.gmt files
manipulated by the mgg supplements; for these data sets the
<b>−C</b> and <b>−N</b> will default to great
circle distance calculation in km and speed in m/s. There
are also definition files for plain x,y[,z] and lon,lat[,z]
tracks. To initiate new track databases to be used with
MGD77 data from NGDC, try</p>
<p style="margin-left:22%; margin-top: 1em"><b>x2sys_init</b>
MGD77 <b>−V −D</b> mgd77 <b>−E</b> mgd77
<b>−Rd −Gd −Nsn −I</b> 1/1
<b>−Wt</b> 900 <b>−Wd</b> 5</p>
<p style="margin-left:22%; margin-top: 1em">where we have
chosen a 15 minute (900 sec) or 5 km threshold to indicate a
data gap and selected knots as the speed; the other steps
are similar.</p>
<p style="margin-left:11%;"><b>Binary files:</b></p>
<p style="margin-left:22%;">Let us pretend that your line
files actually are binary files with a 128-byte header
structure (to be skipped) followed by the data records and
where <i>lon</i>, <i>lat</i>, <i>time</i> are double
precision numbers while the three observations are 2-byte
integers which must be multiplied by 0.1. Finally, the first
two observations may be -32768 which means there is no data
available. All that is needed is a different line.def
file:</p>
<p style="margin-left:22%; margin-top: 1em"># Define file
for the binary line format</p>
<table width="100%" border=0 rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="22%"></td>
<td width="-14%"></td>
<td width="7%"></td>
<td width="8%">
<p valign="top">#BINARY</p></td>
<td width="8%"></td>
<td width="7%">
<p valign="top"># File is now binary</p></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="38%">
</td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="-14%"></td>
<td width="7%"></td>
<td width="8%">
<p valign="top">#SKIP 128</p></td>
<td width="8%"></td>
<td width="7%">
<p valign="top"># Skip 128 bytes</p></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="38%">
</td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="-14%"></td>
<td width="7%"></td>
<td width="8%">
<p valign="top">#GEO</p></td>
<td width="8%">
</td>
<td width="7%">
<p valign="top"># Data are geographic</p></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="38%">
</td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="-14%"></td>
<td width="7%"></td>
<td width="8%">
<p valign="top">#name</p></td>
<td width="8%"></td>
<td width="7%">
<p valign="top">type</p></td>
<td width="8%">
<p valign="top">NaN?</p></td>
<td width="8%"></td>
<td width="8%">
<p valign="top">NaN-proxy</p></td>
<td width="38%">
<p valign="top">scale offset oformat</p></td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="-14%"></td>
<td width="7%"></td>
<td width="8%">
<p valign="top">lon</p></td>
<td width="8%">
<p valign="top">d</p></td>
<td width="7%">
<p valign="top">N</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="8%">
<p valign="top">1</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="38%">
<p valign="top">%10.5f</p></td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="-14%"></td>
<td width="7%"></td>
<td width="8%">
<p valign="top">lat</p></td>
<td width="8%">
<p valign="top">d</p></td>
<td width="7%">
<p valign="top">N</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="8%">
<p valign="top">1</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="38%">
<p valign="top">%9.5f</p></td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="-14%"></td>
<td width="7%"></td>
<td width="8%">
<p valign="top">time</p></td>
<td width="8%">
<p valign="top">d</p></td>
<td width="7%">
<p valign="top">N</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="8%">
<p valign="top">1</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="38%">
<p valign="top">%7.1f</p></td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="-14%"></td>
<td width="7%"></td>
<td width="8%">
<p valign="top">obs1</p></td>
<td width="8%">
<p valign="top">h</p></td>
<td width="7%">
<p valign="top">Y</p></td>
<td width="8%">
<p valign="top">-32768</p></td>
<td width="8%"></td>
<td width="8%">
<p valign="top">0.1</p></td>
<td width="38%">
<p valign="top">0</p></td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="-14%"></td>
<td width="7%"></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="7%"></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="38%">
<p valign="top">%6.1f</p></td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="-14%"></td>
<td width="7%"></td>
<td width="8%">
<p valign="top">obs2</p></td>
<td width="8%">
<p valign="top">h</p></td>
<td width="7%">
<p valign="top">Y</p></td>
<td width="8%">
<p valign="top">-32768</p></td>
<td width="8%"></td>
<td width="8%">
<p valign="top">0.1</p></td>
<td width="38%">
<p valign="top">0</p></td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="-14%"></td>
<td width="7%"></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="7%"></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="38%">
<p valign="top">%6.1f</p></td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="-14%"></td>
<td width="7%"></td>
<td width="8%">
<p valign="top">obs3</p></td>
<td width="8%">
<p valign="top">h</p></td>
<td width="7%">
<p valign="top">N</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="8%">
<p valign="top">0.1</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="38%">
<p valign="top">%6.1f</p></td>
</table>
<p style="margin-left:22%; margin-top: 1em">The rest of the
steps are identical.</p>
<p style="margin-left:11%;"><b>COARDS 1-D netCDF
files:</b></p>
<p style="margin-left:22%;">Finally, suppose that your line
files actually are netCDF files that conform to the COARDS
convention, with data columns named <i>lon</i>, <i>lat</i>,
<i>time</i>, <i>obs1</i>, <i>obs2</i>, and <i>obs3</i>. All
that is needed is a different line.def file:</p>
<p style="margin-left:22%; margin-top: 1em"># Define file
for the netCDF COARDS line format</p>
<table width="100%" border=0 rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="22%"></td>
<td width="-14%"></td>
<td width="7%"></td>
<td width="8%">
<p valign="top">#NETCDF</p></td>
<td width="8%"></td>
<td width="7%">
<p valign="top"># File is now netCDF</p></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="38%">
</td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="-14%"></td>
<td width="7%"></td>
<td width="8%">
<p valign="top">#GEO</p></td>
<td width="8%">
</td>
<td width="7%">
<p valign="top"># Data are geographic</p></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="38%">
</td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="-14%"></td>
<td width="7%"></td>
<td width="8%">
<p valign="top">#name</p></td>
<td width="8%"></td>
<td width="7%">
<p valign="top">type</p></td>
<td width="8%">
<p valign="top">NaN?</p></td>
<td width="8%"></td>
<td width="8%">
<p valign="top">NaN-proxy</p></td>
<td width="38%">
<p valign="top">scale offset oformat</p></td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="-14%"></td>
<td width="7%"></td>
<td width="8%">
<p valign="top">lon</p></td>
<td width="8%">
<p valign="top">d</p></td>
<td width="7%">
<p valign="top">N</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="8%">
<p valign="top">1</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="38%">
<p valign="top">%10.5f</p></td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="-14%"></td>
<td width="7%"></td>
<td width="8%">
<p valign="top">lat</p></td>
<td width="8%">
<p valign="top">d</p></td>
<td width="7%">
<p valign="top">N</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="8%">
<p valign="top">1</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="38%">
<p valign="top">%9.5f</p></td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="-14%"></td>
<td width="7%"></td>
<td width="8%">
<p valign="top">time</p></td>
<td width="8%">
<p valign="top">d</p></td>
<td width="7%">
<p valign="top">N</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="8%">
<p valign="top">1</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="38%">
<p valign="top">%7.1f</p></td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="-14%"></td>
<td width="7%"></td>
<td width="8%">
<p valign="top">obs1</p></td>
<td width="8%">
<p valign="top">d</p></td>
<td width="7%">
<p valign="top">N</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="8%">
<p valign="top">1</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="38%">
<p valign="top">%6.1f</p></td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="-14%"></td>
<td width="7%"></td>
<td width="8%">
<p valign="top">obs2</p></td>
<td width="8%">
<p valign="top">d</p></td>
<td width="7%">
<p valign="top">N</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="8%">
<p valign="top">1</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="38%">
<p valign="top">%6.1f</p></td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="-14%"></td>
<td width="7%"></td>
<td width="8%">
<p valign="top">obs3</p></td>
<td width="8%">
<p valign="top">d</p></td>
<td width="7%">
<p valign="top">N</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="8%">
<p valign="top">1</p></td>
<td width="8%">
<p valign="top">0</p></td>
<td width="38%">
<p valign="top">%6.1f</p></td>
</table>
<p style="margin-left:22%; margin-top: 1em">Note we use no
scaling or NAN proxies since those issues are usually
handled internally in the netCDF format description.</p>
<a name="SEE ALSO"></a>
<h2>SEE ALSO</h2>
<p style="margin-left:11%; margin-top: 1em"><i><A HREF="x2sys_binlist.html">x2sys_binlist</A></i>(1),
<i><A HREF="x2sys_datalist.html">x2sys_datalist</A></i>(1), <i><A HREF="x2sys_get.html">x2sys_get</A></i>(1),
<i><A HREF="x2sys_list.html">x2sys_list</A></i>(1), <i><A HREF="x2sys_put.html">x2sys_put</A></i>(1),
<i><A HREF="x2sys_report.html">x2sys_report</A></i>(1), <i><A HREF="x2sys_solve.html">x2sys_solve</A></i>(1)</p>
<hr>
</body>
</html>
|