5.5 Configuration Files (cfg)
Sharing parameter values with collaborators can be daunting for large tasks like astrodrizzle and tweakreg. That is why configuration files were created; these are ASCII text files containing parameter names and corresponding values for a task.
Configuration files can be run from the Python command-line by using the configobj parameter name. If many specific tweakreg parameter settings are required, specifying them as a Python command would look quite untidy. Instead of listing all parameters in one line of code, a separate uniquely-named configuration file (e.g., a file called “tweakreg_example.cfg”) could be created with custom settings, and passed to the task using configobj parameter.
A sample configuration file for tweakreg is shown below.
|