Tutorials for Techniques in Astronomical Observation, Seoul National University.
You can find tutorials at SNU TAO Tutorials page.
-
Tutorial 0: Preprocessing (under construction, written by Hyeonguk Bahk)
-
Tutorial 1: PSF photometry (written by Hyeonguk Bahk)
-
Tutorial 2: Running SExtractor (written by Jeong Hwan Lee, edited by Jae-Hong Jeong and Hyeonguk Bahk)
-
Tutorial 3: Surface Photometry Using GALFIT (written by Hyeonguk Bahk)
-
Tutorial 4: Spectroscopic data reduction (under construction, written by Hyeonguk Bahk)
-
Tutorial A1: Spectroscopic Data Reduction for SNUO 1m (Fall 2022, written by Hyeonguk Bahk, originally prepared by Jooyeon Geem); This will be updated using the FOCAS data, which will be data needed for the final project.
-
Tutorial A2: Optical Spectroscopy Using
specutils
(written by Jae-Hong Jeong)
This section is superseded by the Preparation page. This section may be outdated, so please refer to the page for the most recent information.
cd <PathToGitClone>
git clone https://github.com/hbahk/TAOTutorials.git
-
Useful links
SNU_AOclass/00-3_Prepare_Python.md at master · ysBach/SNU_AOclass · GitHub
SNU_AOclass/00-1_Softwares.md at master · ysBach/SNU_AOclass · GitHub
- Create a new conda environment (optional)
conda create -n tao python numpy scipy pandas jupyter
conda activate tao
- Install packages via conda
conda install -c conda-forge astropy sep tqdm
conda install -c conda-forge photutils
conda install -c astropy ccdproc astroscrappy specutils
- Install package via Github repositories
cd <PathToGitClone>
git clone https://github.com/jrjohansson/version_information.git && git clone https://github.com/astropy/astroquery.git && git clone https://github.com/ejeschke/ginga.git && git clone https://github.com/quatrope/astroalign
cd version_information && pip install -e . && cd ..
cd astroquery && git pull && pip install -e . && cd ..
cd ginga && git pull && pip install -e . && cd ..
cd astroalign && git pull && pip install -e . && cd ..
- Set the python path of your own kernels/editors with this environments
cf) For Spyder users, install spyder-kernels
for your version of Spyder following the table in this link Common Illnesses — Spyder 5 documentation. In my case, the version of my Spyder is 5.2.2, so I had to install spyder-kernels=2.2.1
.
conda install spyder‑kernels=2.2.1
-
For Linux (or Window) users, please refer to the official documentation: Installing the software.
For Ubuntu users, for example, simple command will do:
sudo apt-get install sextractor
-
For Mac users, using Homebrew is easiest way, I suppose.
brew install sextractor
If you don't have Homebrew intalled yet, then give that a try!
-
You can check whether SExtractor is installed or not with the command of:
sex
Or if you installed with the
apt-get
(and other possible distributors) then trysextractor
or
source-extractor
-
For Linux (or Window) users, please refer to the official documentation: Installing the software. For Ubuntu users, for example, executing simple command will install this software:
sudo apt-get install psfex
-
For Mac users (Tested with Apple M1 Pro Ventura 13.2.1),
cd <PathToGitClone> git clone https://github.com/astromatic/psfex.git
Check whether required packages are installed:
autoconf
,automake
,libtool
.brew info autoconf brew info automake brew info libtool
If you are missing one of them, then install with the command
brew install <MissingPackage>
.Then
cd psfex ./autogen.sh
Check the result and find the pathes of
lib
andinclude
directory of theOpenBLAS
package. You can find their location with command ofbrew info openblas
, if you installedOpenBLAS
with Homebrew, which should be the case when you installed SExtractor with Homebrew. Similarly, findlib
andinclude
forFFTW
, and then try./configure --disable-silent-rules --enable-openblas --with-openblas-libdir="/opt/homebrew/opt/openblas/lib" --with-openblas-incdir="/opt/homebrew/opt/openblas/include" --with-fftw-libdir="/opt/homebrew/opt/fftw/lib" --with-fftw-incdir="/opt/homebrew/opt/fftw/include"
Here you should put the
libdir
andincdir
with your own pathes.Finally,
sudo make install
and now you are all set.
Installing GALFIT is an easy task. You can download the compiled execution file from the official website: GALFIT Homepage. Select your operating system and download the file. Then, you can run the program by putting the file in your path, or directly run the program in the directory where the file is located.