Example #1
0
                            co.set_cache_file("stackIndexFile", stkindfile)
                            co.ro = ro
                            # @@DOC: put cachedirs in context
                            for cachename in cachedict:
                                co.update({cachename:cachedict[cachename]})
                            co.update({"cachedict":cachedict})
                            # rc.["storedcals"] will be the proper directory

                            # co.restore_cal_index(calindfile)
                            # old local stack stuff co.restore_stk_index( stkindfile )

                            # add input files
                            if infiles:
                                #co.add_input(infiles)
                                co.populate_stream(infiles)
                            co.set_iraf_stdout(irafstdout)
                            co.set_iraf_stderr(irafstdout)

                           # odl way rl.retrieve_parameters(infile[0], co, rec)
                            if hasattr(args, "user_params"):
                                co.user_params = args.user_params
                            if hasattr(args, "globalParams"):
                                for pkey in args.globalParams.keys():
                                    co.update({pkey:args.globalParams[pkey]})

                        # Remove after write int works properly
                        if (args.writeInt == True):       
                                co.update({"writeInt":True})  

                        # Add the log level/name/mode to the global dict
                        co.update({'loglevel':args.loglevel})