##// END OF EJS Templates
Review updata app
Review updata app

File last commit:

r0:b84e1135c2c4
r8:9c1b6919a8a9
Show More
updateMaster
39 lines | 1.2 KiB | text/plain | TextLexer
#!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)