Changeset 3288 for TI02-CSML/trunk
- Timestamp:
- 30/01/08 11:59:33 (13 years ago)
- Location:
- TI02-CSML/trunk/csml
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TI02-CSML/trunk/csml/csmllibs/csmlbuilder.py
r3286 r3288 34 34 self.directory=self.selection[0] 35 35 else: 36 self.selection=None 36 37 self.directory = directory # top level directory containing data files 37 self.selection38 38 self.csmlfeaturetype = csmlft 39 39 self.mapping = mapping … … 56 56 #this is caused by an incorrect directory name 57 57 print 'error: Cannot find a config file at this location.' 58 sys.exit()58 raise SystemExit 59 59 #self.addSecurity() 60 60 self.createFeatureFileMap() -
TI02-CSML/trunk/csml/csmlscan.py
r3286 r3288 99 99 config = ConfigParser.ConfigParser() 100 100 #Get command line arguments 101 print sys.argv 101 #if len(sys.argv) ==1: 102 #print 'No arguments passed to csmlscan. Run "csmlscan --help" for more info.' 103 #raise SystemExit 102 104 if optargs: 103 105 #if called as main(args) from another python module use these args, else use … … 107 109 opts, args = getopt.getopt(sys.argv[1:], "c:d:i:a:f:xt:m:po:s:v:T:h", ["configfile=","directory=","id=","minaxes=", "csmlfeaturetype=", "exitafterconfig","timedimension=", "filemapping=", "printscreen", "outputfile=", "spatialstorage=","valuestorage=","timestorage=","help"]) 108 110 except getopt.error, msg: 109 print "Invalid options, use --help for help"110 sys.exit()111 print 'Invalid options, use "csmlscan --help" for help' 112 raise SystemExit 111 113 hasConfig=False 112 114 configTest=False … … 173 175 174 176 else: #no config file, get command line args 175 for o, v in opts:176 print o,v177 177 for o, v in opts: 178 178 if o in ("-d", "--directory"): … … 200 200 elif o in ("-h", "--help"): 201 201 print usage 202 sys.exit()202 raise SystemExit 203 203 if args is not []: 204 204 SELECTION=args … … 239 239 if configTest==True: 240 240 #don't actually start the scan 241 sys.exit() 241 print '\n Abandoning scan, remove "-x" flag to scan for real' 242 raise SystemExit 242 243 243 244 … … 262 263 263 264 264 265 266 267 268 269 270 271 -
TI02-CSML/trunk/csml/testfiles/gridseries/subset.py
r3096 r3288 55 55 56 56 #csmlContainer.add(feature.subsetToGridSeries(outputdir,ncname='mygridseries.nc',**subsetDictionary)) 57 #csmlContainer.add(feature.subsetToGridSeries(outputdir,ncname='mygridseries.nc',latitude=(-90,90), longitude=(-180,180),time=('2804-12-01T00:00:00.0','2904-12-01T00:00:00.0')))57 csmlContainer.add(feature.subsetToGridSeries(outputdir,ncname='mygridseries.nc',latitude=(-90,90), longitude=(-180,180),time=('2804-12-01T00:00:00.0','2904-12-01T00:00:00.0'))) 58 58 59 59 #csmlContainer.add(feature.subsetToGridSeries(outputdir,ncname='mygridseries.nc',latitude=(60), longitude=(180),time=('2804-12-01T00:00:00.0','2904-12-01T00:00:00.0')))
Note: See TracChangeset
for help on using the changeset viewer.