U"lityprogramsandscripts
M.A.FloydT.A.HerringMassachuse(sIns,tuteofTechnology
GAMIT/GLOBK/TRACKShortCourseforGPSDataAnalysisKoreaIns"tuteofGeoscienceandMineralResources(KIGAM)
Daejeon,RepublicofKorea23–27May2016
MaterialfromT.A.Herring,R.W.King,M.A.Floyd(MIT)andS.C.McClusky(nowANU)
Outline
• Organizing/pre-processing• Partofsh_gamit• Evalua"ngresults• Visualiza"on
2016/05/26 U"lityprogramsandscripts 2
Guidetoscripts• Therearemanyscriptsinthe~/gg/comdirectoryandyoushould
with"melookatallthesescriptsbecausetheyo`encontainusefulguidesastohowtodocertaintasks.– Lookattheprogramsusedinthescriptsbecausetheseshowyouthe
sequencesandinputsneededfordifferenttasks– Scrip"ngmethodsareusefulwhenyouwanttoautomatetasksor
alloweasyre-genera"onofresults.– Lookfortemplatesthatshowhowdifferenttaskscanbe
accomplished.• ~/gg/kf/u"lsand~/gg/gamit/u"lscontainprogramsinvokedbythe
scriptsin/comorrundirectlyfromacommand-line.• Boththeshell-scriptsandtheu"lityprogramsareself-
documen"ng,invokedbytypingthenamewithoutanyarguments.
2016/05/26 U"lityprogramsandscripts 3
GAMIT/GLOBKu"li"esOrganiza"ng/Pre-processing
sh_get_"mes:Liststart/stop"mesforallRINEXfiles
sh_upd_stnfo:Addentriestosta"on.infofromRINEXheaders
doy:Convertto/fromDOY,YYMMDD,JD,MJD,GPSW
convertc:Transformcoodinates(cartesian/geode"c/spherical)
glist:Listsitesforh-filesingdl;checkcoordinates,models
cortran/convertc:Translatecoordinatetypesandfileformats
corcom:Rotateanaprfiletoadifferentplateframe
unify_apr:Setequalveloci"es/coordinatesforglorgequates
glist2cmd:Createause_sitelistfromaglistfile
vel2stab:Createastab_sitelistfromavelocityorgfile
sh_dos2unix:RemovetheextraCRfromeachlineofafile
GAMIT/GLOBKU"li"es(cont)Scriptsusedbysh_gamitbutusefulstand-alone
sh_get_rinex:`paRINEXofilefromremotearchives(`p_info)
sh_crx2rnx:convertto/fromRINEX/Hatanaka
sh_get_nav:`paRINEXnfilefromremotearchives
sh_get_met:`paRINEXmfilefromremotearchives
sh_get_hfiles:`ph-filesfromMIT/SOPAC
sh_update_eop:`panEOPfilefromIERS,createpmu,ut1.,wob.
sh_get_orbits:`pag-fileorsp3filefromremotearchives,call-->
sh_sp3fit:createag-ort-filefromansp3file(1-3days)
GAMIT/GLOBK Utilities (cont)Evalua"ngresults
sh_oneway:Plotphaseresiduals(skymap;vseleva"on)[GMT]
sh_plotelmean:Eleva"onanglesaverageresidualsplots[GMT]
cview:Displayandmanipulatephaseresiduals[X-windows]
sh_plot_pos:Plotcoordinate"messeries[GMT]
sh_tshist:Plothistogramof"me-seriessta"s"cs[GMT]
tsview:Displayandmanipulatecoordinate"meseries[MATLAB]
sh_plotvel:Plotvelocitymaps[GMT]
sh_map_elements,sh_map_calif,sh_map_balkans,etc.
velview:Displayandmanipulatevelocitymaps[MATLAB]
sh_velhist:Plothistogramofvelocitysta"s"cs
sh_org2vel:Extractplate-referencedveloci"esfromglorgprintfile
velrot:Combinevelocityfieldsfromdifferentanalyses
sh_plot_track
• Readstrack“NEU”,“DHU”or“XYZ”outputfile
• Mayaddsubplottoviewevolu"onofatmosphericdelay
2016/05/26 U"lityprogramsandscripts 7
sh_kml
• Scriptforconver"ngseveralformatsofresultintoKMLformatforviewinginGoogleEarth– glist(mayalsobeusedwith"meslider)
– “.org”-file/“.vel”-file– track“GEOD”-formatoutputfile
2016/05/26 U"lityprogramsandscripts 8