IRAFコマンドメモ

imedit

nstar

imreplace

ある条件をつけてpixelの値をおきかえる
imreplace image value= upper= lower=[]

listpixels

pixelのカウントと座標を書き出す

>listpixels image

mkimage

ある特定の値のイメージを作る
512x512のカウント0のイメージを作る

>mkimage image.fits make 0 2 "512 512"

mkobjects

人工的なpsf imageを作る

>cat starlist.lst
256 256 5
>mkobjects image.fits obj=starlist.lst

wcsctran

imageのwcs情報を使って座標系を変換する
例えばphysicalからwcsに変換する場合

>wcsctran inputlist outputlist image.fits physical world

その際 formats="%12.2H %12.1h" を加えると出力フォーマットをdegreesじゃなくsexagestimalにする

wcscopy

レファレンスfitsファイルからwcs情報をコピーして埋め込む

wcscopy input.fits reference.fits

ccmap, ccsetwcs

手動でimage上のpixel座標とra,decのリスとからwcsのデータベースを生成し、imageに埋め込む
まず、image(image1)上の星とカタログの天体を同定し、x,y,ra,decの形式のリスト(coords)を作る。
それを使って、

ccmap coords coords.db result=STDOUT image=image1 xcol=3 ycol=4 lngcol=1 latcol=2

としてデータベース(coords.db)を生成。その後これをimageへ埋め込む。

ccsetwcs image1 coords.db image1

http://www.ioa.s.u-tokyo.ac.jp/~soyabu/WCS/setwcs.htm