Top Banner
HW 2 Discussion Remember, everything is still an illusion
20

HW 2 Discussion Remember, everything is still an illusion.

Dec 28, 2015

Download

Documents

Elvin Hill
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: HW 2 Discussion Remember, everything is still an illusion.

HW 2 Discussion

Remember, everything is still an illusion

Page 2: HW 2 Discussion Remember, everything is still an illusion.

Stars.txt and Galaxy.txt

• First thing to do is to understand the structure of the two files. THEY ARE NOT THE SAME

• Stars.txt is the same as moon.txt• Galaxy.txt is in a slightly different 2D format:

Page 3: HW 2 Discussion Remember, everything is still an illusion.

Read Original.txt file in python

Page 4: HW 2 Discussion Remember, everything is still an illusion.

Find the Stars

• This is about finding local maxima in a 2D array

• http://stackoverflow.com/questions/3684484/peak-detec tion-in-a-2d-array

• http://stackoverflow.com/questions/16842823/peak-detection-in-a-noisy-2d-array

• http://www.mathworks.com/matlabcentral/fileexchange/37388-fast-2d-peak-finder

• http://scikit-image.org/docs/dev/api/skimage.feature.html• http://www.filipekberg.se/2014/02/10/understanding-peak-fi

nding/

Page 5: HW 2 Discussion Remember, everything is still an illusion.

What does the data actually look like in the Array?

USE MEDIAN FILTERING TO FIND THE LOCAL PEAKS BECAUSE ITS VALUE IS MUCH HIGHER THAN MEDIAN – OR USE RANKS. THE POINT IS THAT MAXIMUM IN THIS DATA ARE DEFINED BY A SINGLE PIXEL VALUE AND NOT A REGION (UNLESS THE STARS ARE SATURATED ON THE DETECTOR IN WHICH CASE THEY ARE JUNK DATA

Page 6: HW 2 Discussion Remember, everything is still an illusion.

You have to think a bit about the data as well

• Its easy to find too many “stars” in this data file:

Page 7: HW 2 Discussion Remember, everything is still an illusion.
Page 8: HW 2 Discussion Remember, everything is still an illusion.

Real Stars + Defects – need physically sensible threshold - experiment

Page 9: HW 2 Discussion Remember, everything is still an illusion.

Contrast Adjusting – not all those faint things might be stars ….

Page 10: HW 2 Discussion Remember, everything is still an illusion.

Bubble Chart – what “problem” does this indicate?

Page 11: HW 2 Discussion Remember, everything is still an illusion.

What the galaxy should look like in sensible lookup table

Page 12: HW 2 Discussion Remember, everything is still an illusion.
Page 13: HW 2 Discussion Remember, everything is still an illusion.

Luminosity Profile

Page 14: HW 2 Discussion Remember, everything is still an illusion.

Calibration errors?

Page 15: HW 2 Discussion Remember, everything is still an illusion.

Histogram – Just Work with Raw Data – 105 million Pixels

What does this distribution tell you about your gray scale dynamic range?

Page 16: HW 2 Discussion Remember, everything is still an illusion.

Histogram Equalization Stretch (how many pixels go into what bit ranges)

Page 17: HW 2 Discussion Remember, everything is still an illusion.
Page 18: HW 2 Discussion Remember, everything is still an illusion.

Make the Galaxy Disappear

Page 19: HW 2 Discussion Remember, everything is still an illusion.
Page 20: HW 2 Discussion Remember, everything is still an illusion.

Low Surface Brightness Galaxies

Galaxies are extended objects imaged against the noise of the night sky