Skip to content

Commit

Permalink
#17 update local NGL data
Browse files Browse the repository at this point in the history
  • Loading branch information
cicuser committed Mar 21, 2021
1 parent b3d52d4 commit aafab61
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions webAPI/setLocaldata.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import os
import sys
import urllib.request
import glob

def get_localdata(site):
""" get localdata """
Expand Down Expand Up @@ -66,6 +67,13 @@ def main():
cmd = "wget " + site_url + " -N -P localdata"
#print("downloading: ",site)
os.system(cmd)

#update NFL data
for entry in glob.glob("localdata/*.tenv3"):
site = entry.split("/")[1]
site_url = 'http://geodesy.unr.edu/gps_timeseries/tenv3/IGS14/' + site
cmd = "wget " + site_url + " -N -P localdata"
os.system(cmd)

if __name__ == '__main__':
main()

0 comments on commit aafab61

Please sign in to comment.