Utility Programs and Scripts Instillation File conversions Plotting Analysis tools
Utility packages in gamit/globk The utilities are located to three places: ~/gg/com shell scripts ~/gg/kf/utils programs ~/gg/gamit/utils programs Use ‘ls’ on above to list, ‘grep #doc *’ in /com to get one-line description of scripts Nearly all of the utilities and shell scripts are self documenting 27-Dec-18 GAMIT/GLOBK Tutorial 12
installation scripts sh_get_ftp_info - give ftp addresses install_software - installs software install_updates - installs updates Updates from bowie.mit.edu ftp/pub/gps/updates/incremental_updates make_gamit - remakes gamit package make_globk -remake globk package make_libraries - remakes libraries rmfresh - removes all executables and object modules from gamit/globk directories 27-Dec-18 GAMIT/GLOBK Tutorial 12
Data archiving scripts sh_archive_soln - Saves main files from gamit day directory in archive structure sh_casefold - changes the case of file names either to upper (u) or to lower (d) sh_cleanup - Cleans up day directories by compression and deletion sh_crx2rnx - converts Hatinaka compressed files to rinex sh_rnx2cxr - converts rinex to Hatinaks compressed sh_dos2unix - Converts dos text files to Unix 27-Dec-18 GAMIT/GLOBK Tutorial 12
Plot generation sh_enf_to_vel - converts ensum and enfit summary files to standard globk velocity file format. Allows plotting of globk direct velocity estimates with time series velocity estimates sh_gamit_atmos - plots the atmospheric delays from gamit solutions sh_gamit_baseline - plots baseline from gamit solutions rather than globk solutions 27-Dec-18 GAMIT/GLOBK Tutorial 12
Plot generation (continued) sh_glist_gmt - Allows plotting of distribution of stations in times sh_globk_scatter - plots baseline scatter as function of baseline length sh_histogram - plots histogram of position residuals sh_plot_profile - used in conjunction with program profile to plot velocities projected on to a profile. 27-Dec-18 GAMIT/GLOBK Tutorial 12
Plot generation (continued) sh_plotcrd - plots coordinates as a function of time sh_plotvel - draws velocity arrows on a map sh_baseline - shows relative postion vectors as a function of time 27-Dec-18 GAMIT/GLOBK Tutorial 12
File transfer scripts sh_get_hfiles - gets ascii hfiles from SOPAC (usually igs1, igs2, igs3 the three global networks) sh_get_nav - gets navigation files (*.YYn files) from archives sh_get_orbits - gets orbits either sp3 or gamit g-files (SOPAC only) sh_get_raw - Gets raw data for selected sites from SOPAC sh_get_rinex - Gets rinex data from cddis, sopac or unavco sh_get_stinfo - Gets updated station.info from sopac for the global network 27-Dec-18 GAMIT/GLOBK Tutorial 12
Conversion sh_glbtosnx - shell to convert binary hfiles to sinex (uses glbtosnx) sh_l_to_xyz - converts gamit l-lfile to XYZ files sh_svdiff - Differential positioning using pseudoranges sh_svpos - Point positioning using pseudoranges 27-Dec-18 GAMIT/GLOBK Tutorial 12
Globk utilities ~/gg/kf/utils These are all programs (directory contains source code) These programs are self documenting 27-Dec-18 GAMIT/GLOBK Tutorial 12
Conversion programs apr_to_vel - converts a globk apr file to velocity format (sigmas are zero) doy - doy converts dates to various formats: ***TODAY*** IS: Date 2002/01/31 20:38 hrs, DOY 31 JD 2452306.3601 MJD 52305.8601 GPS Week 1151 Day of week 4, GPS Seconds 345600 Day of Week Thu Decimal Year 2002.08455 gapr_to_l - converts globk apriori file to gamit lfile format unify_apr - Allows removal of extra stations, changes of positions and velocities in globk apriori files. 27-Dec-18 GAMIT/GLOBK Tutorial 12
Binary h-files and gfiles swaph -- switches big-endian to little-endian and visa-versa (needed to use SGI binary hfiles on Linux systems) glbtog -- creates gamit g-files from globk solution with orbits glbtosnx – creates a SINEX file from a globk binary h-file; run with ‘-h’ option to get a ascii version of the h-file header 27-Dec-18 GAMIT/GLOBK Tutorial 12
Velocity field manipulation genrelref - Takes standard velocity field file and generates one as difference from site in list (similar to getrel except does not require org file with BRAT on. Uses velocity files themselves. Sigmas may be overestimated. velcom - Allows comparison of many velocities files. produces average values and RMS of values velrot - Allows velocity fields in different frames to be compared 27-Dec-18 GAMIT/GLOBK Tutorial 12
Summary Utilities do lots of different tasks Often you can use them as template to make your own scripts 27-Dec-18 GAMIT/GLOBK Tutorial 12