Current analysis setup and sample selection

First, generate associated point source list using postgre

1. prtsqlquery.pro with sample_5reffcut_9to11.txt will generate script(eg. psclist.sh):

python sqlquery.py file1 xmin1 xmax1 ymin1 ymax1

python sqlquery.py file2 xmin2 xmax2 ymin2 ymax2

……

2. run psclist.sh in 2MASS image server with gen_assc_psc.sh which is template of psql query for finding point source associated with 2MASS extended source. Then it will print out actual sql query(eg. psclist_psql.sh) for finding point sources for each extended source.

3. run psclist_psql.sh. Then it will generate files containing associate point sources.

In working machine, 2MASS_IMAGES
1.generate cpdir.txt using cpname.pro
2.change cpdir.txt to cpdir.sh using chmod 755
3.do sftp cpdir.sh to IMAGE dir in raptor

In 2MASS server, IMAGE
4.execute cpdir.sh, then files are copied. Note: some files may not be copied due to permission issue. make log file for later reference.
5.bzip2 -d *.bz2

In working machine, 2MASS_IMAGES
6.generate fetch.txt using fetch.pro
7.sftp -b fetch.txt userid@hostname .OR. sftp -o ‘batchmode no’ -b fetch.txt userid@hostname if the former doesn’t work
8 images are copied
9.use pstamp.pro with psc list files to make postage stamp images(original, masking, stellar subtract image) from scan image
10. run baygian_input.pro with my catalog file

In working machine for BIE
11. feed output input_data.txt into setup.py module for generating many input files for 2MASS galaxies

selection criteria

psql -d wsdb -c “select designation,date,hemis,scan,coadd,ra,decl,k_m_fe,k_r_eff,k_ba,k_phi,
k_back,im_nx,ext_key from twomass_xsc where k_m_fe between 7 and 11.0 and (glat>20 or glat<-20) and cc_flg=0 and vc=1 and 5*k_r_eff < dist_edge_ns and 5*k_r_eff < dist_edge_ew
orderby k_m_fe ASC” -o ’sample_5reffcut.txt’

Advertisements

~ by ilsangyoon on July 18, 2008.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: