@@ -11,24 +11,34 @@ def main():
1111 parser .add_argument ('-c' , '--configfile' , action = 'store' , type = str , required = True ,
1212 help = 'YAML config file' )
1313 parser .add_argument ('-i' , '--infile' , action = 'store' , type = str , required = True ,
14- help = 'Input fits or database file' )
14+ help = 'Input fits or database file or database connection string ' )
1515 parser .add_argument ('-b' , '--bands' , action = 'store' , type = str , required = False ,
1616 help = 'Bands to generate map for, comma delimited' )
1717 parser .add_argument ('-n' , '--ncores' , action = 'store' , type = int , required = False ,
1818 default = 1 , help = 'Number of cores to run on.' )
1919 parser .add_argument ('-o' , '--outputpath' , action = 'store' , type = str , required = True ,
2020 help = 'Output path' )
21+ parser .add_argument ('-b' , '--outputbase' , action = 'store' , type = str , required = False ,
22+ help = 'Output filename base; will replace outbase in config.' )
2123 parser .add_argument ('-p' , '--pixels' , action = 'store' , type = str , required = False ,
2224 help = 'Pixels to run on, comma delimited' )
2325 parser .add_argument ('-s' , '--simple' , action = 'store_true' , required = False ,
2426 help = 'Run in simple mode (nexp only)' )
2527 parser .add_argument ('-k' , '--keep_intermediate_files' , action = 'store_true' ,
2628 required = False , help = 'Keep intermediate files' )
29+ parser .add_argument ('-q' , '--query' , required = False ,
30+ help = 'Additional query string; will replace lsst_db_additional_selection config.' )
2731
2832 args = parser .parse_args ()
2933
3034 config = Configuration .load_yaml (args .configfile )
3135
36+ if args .outputbase is not None :
37+ config .outbase = args .outputbase
38+
39+ if args .query is not None :
40+ config .lsst_db_additional_selection = args .query
41+
3242 if args .bands is None :
3343 bands = []
3444 else :
0 commit comments