Atacama NIR Camera Wiki
NIR Reduction Pipeline
Start:
**ANIR Reduction Pipeline for the NIR Channel (ARIA) [#a1...
***What you need to run the pipeline; [#t49c2ab9]
-IRAF
If you don't have IRAF yet, please install it as follows ...
Download IRAF packages from http://iraf.noao.edu/
#Newly create directory /iraf/iraf
sudo mkdir /iraf
cd /iraf
sudo mkdir /iraf
#Extract the downloaded IRAF packages
cd /iraf/iraf
sudo tar -xvf iraf***.tar
#Install
cd unix/hlib
sudo ./insatll.csh
-IRAF extern packages (stsdas, mscred)
Install external packages
cd /iraf/iraf/extern
sudo ./configure
sudo make stsdas
cd /iraf/iraf/extern/stsdas
sudo ln -s bin.macosx bin.macintel (in case of Mac)
cd /iraf/iraf/extern/tables
sudo ln -s bin.macosx bin.macintel (in case of Mac)
sudo make mscred
-OPM Software
For pattern matching, this pipeline uses OPM software ava...
[[Noriyuki Matsunaga's web>http://translate.google.co.jp/...
-SuperMongo(Graph plot)~
If you want to plot some result, please install Super Mon...
available at [[Robert Lupton's web>http://www.astro.prin...
***How to Install [#b773935f]
-Extract the following zip file at whatever directory you...
Aria_development_ver : [[dev.zip>http://www.ioa.s.u-tokyo...
In the following example, a directory /home/anir/aqua is ...
-Install OPM~
cd /home/anir/aqua/sample
wget http://stella.astron.s.u-tokyo.ac.jp/nmatsuna/Japan...
tar zxvf OPM1_4.tgz
cd OPM
make
make cfitsio (if you have CFITSIO installed)
-Install Super Mongo~
***Cookbook for ARIA (Development Version) [#p4e084eb]
#Note that this ARIA code (development version ) can onl...
1. DIRECTORY STRUCTURE OF AQUA IN UNI3
_________________________________________________
aqua --- rawdata (put some raw ANIR data you want t...
|
--- aria --- 2mass
--- scripts
--- skyflat
--- template
_________________________________________________
#You can reduce the ANIR data with AQUA at /home/a...
#IP address of uni3 is 192.168.36.41
2. WHERE CAN I PUT SOME ANIR DATA?
You, probably have got some raw FITS data beginning...
What you should do for the first step to reduce the...
#for the beginner training, ANIA0001583[1-9].fits f...
3. WHERE CAN I REDUCE THE DATA?
You should go into the directory at /home/anir/aqua...
_________________________________________________
>cd /home/anir/aqua/aria
_________________________________________________
This is the main directory where you can reduce them.
Besides, you can find some other directories, such ...
All files in this directory are necessary to reduce...
4. COPY THE REDUCTION SCRIPT TO THE MAIN DIRECTORY
The scripts are in "scripts/scripts_nir" directory ...
Then, copy them to the main directory as any name y...
#I STRONGLY recommend you to use the latest version !
_________________________________________________
>pwd
/home/anir/aqua/aria
>cp -r scripts/scripts_nir/script_20120507 sample
_________________________________________________
5. MAKE IRAF DIRECTORY
It is necessary for the tool to make Iraf directory...
_________________________________________________
>cd sample
>pwd
/home/anir/aqua/aria/sample
>mkiraf
-- creating a new uparm directory
Terminal types: xgterm,xterm,gterm,vt640,vt100,etc.
Enter terminal type: xterm
A new LOGIN.CL file has been created in the current dire...
You may wish to review and edit this file to change the ...
_________________________________________________
6. OPTIMIZE SOME PARAMETERS IN THE SETTING FILE
You should optimize the parameters for the data you ...
If you edit it on the remote terminal, you have to u...
_________________________________________________
>pwd
/home/anir/aqua/aria/sample
>emacs script.process -nw
or
>vi script.process
_________________________________________________
If you are not familiar with using "emacs" or "vi", ...
_________________________________________________
>pwd
/home/anir/aqua/aria/sample
>gedit script.process &
_________________________________________________
However, you have to keep in your mind that "gedit"c...
You SHOULD NOT use it when you have your observation...
What you should do to optimize the setting file is f...
_________________________________________________
-1- Change "NSTART" paramter at line 11
You should write here the start number of FI...
-2- Change "SFLAT" paramter at line 17
You can choose ../skyflat/sflat_ks.fits in t...
-3- Change "OUTPUT" paramter at line 23
You can set output fits file name
-4- Change "SCFILTER" paramter at line 24
If you want to estimate the zero magnitude a...
-5- Change "BAND" paramter at line 48
This parameter is not so essential because i...
-6- Change "FILTER" paramter at line 85
If you want to estimate the zero magnitude a...
_________________________________________________
Of course, there are many other parameters you can e...
However, it is not necessary to edit them just to re...
If you complete optimizing it, you can finish setting.
7. RUN THE SCRIPT!
Now, you have finished what you should do before you...
To run this script using xterminal is better because...
zero magnitude and so on with "gv" command which is ...
_________________________________________________
>pwd
/home/anir/aqua/aria/sample
>xterm &
#on the xterm terminal
xterm>./script.process
_________________________________________________
However, you can run it on the terminal where you ar...
#I recommend you to take a log whenever you run this...
_________________________________________________
>pwd
/home/anir/aqua/aria/sample
>./script.process > 20131117a.log
_________________________________________________
8. CONGRATULATIONS!!
Finally, you can get the reduced data as "ic5179_ks....
You must be happy now!!
Should you have any questions, feel free to ask me!
Have a nice and happy observation and data reduction lif...
Ken Tateuchi
End:
**ANIR Reduction Pipeline for the NIR Channel (ARIA) [#a1...
***What you need to run the pipeline; [#t49c2ab9]
-IRAF
If you don't have IRAF yet, please install it as follows ...
Download IRAF packages from http://iraf.noao.edu/
#Newly create directory /iraf/iraf
sudo mkdir /iraf
cd /iraf
sudo mkdir /iraf
#Extract the downloaded IRAF packages
cd /iraf/iraf
sudo tar -xvf iraf***.tar
#Install
cd unix/hlib
sudo ./insatll.csh
-IRAF extern packages (stsdas, mscred)
Install external packages
cd /iraf/iraf/extern
sudo ./configure
sudo make stsdas
cd /iraf/iraf/extern/stsdas
sudo ln -s bin.macosx bin.macintel (in case of Mac)
cd /iraf/iraf/extern/tables
sudo ln -s bin.macosx bin.macintel (in case of Mac)
sudo make mscred
-OPM Software
For pattern matching, this pipeline uses OPM software ava...
[[Noriyuki Matsunaga's web>http://translate.google.co.jp/...
-SuperMongo(Graph plot)~
If you want to plot some result, please install Super Mon...
available at [[Robert Lupton's web>http://www.astro.prin...
***How to Install [#b773935f]
-Extract the following zip file at whatever directory you...
Aria_development_ver : [[dev.zip>http://www.ioa.s.u-tokyo...
In the following example, a directory /home/anir/aqua is ...
-Install OPM~
cd /home/anir/aqua/sample
wget http://stella.astron.s.u-tokyo.ac.jp/nmatsuna/Japan...
tar zxvf OPM1_4.tgz
cd OPM
make
make cfitsio (if you have CFITSIO installed)
-Install Super Mongo~
***Cookbook for ARIA (Development Version) [#p4e084eb]
#Note that this ARIA code (development version ) can onl...
1. DIRECTORY STRUCTURE OF AQUA IN UNI3
_________________________________________________
aqua --- rawdata (put some raw ANIR data you want t...
|
--- aria --- 2mass
--- scripts
--- skyflat
--- template
_________________________________________________
#You can reduce the ANIR data with AQUA at /home/a...
#IP address of uni3 is 192.168.36.41
2. WHERE CAN I PUT SOME ANIR DATA?
You, probably have got some raw FITS data beginning...
What you should do for the first step to reduce the...
#for the beginner training, ANIA0001583[1-9].fits f...
3. WHERE CAN I REDUCE THE DATA?
You should go into the directory at /home/anir/aqua...
_________________________________________________
>cd /home/anir/aqua/aria
_________________________________________________
This is the main directory where you can reduce them.
Besides, you can find some other directories, such ...
All files in this directory are necessary to reduce...
4. COPY THE REDUCTION SCRIPT TO THE MAIN DIRECTORY
The scripts are in "scripts/scripts_nir" directory ...
Then, copy them to the main directory as any name y...
#I STRONGLY recommend you to use the latest version !
_________________________________________________
>pwd
/home/anir/aqua/aria
>cp -r scripts/scripts_nir/script_20120507 sample
_________________________________________________
5. MAKE IRAF DIRECTORY
It is necessary for the tool to make Iraf directory...
_________________________________________________
>cd sample
>pwd
/home/anir/aqua/aria/sample
>mkiraf
-- creating a new uparm directory
Terminal types: xgterm,xterm,gterm,vt640,vt100,etc.
Enter terminal type: xterm
A new LOGIN.CL file has been created in the current dire...
You may wish to review and edit this file to change the ...
_________________________________________________
6. OPTIMIZE SOME PARAMETERS IN THE SETTING FILE
You should optimize the parameters for the data you ...
If you edit it on the remote terminal, you have to u...
_________________________________________________
>pwd
/home/anir/aqua/aria/sample
>emacs script.process -nw
or
>vi script.process
_________________________________________________
If you are not familiar with using "emacs" or "vi", ...
_________________________________________________
>pwd
/home/anir/aqua/aria/sample
>gedit script.process &
_________________________________________________
However, you have to keep in your mind that "gedit"c...
You SHOULD NOT use it when you have your observation...
What you should do to optimize the setting file is f...
_________________________________________________
-1- Change "NSTART" paramter at line 11
You should write here the start number of FI...
-2- Change "SFLAT" paramter at line 17
You can choose ../skyflat/sflat_ks.fits in t...
-3- Change "OUTPUT" paramter at line 23
You can set output fits file name
-4- Change "SCFILTER" paramter at line 24
If you want to estimate the zero magnitude a...
-5- Change "BAND" paramter at line 48
This parameter is not so essential because i...
-6- Change "FILTER" paramter at line 85
If you want to estimate the zero magnitude a...
_________________________________________________
Of course, there are many other parameters you can e...
However, it is not necessary to edit them just to re...
If you complete optimizing it, you can finish setting.
7. RUN THE SCRIPT!
Now, you have finished what you should do before you...
To run this script using xterminal is better because...
zero magnitude and so on with "gv" command which is ...
_________________________________________________
>pwd
/home/anir/aqua/aria/sample
>xterm &
#on the xterm terminal
xterm>./script.process
_________________________________________________
However, you can run it on the terminal where you ar...
#I recommend you to take a log whenever you run this...
_________________________________________________
>pwd
/home/anir/aqua/aria/sample
>./script.process > 20131117a.log
_________________________________________________
8. CONGRATULATIONS!!
Finally, you can get the reduced data as "ic5179_ks....
You must be happy now!!
Should you have any questions, feel free to ask me!
Have a nice and happy observation and data reduction lif...
Ken Tateuchi
Page: