==================================================================================
Sh_gamit is a script to automate GAMIT processing
- sets up a directory structure for GAMIT
- gets tables and data from various archives around the world
- converts raw to RINEX if necessary
- runs GAMIT and saves phase sky-plots to check daily quality
To run for a particular experiment, create a /tables directory within
your experiment directory, copy into /tables the following files from
gg/templates and modify them appropriately:
process.defaults sites.defaults
sestbl. sittbl.
autlcn.cmd station.info
Check other files in the templates directory. Edit them to suit the type
of analysis you are running, and the options you like.
Script to automate GAMIT processing
Usage: sh_gamit <options>
Where the following are some of the options avaiable:
-dir Experiment directory or root directory for experiment processing.
This must be an absoute path. [Default pwd]
-d yr days where yr and days are the data to be processed e.g. 1997 153 156 178
-s yr d1 d2 where d1 is start day and d2 is stop day to be processed e.g. 1997 153 178
-r day where day is number of days before current date.
-expt 4 char name of experiment/s to run. (list of expts can be used). [Default expt]
-orbit Type of orbit to use. (IGSP IGSR IGSF SIOP SIOR SIOF) [Default SIOF]
Optional second argument gives the day-of-year for the orbit if not the same as processing day
-orbt 4 char ID for orbit files. [Default 4 char extracted from the orbit selected]
-eops Name of EOP series to use. (bull_b, bull_a, etc.) [Default usno]
-localeop Use a local copy of EOP tables (series used is defined by -eops).
No ftp update will be attempted. [Default off]
-remakex Y/C/N Y - Remake x-files without checking.
C - Remake x-file if orbit and session.info are incompatable and all RINEX available [Default C]
N - Don't remake x-files under any circumstances
-renamek Y/C/N Y - Remove existing k-files and remake
C - Do not remake k-files unless missing or X-files remade (default)
N - Do not remake k-files -- stop if missing
-remakej Y/N Y - Remake j-file (default)
N - Do not remake j-file (used with epoch-by-epoch j-files for SA with mismatched time tags)
-netext char add network suffix <char> to day directories. Ie 035r
-yrext add year prefix to day directories. Ie 1997_053
-pres Plot gamit residuals as skyplots <Y/N/E>. YES, NO, ELEV. [Default N]
-nogifs Do NOT create skyplot gifs.
-sessinfo Session - sampling interval, number of epochs, start time (default 30 2880 0 0)
-rx_doy_plus Search RINEX file names this many days into the future for current-day data
-rx_doy_minus Search RINEX file names this many days into the past for current-day data
-minspan Minimum span of data in rinex files in hours [Default is 0.1 (6 min)]
-mailto Name of user and machine to send results summary. (eg. simon@wegener.mit.edu)
-snrres Calculate theoretical phase residuals from SNR. (requires raw data or rinex W/SNR)
-noacc Do not exclude satellites base on accuracy codes in the .sp3 file. [Default exclude]
-xsite list List of sites to be excluded from the processing. [format site:yyyy_ddd-yyyy_ddd OR site]
-copt opts Types of files to be compressed in the day directory. [Default: x k ao D]
-aopt opts Types of files to be archived under -archivepth <dir>. [Default: null]
-dopt opts Types of files to be deleted from the day directory. [Default: c]
Possible d-, c-, and a- opts: D, H, ao, ac, as, b, c, d, e, g, h, i, j, k, l, m, o, p, q, t, x, ps, all
Note: all for -dopt will also remove the day directories, so pairs logically with -aopt H h q as
-h Use Hatanaka RINEX compress algorithm. [Default No]
-archivepth dir Directory where files are to be archived [Default $procdir/archive]
-xver char 1-character x-file version (6th character of x-file). [Default is single-digit year]
-noftp Use this option if no ftp download connections are available.
-ftp_prog Name of ftp program: ftp or ncftp [default is ftp]
-rinex_ftpsites List of ftp sites to be searched for rinex files [default sopac cddis and unavco]
-aprfile Name of xyz coordinate .apr file to be used. [Default is itrf2000.apr]
-xcheck Y/N Do not ftp rinex file if the xfile exists already [Default N]
-noprocess Use this option if processing should be avoided (only recovering files).
Other options are set in the process.defaults file located in the tables directory
To get more options type: sh_gamit -help
Example: sh_gamit -d 98 240 -orbit SIOF -expt tubi -eops usno -nogifs
===================================================================================