| | 1 | [wiki:Sebastian.Jester Sebastian's] notes on reducing LBCred data with IPP. Following [wiki:SimtestEAM SimtestEAM]. |
| | 2 | |
| | 3 | = Preliminaries: setup = |
| | 4 | |
| | 5 | First I need to create the admin databases: |
| | 6 | |
| | 7 | dbadmin project aida77 ipp jester_LBCred |
| | 8 | pxadmin -create -dbname jester_LBCred |
| | 9 | |
| | 10 | and define some paths in site.config: |
| | 11 | |
| | 12 | DATAPATH METADATA |
| | 13 | LBCin STR path://LBC/sci/ |
| | 14 | LBCrun STR path://LBC/ippreduce/ |
| | 15 | LBCflat STR path://LBC/calib/flats/ |
| | 16 | LBCbias STR path://LBC/calib/bias/ |
| | 17 | LBCdark STR path://LBC/calib/dark/ |
| | 18 | END |
| | 19 | |
| | 20 | # List of tessellations, and their DVO CATDIR |
| | 21 | TESSELLATIONS METADATA |
| | 22 | BOOTESCELLS STR path://LBC/skycells/ |
| | 23 | END |
| | 24 | |
| | 25 | # dvo databases used for output |
| | 26 | DVO.CATDIRS METADATA |
| | 27 | BOOTESCAT STR path://LBC/catdir |
| | 28 | END |
| | 29 | |
| | 30 | Then I set up some skycells |
| | 31 | |
| | 32 | skycells 6 -scale 0.2 -fix-ns -D CATDIR /disk1/jester/data/LBT/z7qso/sci/skycells |
| | 33 | |
| | 34 | -fix-ns aligns the skycells with declination - otherwise we have a discontinuity (accidentally we're in a special part of the tessellation). |
| | 35 | |
| | 36 | Somehow, I can't plot up the images in dvo - this happens: |
| | 37 | |
| | 38 | dvo: imbox -c red ../lbcr.20080212.105410.fits |
| | 39 | error getting all elements for coordinate mode NONE |
| | 40 | |
| | 41 | = Injection = |
| | 42 | |
| | 43 | == For detrending == |
| | 44 | |
| | 45 | Inject the data, giving skycell and dvodb names (and maybe also a reduction class?) |
| | 46 | |
| | 47 | ipp_serial_inject.pl --telescope LBT-DX --camera LBC-RED \ |
| | 48 | --workdir path://LBCrun --dbname jester_LBCred \ |
| | 49 | --reduction PPIMAGE_OBDFR --tess_id BOOTESCELLS --dvodb BOOTESCAT |
| | 50 | lbcr.*.fits |
| | 51 | |
| | 52 | Actually, telescope and camera (or instrument) are worked out by the database from format.config, so just given here for the user's reference. |
| | 53 | |
| | 54 | Calibration images are injected in the same way, the injection again works out each file's type from format.config: |
| | 55 | |
| | 56 | ipp_serial_inject.pl --telescope LBT --camera LBCRED \ |
| | 57 | --workdir path://LBCrun --dbname jester_LBCred \ |
| | 58 | ../calib/*/lbcr.*.fits |
| | 59 | |
| | 60 | Start up pantasks and register the data: |
| | 61 | module pantasks.pro |
| | 62 | module.tasks |
| | 63 | controller host add aida77 # up to 3 times, but check the load on the machine first! |
| | 64 | add.database jester_LBCred # or fan or kschmidt_lbc_stack |
| | 65 | run |
| | 66 | |
| | 67 | To see what's going on, there are several commands: |
| | 68 | status # Show status of various queue tasks |
| | 69 | status -taskstats # show how long the various tasks took on average |
| | 70 | controller status # Show how many jobs are queued and how many CPUs are working or not |
| | 71 | |
| | 72 | If something doesn't work, repeat the register_imfile.pl call that's failing in an xterm but with extra diagnostic output, e.g.: |
| | 73 | |
| | 74 | register_imfile.pl --exp_id 89 --tmp_class_id fpa --tmp_exp_name lbcr.20080211.103621 --uri path://LBC/sci/lbcr.20080211.103621.fits --dbname jester_LBCred --verbose --no-update |
| | 75 | |
| | 76 | Then you can 'revert' the file that's stuck: |
| | 77 | |
| | 78 | regtool -revertprocessedimfile -dbname fan |
| | 79 | |
| | 80 | == For mosaicing == |
| | 81 | |
| | 82 | === Setup === |
| | 83 | |
| | 84 | Directories in set up in /IPP/site.config |
| | 85 | # in DATAPATH METADATA |
| | 86 | LBTPROC STR /disk2/jester/data/LBT/z7qso/IPPmosaic/ |
| | 87 | # in TESSELLATIONS METADATA |
| | 88 | LBTCELLS STR path://LBTPROC/skycells |
| | 89 | # in DVO.CATDIRS METADATA |
| | 90 | LBTPROCCATDIR STR path://LBTPROC/catdir |
| | 91 | |
| | 92 | Skycell creation |
| | 93 | |
| | 94 | skycells 6 -scale 0.2 -fix-ns -D CATDIR `ipp_datapath.pl path://LBTCELLS/skycells` |
| | 95 | |
| | 96 | === Running === |
| | 97 | |
| | 98 | In an xterm: |
| | 99 | |
| | 100 | ipp_serial_inject.pl --telescope LBT-DX --camera LBCREDPROC --reduction PROCESSED \ |
| | 101 | --workdir path://LBTPROC --dbname kschmidt_lbc_stack --tess_id LBTCELLS \ |
| | 102 | --dvodb LBTPROCCATDIR ~fan/data/bootes12.fits |
| | 103 | |
| | 104 | Then start pantasks as above, but you only want the stages starting with register, none of the detrend ones. I typically say |
| | 105 | all.off |
| | 106 | register.on |
| | 107 | chip.on |
| | 108 | camera.on |
| | 109 | and if that works, |
| | 110 | fake.on |
| | 111 | warp.on |
| | 112 | stack.on |
| | 113 | diff.on # if you're into difference images |
| | 114 | |
| | 115 | = Start a detrend run = |
| | 116 | |
| | 117 | ppImage.config has a section with constraints that are applied to figure out which detrend files to use for which science image. [wiki:SimtestEAM SimtestEAM] mentions a pantasks module mkdetrend.pro which is in ipp-2.5 but only in the source tree at ipp-2.5/ippTasks/mkdetrend.pro - it doesn't get copied into the share/pantasks/modules/ directory for some reason. |
| | 118 | |
| | 119 | mysql detRun table defines date ranges for individual detrend runs |