Vous êtes ici : Accueil / TECHNICAL PAGES / Maintenance / Maintenance Optique et Réalignement / Procedure to realign the EULER telescope

Procedure to realign the EULER telescope

Order of operations

Note: To update the pointing model file you need to be a member of the develop user group. The user bruno has this privilege.

System setup:

  • environment and tools setup
  • reset the pointing model at zero

 With ECAM :

  • Quick pointing model
  • Verification of the optical quality of the telescope (only if the mirror moved)
  • Focus
  • Localization of the rotation center of the CCD
  • Astrometric fit to find the orientation of the CCD
  • Long pointing model

    With Coralie :

    • Localize the fiber hole position
    • A quick pointing model
    • Improve the focus
    • Long pointing model
    • Efficiency measurement with the calibration lamp

     

    Environment setup

    • login on glslogin2 (otherwise the astrometry utility will not work)
    • create a new directory and move into it; the scripts create a lot of additional files
    • clone the following repository in your home to get all the tools (one needs to have the right to do so and can ask bruno.chazelas__at__unige.ch):

    https://gitlab.unige.ch/euler/scripts/alignmentutils

    or copy the current version of the required scripts from (they will be listed below)

    ~chazelas/alignmentutils/

    • load the bash shell by typing simply
    bash

    (that is not the default telescope bash)

    • define the environment to include the python that one can find in the ~weber directory
    export PATH="/home/weber/anaconda3/bin:$PATH"

    you can do this automatically in you .bashrc, that will allow you to use them easily when you run bash.

    Once the file saved or the setup done, one can type bash in a terminal and check that the python version is correct:

    Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 18:10:19) 
    [GCC 7.2.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.

    Reset the pointing model

    on glsdocker01 or glslogin1 or 2, with the user euler the config files are in the folder below; i1 is CORALIE, 2 is ECAM and 3 KalAO.

    /opt/soft/config
    autofocus_model_m3_i1.yaml
    autofocus_model_m3_i2.yaml
    autofocus_model_m3_i3.yaml
    meteo_model.yaml
    pointing_model_m3_i1.yaml
    pointing_model_m3_i2.yaml
    pointing_model_m3_i3.yaml

    Quick pointing Model ECAM

    Take a picture anywhere with

    • template of type CAM_PRG
    • exptime of 30s
    • filter 00
    • any coordinates that are within the telescope limits

    process the image with the image with astrometry.net (cf astrometrie-image) :

    astrometrie-image.py one /gls/data/raw/2021-11-29/ECAM.2021-11-30T07\:42\:33.000.fits

    this will deliver a result of the type

     

    [Ignore this until understood]

     

    change the pointing model you need to convert the values in red to degrees (/3600) and subtract them from the current ones listed at

    /opt/soft/config/axis_offset.yaml

    where the file is of the type shown below. Add a line with the date and the values of azimuth and elvation with the identation as exemplified.

    # Offsets for all 3 axes
    2023-11-01:
      AZI: 128.8927
      ELE: -124.1884
      ROT: 1
    2023-11-21:
      AZI: -159
      ELE: 109
      ROT: 0
    2023-11-22:
      AZI: 128.8485    
      ELE: -124.1581
      ROT: 0
    2023-11-23:
      AZI: 128.9368
      ELE: -124.2186
      ROT: 0
    2023-11-24:
      AZI: 128.9135
      ELE: -124.1843
      ROT: 0
    2023-11-25:
      AZI: 128.8916
      ELE: -124.2234
      ROT: 0
    2023-11-26:
      AZI: 128.8921
      ELE: -124.2590
      ROT: 0

     Attention cela n'a pas été encore implémenté!!

    Localisation of the reference pixel of ECAM

     

    One needs to set the CCD mode to UL

    To localize the reference pixel of ECAM  one points a bright star and then one makes several exposures rotating the derotator on the same image a the CCD is read only at the end.

    First use the catalogue /home/chazelas/alignmentutils/Etoiles_brillantes.rdb pick a star, send it to the EDP, modify the OB to be in the UL mode and launch the OB. Once done follow the following steps. beware of saturation, the exposure time is 2 second per stop, thus one proably needs to use a U filter not to saturate.

    • One uses the procedure rotation_champ in the IMAGER prompter.
     call rotation_champ

    The resulting fits image "image_rotat.fits" is located in the directory where xrunall was launched

    Then with rtd one measures the position of the star using the pick object function. One puts the x and y in colum in a text file and then feeds it to the centre.py routine that provides the result. The coordinates are shown on the figure.

    ~weber/anaconda3/bin/python /home/chazelas/alignmentutils/centre.py filename

    One then need to update the following configuration file :

    $THOME/config/ccd/applic/ecam/server.cfg

     

    Update the autofocus

     

    The auto focus law is build using the focus exposure logs. One needs to perform focus exposures on a long period, to gather data on as much temperatures as possible (typically over 1-2 weeks).

     Data is located there :

    /gls/data/services/DATA/log/focal/ecam.log ou gu_coralie.log

     The interesting value in these files is m2zpab that give the position of the best focus. For the x axis one need to use the temperature combination (tth-1.2+ttb)/2

    The slope of the model is well defined at 0.032 and there is no reason to change it. One need to fit the value for the 0 intercept.

    Then one can update the following config file:

    $THOME/config/t120/applic/coralie/server.cfg ou (ecam/server.cfg)

    The term to modify is:

    fo.f0

     

    Orientation of the derotator to have the image aligned the North [probably obsolete]

    One need to take an image and solve it for astrometry. One need to measure the angle between the north and the vertical axis of the image.

    Then one need to update the following file

    $THOME/prc/util/global_te.prc

    Beware it is dealt with RCS, one need to do the following :

    co -l global_te.prc

    Once modification finished one uses

    ci - u global_te.prc

    With the conventions of astrometry.net a negative angle (East of North) is a negative increment on the variable :

    te.rot.off

     

    How to block the Derotator[obsolete]

    One need to be able to block the derotator in order to do the optical alignement (improve the optical quality)

    one can use the t120 command in the T120 prompter (cf manuel inter t120)

    axis /state=0 /rot

    One needs to manually set the desired orientation. using the "raquette software". At zero one has the camera that is aligned with azimuth and elevation axis. the spider arms are at 45°.

     


     

    Coralie Pointing model [New procedure as of 2024]

    To aquire the data now we need to run a special scripts that controls directly the telescope and the guiding camera. It produced a set of images that are then used to compute the pointing model.

    The script has to be run as the euler user. it is located in /home/chazelas/alignmentutils/

    cd /home/chazelas/alignmentutils/
    python coralie_pointing_model_acquisition.py /path/to/directory/for/analysis 12

    Beware the directory in question needs to be writable by the euler user.

    mkdir directorynameforimages
    chmod 777 directorynameforimages

     

    Then to analyse the data one uses the script alignment utils : /home/chazelas/alignmentutils/compute_corlaie_pointing_model.py in the directory where the images are. (Beware the model computation is not working but it produces images that show where the star is and it is a good start)

     

    It will produce serveeral outputs : a file corpoint.dat that contains the pointing error data pre-corrected from the pointing model taken at the moment the images where taken.

    the corpoint_nomod.dat is the pointing error without the correction of the pointing model.

     

    Tpoint can be used as usual then to compute the pointing model using one or the other of these files.

     

    Once parameters are determined it is possible to change the yaml file. Update are applied at the next pointing.

    To edit the yaml file one need to be the user euler

     

    Localisation of CORALIE Fiber hole [obsolete] :

    Use the uif window menu and use :

    Quick look guidage 1[s]

    This produces a file last_ql.fits that contains the image of the focal plane pierced mirror illuminated.

    it is easy to spot the whole and measure its position using RTD pick object function.

    Once the coordinates are determined then on needs to update the following file:

    $THOME/config/ccd/applic/gu_bigeye/server.cfg

     

    ECAM pointing model

     

    Pointing model configuration files[ignore this for now I am not sure what it means]

    You may want to change the pointing model values obtained from tpoint or simply reset all values at zero to do a pointing model from scratch. In the Euler-J architecture the files are located at

    opt/soft/config/pointing_model_m3_i2.yaml 

    and to add a set of parameters you should add a date to create a new section and then add the new parameters below. This is also true if you want to reset the model temporarily: simply add the date of today with all the parameters at zero.

    After writting the file one should go to

    /opt/soft/src/telescope-control-backend/scripts/

    and execute

    ./ETCS_axis_offset.sh

    New method (Working october 2024):

     

    Set all the pointing model term to 0

    2024-12-08:
      AN: +0.00
      AW: +0.00
      IA: -0.00
      IE: +0.00
      CA: +0.00
      TF: -0.00
      PZZ3: +0.00
      PZZ5: -0.00
      HZCZ4: +0.00
      NPAE: +0.00

    At the end of the pointing model file. One need to have the date at the current date (not sure but does not cost).

    This should be run when the sky transparency is clear so that the stars are detected and there is no pointing restriction due to wind so that the whole sky is available. The conditions on seeing are very lax.

    At the operational level, one needs

    • to be observing in ECAM mode (Xrunall);
    • EDP should be in "Mode Automatique".
    • the last exposure has to be a standard ECAM exposure (fetch star with RA~LST from e.g. ../../chazelas/Etoiles_brillantes.rdb);
    • there should be no OBs after this last executed one;
    • click on the last exposure for selecting it.

    Under these conditions, select the last exposure on the EDP and do not to touch it until the alignment sequence is finished.

    We will use a python script that will send OBs to the EDP to produce a regular grid on the sky. In a terminal type

    as the user remote

    To run the script :

    ~weber/anaconda3/bin/python /home/chazelas/alignmentutils/ecam_pointing_model_acquisition.py 20 -o PM1

    the number is the number of pointings and PM1 is a text to give a prefix to the object name in the OB that are generated, It makes it easier then to get the right data at the successive step, change it whe doing several successive pointing models.

    It is important while this is running not to touch or select things in the EDP. The script should send images sequentially to the EDP.

    If a window "ATTENTION: Arrêt de l'observation" is displayed, do not click it; ignore it for the whole acquisition.

    Once the images aquired:

    It is then necessary to make the astrometry analysis of the resulting images.

    To do so use the script astrometrie-image.py on glslogin2 (found at https://gitlab.unige.ch/euler/scripts/alignmentutils). This script has several options :

    usage: astrometrie-image.py [-h] [-k KEYWORD] [-v KEYWORD_VALUE] [-l] [-o] [-u]  {watch,batch,one} path

    Do the astrometry of fits images inside a given directory, either live or not

    positional arguments:
    {watch,batch,one}     watch to watch a directory, batch to loop through
    existing images, one to process only one image
    path                  directory to deal with

    optional arguments:
    -h, --help            show this help message and exit
    -k KEYWORD, --keyword KEYWORD
    to filter by fits keyword
    -v KEYWORD_VALUE, --keyword-value KEYWORD_VALUE
    keyword value to select
    -l, --lazy            non redo astrometry for images already solved
    -o, --output          output a rdb file with error in elevation and azimuth
    -u, --unique          avoid reperforming astromerty on previously solved
    object (based on the OBJECT keyword)

    Create a directory where the images will be copied and new output will be generated (e.g. ~/pointage_camera/YYYY-MM-DD/). Move to there and launch the commands:

    bash
    ~weber/anaconda3/bin/python /home/chazelas/alignmentutils/astrometrie-image.py batch -k OBJECT -v PM1 /gls/data/raw/YYYY-MM-DD/

    Where YYYY-MM-DD is the day of the observations, and PM1 the prefix you used during data acquisition. Afterwards, in the very same directory copy the compute_pointing_model.py, modifiy the coordinate of the reference pixel

     

    ~weber/anaconda3/bin/python compute_pointing_model.py

    and the new parameters will be shown at the end of the script.

    They can be added in the yaml config file. To edit the yaml file one need to be the user euler.

    Once the yaml file is changed at next pointing new model is applied.

     

     

     


     

    000O000