[[Commissioning and Science Verification]]

* Optical Pointing > Optical telescope setup [#s233c6b6]

:What's this page?|
This page describes the way to setup the optical telescope for optical pointing measurements.

:Revision history|
-- 2006 - ASTE_OPT_FOCUS.pdf  K. Nakanishi
-- 2010-04-02 - modified by N. UKITA
-- 2010-09-03 - moved to Pukiwiki by B. Hatsukade
-- 2013-08-05 - modified by N. UKITA
-- 2014-04-21 - updated by BH and YW
-- 2016-08-01 - modified for Linux COSMOS3 by Kamazaki,T.

:Table of contents|
#contents

----

** Optical telescope setup [#d583c525]
-- ASTE光学望遠鏡hardwareの立ち上げ手順~
&ref(ASTE_OPT_Get-Started_v2.pdf);

** Focus adjustment [#i94a61b1]
-- ASTE光学望遠鏡ピント合わせ手順 (obsolete)~
&ref(ASTE_OPT_Focus.pdf);

*** Display an optical image to check focusing [#i566572f]
+ Login to aste-ms1 with asteXX
 > ssh -Y asteXX@aste-ms1
-- Don't forget to add '-Y' option to forward windows.
+ Initialize the video capture board (at the start of measurements once a day)
 asteXX@aste-ms1 > ssh astecntl@aste-c1c /cosmos3/naoj/sbinSol/optinit
 device:    [ ok ]
 mmap:      [ ok ]
 init bcr:  [ ok ]
 init:      [ ok ]
 initLUT:   [ ok ]
 clear FB:  [ ok ]
 AVME-338B -> successfully initialized    <--- confirm this message
+ Display (a part of) an optical image
 asteXX@aste-ms1 > ~/analysis/bin/optshot r  1  32
                                         (1)(2)(3)
 (1) Frame color to be dumped (normally, 'r'=Red is used)
 (2) Number of frames to be taken (set '-1' for infinite loop)
 (3) Image size [pixel] (set '224' for a full-size image)
 This will display an image whose center is (256, 256) pixels and size is 32 pixels.
-- ポインティングがあった状態で、星像は概ね(X,Y)=(256,256)近傍に来る
-- Pixel scale is 1.27 arcsec/pixel.
#ref(t195.jpg)

*** Adjust the focus stage position [#uee50a2f]
+ Run a observation table just tracking a star
 group: asteXX
 project: track
 observation table: Select a table close to the current LST
 e.g.) t132-36B.start for LST13h
        (1)(2)(3)
 (1) R.A.
 (2) Dec.
 (3) Brightness (A>B>C>D)
     夜間Aの星はサチる可能性がある
+ Login to aste-c1c
+ Connect the stage controller
 asteXX@aste-c1c> tip serial2

"connected" と表示されたら接続成功

※ 接続に失敗した場合
- aste-c1cをrebootした直後は接続に失敗する場合が多いので、以下の対症療法を試してみてください(ほぼ百発百中)
+ rootになる
+ admintoolを立ち上げる
+ 「シリアルポートの設定」を選び
+ term/2を選び、(ダイアログが開く)
+ 設定変更をしないでOKボタンを押す (あるいは、適当に設定をいじるが最後は元に戻しOKボタン)


-all ports busyが出た場合は tip のprocessをkillすることでも大丈夫
==>要確認

3. コマンドを逐次入力
- プロンプトは出ない
- コマンドを入力する時は、リターンを必ず''&color(red){2回};''入力
- 切断するときには ''~.'' を入力

- ステータス表示 
 Q:1  
 
 1, +12345, ACK1, ACK2, ACK3

-- +12345: ステージの現在位置
-- ACK1 X:コマンドエラー / K:コマンド受付(正常)
-- ACK2 K:正常停止 / P:+リミットで停止 / M:-リミットで停止
-- ACK3 B:Busy / R:Ready

- 原点
 H:1             ←原点設定(レンズ側の端を原点とする)
 
 G               ←移動開始(10秒くらい待つ)
 
 Q:1             ←ステイタス確認
 
 1,         0,K,K,R       と表示されれば正常終了

- 移動 (※&color(red){画像が更新されるまでに時間がかかるので注意};)
 M:1+P20100      ←20100パルス分移動準備
 
 G               ←移動開始
 
 Q:1             ←ステイタス確認
 
 1,         +20100,K,K,R  と表示されれば設定正常終了
ピントが大きくズレていると判断されたときには、数百パルス程度ステージを前後に動かしてみる。
 M:1+P500        ←+500パルス移動
 
 G               ←移動開始
 
 Q:1             ←ステータス確認

- おまけ
 L:1             ←ステージを緊急停止させる


*** History of focus positions [#o03b34c6]
|2003-04|RIGHT: 13700(参考値)|外気温0+-5°Cでの最適値(赤フィルターなし)|
|2009-07|RIGHT: 20100近辺|[[Observing Log/2009-07-29]]|
|2010-04|RIGHT: 21100|[[Observing Log/2010-04-12]]|
|2010-09|RIGHT: 0|[[Observing Log/2010-09-09]]|
|2011-04|RIGHT: -500|[[Observing Log/2011-04-14]]|
|2012-06|RIGHT: 20700|[[Observing Log/2012-06-15]]|
|2014-04|RIGHT: 20500|[[Observing Log/2014-04-21]]|

*** Troubleshooting [#sa8736eb]

-- ステータスが正常終了にならない。コマンドエラー。
 Q:1
 
 1,         0,X,K,R

コマンド入力の際、ステータスを読んでからパルス値を入力する前にリターンを2回押していない可能性がある。

-- ステータスが表示されない。
 Q:1
 
  
一度 ''"G"'' (移動コマンド) を打って、再度ステータス表示コマンドを打つと、表示される場合がある。

-- aste-c1cがダウン。ログインできない。
コンソールログインを試す ([[トラブルシュート>Troubleshoot#ie8b81de]])

-- 通信エラー
cosmos3の再起動@制御用計算機 (asteobs@aste-1s)
 asteobs@aste-1s% /opt/sudo/bin/sudo ${COSMOS3}/aste/nro/sbin/cos3_cntl restart all

-- 光学望遠鏡がハングアップ [#ze514cd9]
- キャビン(前室)に行って、ステージの電源を入れ直す (ラックの裏側のケーブルがやたらととぐろを巻いている中に、「光望遠鏡タップ」とか書いたケーブルがあり、100Vに差してあるはず。これを抜き差しすればよい)
- 電源を切ってもステージ位置は保存されます (ただしQ:1を送ったときに帰ってくる位置値は0になる。すなわち、原点(位置値=0)は、電源が入った時点でステージがあった位置に設定されてしまう←仕様)

-- Focus位置をいくら振っても視野内の星が捉えられない [#d51b9ffb]
- Az El Offsetに大きな値が入っていないか確認
- 値が入っていた場合、ddAz, ddElに適当な値を入れて(dAz, dEl) = (0.0, 0.0)にする。

** Procedures to generate observation tables for OPT [#oa10a24e]

*** 1. Run MATLAB on the MTK server (aste-ms1) [#md95aa9c]
- Login to the MTK server (aste-ms1)
 > ssh asteXX@aste-ms1
- Run MATLAB
 asteXX@aste-ms1: cd ~/optpon/matlab
 asteXX@aste-ms1: /usr/local/matlab/R2009a/bin/matlab &
-- All matlab scripts are under asteXX@aste-ms1:/home/asteXX/optpon/matlab.
-- Hereafter, matlab scripts should be run on a command window of MATLAB.

''You can skip STEP 2-4, if there is no update in the Tycho, FK5 and Hipparcus catalogues.''

----

*** 2. Create a list of bright stars in a MATLAB format [#s105102c]
- Run ''step_00_19_6p3mag.m'' in ''11_StarCatalogue/Tycho''
 >> cd 11_StarCatalogue/Tycho
 >> pwd
 /home/asteXX/optpon/matlab/11_StarCatalogue/Tycho
 >> step_00_19_6p3mag
 The following file will be created.
   ./tyc2dat6p3.mat
-- Stars brighter than 6.3 mag. will be listed with the information about position and proper motion from Tycho catalogue.

*** 3. Merge additional information to the list [#k93a3d42]
- Run ''step01_tyc2fk5hip_v3.m'' in ''11_StarCatalogue''.
 >> cd ..
 >> pwd
 /home/asteXX/optpon/matlab/11_StarCatalogue
 >> step01_tyc2fk5hip_v3
 The following files will be created.
   ./ASTEnew/tyc2fk5_6p3_Sp_v2.mat (MATLAB file)
   ./ASTEnew/tyc2fk5_6p3_Sp_v2.txt (Text file)
   ./ASTEnew/tyc2fk5_6p3_Sp_v2.png (PNG file)

-- Information about magnitude, spectral type, multiplicity and so on will be added to the list from FK5 and Hipparcus catalogues.

*** 4. Select appropriate stars [#r2178621]
- Run ''step02_tyc2fk5SpSepv4.m'' in ''11_StarCatalogue''.
 >> pwd
 /home/asteXX/optpon/matlab/11_StarCatalogue
 >> step02_tyc2fk5SpSepv4
 The following files will be created.
   ./ASTEnew/tyc2fk5_R4p5_Sp_sep_v4.mat (MATLAB file)
   ./ASTEnew/tyc2fk5_R4p5_Sp_sep_v4.txt (Text file)
   ./ASTEnew/tyc2fk5_R4p5_Sp_sep_v4.png (PNG file)
-- 概要: 2重星でなく、Rmagが4.5等級より明るい星を選び出し、かつ、星が密に分布するのを回避するために、間引く。測定実績から以下のように分類。
--- (0.00<Rmag<=2.30)-->'A'; 
--- (2.30<Rmag<=3.20)-->'B'; 
--- (3.20<Rmag<=3.95)-->'C'; 
--- (3.95<Rmag<=4.50)-->'D';  

-- 夜間はBとCクラスを用いる(Aはサチる)。昼間にはAとBクラスを用いる。Dクラスでも測定可能。683個の星が選び出される。

----

*** 5. Generate observation tables [#uc098f2e]

*** 5a. Observation tables for optical pointing [#v4b69b01]
- Run ''step10_allsky_v5.m'' in ''11_StarCatalogue''
 >> pwd
 /home/asteXX/optpon/matlab/11_StarCatalogue
 >> step10_allsky_v5
 48 tables (L00h00m.start - L23h30m.start) will be generated under ./startfiles5.
- Copy the generated tables to asteXX/optpon/ of the ASTE site
 asteXX@aste-ms1: cd ~/optpon/matlab/11_StarCatalogue/startfiles5
 asteXX@aste-ms1: scp -p *.start aste-1s:/cosmos3/aste/obstable/asteXX/optpon/obstable
- &color(red){''GROUP=astepon'' shall be replaced with ''GROUP=asteXX''. Please wait...};

*** 5b. Observation tables for 「いつでもOPT用」 [#w31a2e7b]
- Run ''step12_iOPT_single_v4.m'' in ''11_StarCatalogue''
 >> pwd
 /home/asteXX/optpon/matlab/11_StarCatalogue
 >> step12_iOPT_single_v4
- Copy the generated tables to asteXX/optpon/ of the ASTE site
 asteXX@aste-ms1: cd ~/matlab/11_StarCatalogue/iOPT
 asteXX@aste-ms1: scp -p *.start aste-1s:/cosmos3/aste/obstable/asteXX/optpon/obstable
- &color(red){''GROUP=astepon'' shall be replaced with ''GROUP=asteXX''. Please wait...};

*** 5c. %%Observation tables for batch execution%% [#re4a20a5]
- %%Run ''step14_allsky_batch_v4.m'' in ''11_StarCatalogue''%%
 >> pwd
 /home/asteXX/optpon/matlab/11_StarCatalogue
 >> step14_allsky_batch_v4
-- これらの指示書(例:i235+06C.start)をbatch形式で使う測定指示書(昼間、太陽近辺の星をskipする)。
-- ローカルマシンにコピーして使う。
- &color(red){''GROUP=astepon'' shall be replaced with ''GROUP=asteXX''. Please wait...};

*** 5d. ひたすら12時間追尾する指示書 [#j67f964a]
- Run ''step16_Long_single_v4.m'' in ''11_StarCatalogue''
 >> pwd
 /home/asteXX/optpon/matlab/11_StarCatalogue
 >> step16_Long_single_v4
- Copy the generated tables to asteXX/opttrk/ of the ASTE site
 asteXX@aste-ms1: cd ~/matlab/11_StarCatalogue/Long
 asteXX@aste-ms1: scp -p *.start aste-1s:/cosmos3/aste/obstable/asteXX/opttrk/obstable/
- &color(red){''GROUP=astepon'' shall be replaced with ''GROUP=asteXX''. Please wait...};


Front page   Edit Diff History Attach Copy Rename Reload   New Page list Search Recent changes   Help   RSS of recent changes