IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Initial Version and Version 1 of astrometry


Ignore:
Timestamp:
May 22, 2009, 4:45:28 PM (17 years ago)
Author:
beaumont
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • astrometry

    v1 v1  
     1= Astrometry with the IPP =
     2
     3The following page reviews my process of extracting astrometry information from Megacam images
     4
     5
     6----
     7=== Image Injection ===
     8
     9
     10{{{
     11ipp_serial_inject.pl --telescope CFHT --camera MEGACAM --workdir /data/ipp035.0/beaumont/reduce.sa_98/ --label sa.98 -- dbname beaumont
     12}}}
     13
     14
     15=== Pantasks Macro File ===
     16I use the following macro file (named input) to control injection, camera, and chip reduction with Pantasks.
     17
     18{{{
     19macro setup
     20
     21  $MODULES:0 = /home/kiawe/eugene/src/panstarrs/ipp/ippTasks
     22   module pantasks.pro
     23
     24  # $LABEL = prpics.20081216
     25  # $POLLLIMIT = 100
     26
     27  add.database beaumont
     28  load.hosts
     29end
     30
     31macro load.hosts
     32  controller host add ipp023 -threads 4
     33  <etc etc>
     34end
     35
     36macro check.books
     37  book list
     38  echo ""
     39end
     40
     41macro register
     42 module register.pro
     43end
     44
     45macro registerOn
     46 register.on
     47end
     48
     49macro registerOff
     50  register.off
     51end
     52
     53macro detrend
     54 module detrend.process.pro
     55 module detrend.stack.pro
     56 module detrend.norm.pro
     57 module detrend.resid.pro
     58 module detrend.reject.pro
     59end
     60
     61macro chip
     62 module chip.pro
     63end
     64
     65macro chipOn
     66 chip.on
     67end
     68
     69macro chipOff
     70 chip.off
     71end
     72
     73macro camera
     74 module camera.pro
     75end
     76
     77macro cameraOn
     78 camera.on
     79end
     80
     81macro cameraOff
     82 camera.off
     83end
     84}}}
     85
     86Then, in pantasks:
     87{{{
     88(ipp035:~/data) beaumont% pantasks
     89inputno file /home/panstarrs/beaumont/.pantasksrc
     90
     91Welcome to pantasks - parallel task scheduler
     92
     93
     94pantasks: input input
     95pantasks: setup
     96starting controller connection
     97Connected
     98HostID: 1
     99HostID: 2
     100HostID: 3
     101HostID: 4
     102HostID: 5
     103HostID: 6
     104HostID: 7
     105HostID: 8
     106HostID: 9
     107HostID: 10
     108HostID: 11
     109HostID: 12
     110HostID: 13
     111HostID: 14
     112pantasks: register
     113pantasks: chip
     114pantasks: camera
     115pantasks: run
     116pantasks: add.label sa.98
     117}}}
     118
     119=== DVO Creation ===
     120The above commands produce the .smf files which can be injected into DVO. Adding images to a DVO database proceeds as follows:
     121
     122{{{
     123<cd into working directory>
     124set x = `ls */*.smf` # selects all smf files
     125foreach a ($x)
     126  addstar -D CATDIR catdir.98 -D CAMERA megacam -update $a
     127end
     128}}}
     129
     130Running addstar with updates adds new entries to the end of the DVO database. At the end of this process, running addstar with -resort re-arranges the database so that measurements of common objects appear consecutively
     131
     132{{{
     133addstar -D CATDIR catdir.98 -D CAMERA megacam -resort
     134}}}
     135
     136Next, I ran relphot to populate the secfilt DVO table. Note that this probably does not produce very good photometry measurements; this is just a workaround so that relastro can access the information it needs from the secfilt tables.
     137
     138{{{
     139relphot -D CATDIR catdir.98 -D CAMERA megacam -averages -update -D GRID_TOOFEW 10
     140}}}
     141
     142=== Relastro ===
     143
     144Relastro has several different modes. I iterated between two of them. Update-objects updates values in the AVERAGE DVO tables by taking the weighted mean of each object's measurements. Update-chips compares, on a chip-by-chip basis, the measured stellar positions to the average positions. It uses this information to update the astrometric solution (in essence, it resolves for the polynomial to map focal plane coordinates to sky coordinates):
     145
     146
     147{{{
     148relastro -D CATDIR catdir.98 -D CAMERA megacam -region 0 360 -2 2
     149    -D RELASTRO_SIGMA_LIM .1 -update-objects +photflags -update
     150relastro -D CATDIR catdir.98 -D CAMERA megacam -region 0 360 -2 2
     151    -D RELASTRO_SIGMA_LIM .05 -update-chips +photflags -update -instmag -12 -8
     152}}}
     153
     154
     155I found that repeating these commands 2-3 times converged on a stable solution.
     156
     157Further discussion on configuration file options, command line options, etc coming soon.