8
U"lity programs and scripts M. A. Floyd T. A. Herring Massachuse(s Ins,tute of Technology GAMIT/GLOBK/TRACK Short Course for GPS Data Analysis Korea Ins"tute of Geoscience and Mineral Resources (KIGAM) Daejeon, Republic of Korea 23–27 May 2016 Material from T. A. Herring, R. W. King, M. A. Floyd (MIT) and S. C. McClusky (now ANU)

Ulity programs and scripts - GeoWebgeoweb.mit.edu/~floyd/courses/gg/201605_KIGAM/pdf/43-Utility_scripts.pdfU"lity programs and scripts M. A. Floyd T. A. Herring Massachuse(s Ins,tute

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Ulity programs and scripts - GeoWebgeoweb.mit.edu/~floyd/courses/gg/201605_KIGAM/pdf/43-Utility_scripts.pdfU"lity programs and scripts M. A. Floyd T. A. Herring Massachuse(s Ins,tute

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)

Page 2: Ulity programs and scripts - GeoWebgeoweb.mit.edu/~floyd/courses/gg/201605_KIGAM/pdf/43-Utility_scripts.pdfU"lity programs and scripts M. A. Floyd T. A. Herring Massachuse(s Ins,tute

Outline

•  Organizing/pre-processing•  Partofsh_gamit•  Evalua"ngresults•  Visualiza"on

2016/05/26 U"lityprogramsandscripts 2

Page 3: Ulity programs and scripts - GeoWebgeoweb.mit.edu/~floyd/courses/gg/201605_KIGAM/pdf/43-Utility_scripts.pdfU"lity programs and scripts M. A. Floyd T. A. Herring Massachuse(s Ins,tute

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

Page 4: Ulity programs and scripts - GeoWebgeoweb.mit.edu/~floyd/courses/gg/201605_KIGAM/pdf/43-Utility_scripts.pdfU"lity programs and scripts M. A. Floyd T. A. Herring Massachuse(s Ins,tute

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

Page 5: Ulity programs and scripts - GeoWebgeoweb.mit.edu/~floyd/courses/gg/201605_KIGAM/pdf/43-Utility_scripts.pdfU"lity programs and scripts M. A. Floyd T. A. Herring Massachuse(s Ins,tute

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)

Page 6: Ulity programs and scripts - GeoWebgeoweb.mit.edu/~floyd/courses/gg/201605_KIGAM/pdf/43-Utility_scripts.pdfU"lity programs and scripts M. A. Floyd T. A. Herring Massachuse(s Ins,tute

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

Page 7: Ulity programs and scripts - GeoWebgeoweb.mit.edu/~floyd/courses/gg/201605_KIGAM/pdf/43-Utility_scripts.pdfU"lity programs and scripts M. A. Floyd T. A. Herring Massachuse(s Ins,tute

sh_plot_track

•  Readstrack“NEU”,“DHU”or“XYZ”outputfile

•  Mayaddsubplottoviewevolu"onofatmosphericdelay

2016/05/26 U"lityprogramsandscripts 7

Page 8: Ulity programs and scripts - GeoWebgeoweb.mit.edu/~floyd/courses/gg/201605_KIGAM/pdf/43-Utility_scripts.pdfU"lity programs and scripts M. A. Floyd T. A. Herring Massachuse(s Ins,tute

sh_kml

•  Scriptforconver"ngseveralformatsofresultintoKMLformatforviewinginGoogleEarth–  glist(mayalsobeusedwith"meslider)

–  “.org”-file/“.vel”-file–  track“GEOD”-formatoutputfile

2016/05/26 U"lityprogramsandscripts 8