source: CMIP6dreqbuild/trunk/src/framework/chck010012.py @ 1047

Subversion URL: http://proj.badc.rl.ac.uk/svn/exarch/CMIP6dreqbuild/trunk/src/framework/chck010012.py@1047
Revision 1047, 506 bytes checked in by mjuckes, 3 years ago (diff)

misc scripts

Line 
1
2from dreqPy import dreq
3
4vl1 = """ci clivi clt clwvi evspsbl hfls hfss hurs huss pr prc prsn prw psl rlds rldscs rlus rlut rlutcs rsds rsdscs rsdt rsus rsuscs rsut rsutcs rtmt sbl sci sfcWind tas tauu tauv ts uas vas"""
5
6dq = dreq.loadDreq()
7vl1 = vl1.split()
8
9gid = '008e672a-185c-11e7-8f2f-5404a60d96b5'
10
11
12s1 = set( dq.inx.iref_by_sect[gid].a['requestVar'] )
13ls1 = set( [dq.inx.uid[i].label for i in s1] )
14print ls1
15for v in vl1:
16  if v not in ls1:
17    print 'SEVERE: %s missing from target group' % v
18
Note: See TracBrowser for help on using the repository browser.