The script for automatic photometry is contained in the file “05_photometry\photosearch_run.py”. To execute the script, just edit the file, modify the input parameters, save the updated file and execute the script by double-click on the file icon in Windows.
The following 5 input parameters must be provided:
The input images must be provided in a list, exactly as for the script for accurate photometry:
Imagelist = ['C:\\image1.fit', 'C:\\image2.fit', 'C:\\image3.fit']
For more details, you can have a look here.
The user specifies how many stars he would like to measure (say N). The script will detect automatically the N brightest stars in the image. Of course is N is larger than the actual number of stars, the script will detect noise fluctuations instead of stars. At the beginning of the script execution, the user has the possibility to visualise the detected stars, and to make sure that an appropriate number was specified:
nbtarget = 2000
The user also needs to specify the number of reference stars he would like to use, to calculate differential magnitudes:
nbref = 20
To do aperture photometry we need to specify 3 different disk sizes:
At the moment one single set of such photometry disks must be specified:
sizes = [[3,8,40]]
If several set of disk sizes are specified then only the first one is used, so that:
sizes = [[2,8,40],[2.5,8,40],[3,8,40],[3.5,8,40],[4,8,40],[4.5,8,40],[5,8,40]]
and
sizes = [[2,8,40]]
are equivalent. A future version of the script may use several sets of disk sizes to identify the false star detections.
Finally, the user must provide a generic name that will be used to create the names of the output files. For instance, if the user provides:
generic_name = 'C:\\Desktop\\24Jan2010\\ProcessedImages\\Target-'
Then the output files will have the following names: