Project

General

Profile

Summer final results » History » Version 15

Hope Head, 07/26/2013 11:41 AM

1 1 Hope Head
h1. Summer final results
2 1 Hope Head
3 6 Shantanu Desai
*Stage 1: Creating Colored JPGs of Panstarrs Data for Planck's Unconfirmed Clusters*
4 1 Hope Head
5 1 Hope Head
All information is located in /data1/users/hhead/CLUSTER_CANDIDATE_JPEGS/ 
6 1 Hope Head
7 1 Hope Head
Included in this directory is the main_script.sh that makes the jpegs, an automator_script.sh which takes in a list of cluster IDs to mass-produce jpegs, a chart with information on each cluster (ex. if a cluster is visible or if photometric issues are present within the image), three directories named for the types of classification (NOT_CLUSTERS, POTENTIAL_CLUSTERS, and UNCERTAIN_CANDIDATES), and a README.txt to explain how to work the codes. 
8 1 Hope Head
9 7 Shantanu Desai
*Stage 2: Source Extraction Code*
10 1 Hope Head
11 1 Hope Head
The code for making the SExtractor catalog files can be found at /home/moon/hhead/nextstage.sh
12 1 Hope Head
13 1 Hope Head
This code goes through the whole process of finding the images of the cluster, unpacking them, running the SExtractor script, and putting these files into a new directory. 
14 1 Hope Head
15 8 Shantanu Desai
*Stage 3: Data Ingestion*
16 1 Hope Head
17 1 Hope Head
Before the unfortunate crash of the database, the next step before SLR could be run was using a data ingestion process. This was done using /home/moon/hhead/ingestclusterdata.sh. 
18 1 Hope Head
19 8 Shantanu Desai
*Stage 4: SLR*
20 1 Hope Head
21 1 Hope Head
Part 1:
22 1 Hope Head
Originally, SLR was completed using the script at /home/moon/hhead/PHOT_CAL/runslr.sh 
23 1 Hope Head
A slight mistype in one of the options meant that many had to be redone, but shortly after beginning this process, the database crashed. Therefore, a new method had to be found to continue with the SLR process. 
24 1 Hope Head
25 14 Hope Head
If the database is up and running, the next step is to run cat2galaxies.sh, located in the same directory. This turns the file into a suitable form for the red-sequencing code. 
26 14 Hope Head
27 1 Hope Head
Part 2:
28 1 Hope Head
A Python code was eventually found for the purposes of this project. The code is located at /home/moon/hhead/PHOT_CAL/SDSS_SLR/big-macs-calibrate/fit_locus.py. And example of how to run this code can be found in example 3 of the README file within this same directory. In order to run this code, we had to make a columns file, a filters file (available at /home/moon/hhead/PHOT_CAL/SDSS_SLR/big-macs-calibrate/FILTERS/SDSS-?.res) , and test the boostrap option to get the best results. 
29 2 Hope Head
30 4 Hope Head
     Example of the command used for running our code: "python fit_locus.py --file catalog_101.fits --columns SDSS.columns --extension 1 --bootstrap 2 -l -r RA -d DEC -j "
31 2 Hope Head
32 4 Hope Head
Before this code can be run though, the script /home/moon/hhead/PHOT_CAL/SDSS_SLR/big-macs-calibrate/SDSS_makingplotinfo.sh must be run on the cluster. This takes the SExtractor catalogs and manipulates them into the correct order of data and right format of file for the code to work correctly. After the SLR code is successful, the script in the same directory called createinputforredsequencer.sh must also be run for the next step, as this code takes what has been output from the SLR code and manipulates it into yet another order and format for the red-sequencing code to use. 
33 1 Hope Head
34 8 Shantanu Desai
*Stage 5: Red-sequencer code*
35 1 Hope Head
36 2 Hope Head
This code was developed by Christina Hennig and Jiayi Liu. This code is a two-part process. The first part is the checkphotoz, located at /home/moon/hhead/package/. It intakes the R500, BCG_RA, BCG_DEC, and an output file name to make a rough estimate of the redshift for a cluster. Next, the Python code plotZ.py (also located in the same directory) takes in a file name and outputs both a graph from which to determine the best likelihood color combination and sends to the screen the uncertainties on the peak likelihood in each color combination. In total for the unconfirmed clusters, the process goes as follows: 
37 2 Hope Head
38 3 Hope Head
First, training is necessary to know what kind of general redshift range the cluster will be in. This involves viewing jpegs of clusters of a range of redshift values and learning what general look certain redshift ranged clusters will have. For such training, jpegs are available in /home/moon/hhead/ORIGINAL_JPEGS/ and the Preliminary Results page of this wiki gives known redshift values for clusters.
39 3 Hope Head
Once the user has a general knowledge of the looks of these clusters, the next step is to view a jpeg created of the cluster candidate and make an educated guess as to the redshift range.
40 3 Hope Head
Then, the user can run the checkphotoz code and python plotZ.py code. 
41 4 Hope Head
     Example: "./checkphotoz 746.galaxies 3.957633 97.75285243587 -14.83486888914 pz746"
42 4 Hope Head
                    "python plotZ.py --file pz746"
43 11 Hope Head
*note: The order for using the checkphotoz code is ./checkphotoz <filename> <R500> <BCG RA> <BCG DEC> <output filename>. If using the planck cluster candidates, the R500 and BCG RA and DEC can be found on the Preliminary Results and Unconfirmed Cluster pages on this wiki. Also, the order of the input parameters can be viewed in the terminal if checkphotoz is ran without any parameters. 
44 3 Hope Head
Once these are complete, the output to the screen should show the uncertainties. If a color combination shows '2.0' or '0.0' then an error has occurred and must be looked into. Otherwise, these values show the uncertainties for each peak. From here, the next step is to display the plot created. 
45 4 Hope Head
    Example: "display pz746.png"
46 3 Hope Head
This plot will give the Gaussian peaks of the redshift vs. likelihood. If the value of the redshift is known or estimated to be within the range of 0.0 to 0.3, the color combinations to use are g-r and g-i, regardless of whether the peaks in r-i, r-z, or i-z are higher. If the redshift is 0.31 to 0.5, use r-i and r-z, excluding the height of peaks in the other color combinations. The color combination i-z is to be used for very high redshifts. Now, within these ranges, you will use the peak that is highest between the color combinations available for that redshift range. 
47 3 Hope Head
    Example: redshift is estimated to be 0.23. One would ignore the color combination peaks of r-i, r-z, and i-z, even if r-z showed a very high peak. Between g-r and g-i, g-i shows the higher peak, so that's the color combination to go with. 
48 3 Hope Head
With a color combination file determined, the user can then view the data file that corresponds to that file. They are named pz<cluster>_<number>_bg.dat
49 4 Hope Head
    Example: "vi pz746_1_bg.dat"
50 3 Hope Head
The numbers 0 through 4 are used to designate the files. Thus, starting with g-r = 0, and ending with i-z = 4. 
51 1 Hope Head
52 3 Hope Head
In this file, the user should find where the highest value occurs in the second column, which corresponds to the redshift value in the first column. This, along with the error given for that color combination originally displayed in the terminal after the plotZ.py script was run, is the value of the redshift for that cluster. 
53 1 Hope Head
54 3 Hope Head
55 3 Hope Head
Troubleshooting: 
56 3 Hope Head
57 3 Hope Head
As can be expected, real science data isn't going to be perfect! Should the python script give '2.0' or '0.0' for the errors, or the graph simply be a mess with badly placed Gaussians, there could be an issue with the data itself. The way to check this is with region file sanity checks. If too few galaxies exist within the region of the supposed cluster, if another cluster is within the radius of cluster candidate, or if it's a crowded field with lots of stars or bright objects overlapping or near the cluster itself, this code will not give good results. In such a case, other methods might need to be explored. However, this can be checked by viewing the region of the cluster with a region file of the galaxies present and seeing what could be the case. While this does not offer a solution to the problem, it does allow for an explanation for why this code may not work.
58 5 Hope Head
The code to create region files can be found at /home/moon/hhead/createregionfile.sh These region files should be copied into their respective UNCONFIRMED_CLUSTERS directories, and then /data1/users/hhead/DATA_FOR_CLUSTERS/UNCONFIRMED_CLUSTERS/imagemaker.sh should be used to create a color image with the region of the cluster and the extracted galaxies marked. From here, the image can be checked for issues mentioned previously. 
59 5 Hope Head
60 5 Hope Head
61 12 Hope Head
*Stage 6: Future Work*
62 5 Hope Head
63 5 Hope Head
From here, methods need to be found to which the redshift values for these unconfirmed clusters can be found, if this is possible. 
64 11 Hope Head
65 15 Hope Head
UPDATE: Upon re-examination, 22 unconfirmed cluster candidates have been found that could yield results. They have just started the beginning stages, but an attempt should be made to recover redshifts. 
66 15 Hope Head
67 13 Shantanu Desai
*Other Work*
68 11 Hope Head
69 11 Hope Head
If interested in the SDSS jpegs of these clusters, such information is available at /home/moon/hhead/SDSS_JPEGS. Also included in this directory is an SDSS_chart.txt, which gives information about what is visible in each jpeg for each cluster. 
Redmine Appliance - Powered by TurnKey Linux