#!PYTHONEXE """updateMaster is the script that updates the local site's metadata. It replaces the tcl script updateMaster. It has the following tasks: 1. It creates summary metadata expTab.txt and fileTab.txt 2. It gather these files from all other madrigal sites via the openmadrigal site and combines them to create expTabAll.txt and fileTabAll.txt 3. It checks openmadrigal server for any update to the central metadata files siteTab.txt, instTab.txt, and instType.txt. 4. It updates geophysical files. 5. It updates the other summary metadata files instKindatTab.txt and instParmTab.txt Implementation: It simply calls madrigal.admin.MadrigalDBAdmin.updateMaster Use -s flag to skip updating geophysical files. A warning will be printed that your geophysical files may be out of date. $Id: updateMaster 3304 2011-01-17 15:25:59Z brideout $ """ import sys import madrigal.admin skipGeo = False if len(sys.argv) == 2: if sys.argv[1] == '-s': skipGeo = True else: print('Unknown argument %s - use -s to skip geophysical file update' % (sys.argv[1])) sys.exit(-1) o = madrigal.admin.MadrigalDBAdmin() o.updateMaster(skipGeo)