IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 43104


Ignore:
Timestamp:
Sep 22, 2026, 3:26:34 PM (41 hours ago)
Author:
eugene
Message:

check the site.config for TESS_ID and DVODB before creating simulated data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-pstamp-20260421/ippTasks/simtest.pro

    r43085 r43104  
    7979      # the labels "wait" and "proc" are special names used in automate.pro
    8080   
     81      # confirm the TESS, DVO, and refcat.catdir entries in site.config match the local names
     82      $myTess   = `ipp_site_lookup.pl --tess_id TESS`
     83      $myRefcat = `ipp_site_lookup.pl --psastro_db SYNTH.SIMTEST`
     84
     85      pwd -var myCWD
     86      strsub $myCWD /export /data -var myCWD
     87
     88      if ("$myTess" != "$myCWD/TESS")
     89        echo "site.config does not list the correct TESS entry: $myTess vs $myCWD/TESS"
     90        break
     91      end
     92      if ("$myRefcat" != "$myCWD/refcat.catdir")
     93        echo "site.config does not list the correct TESS entry: $myTess vs $myCWD/TESS"
     94        break
     95      end
     96
    8197      # make a reference database using refcat.fits
    8298      # EAM XXX : 2026.06.29 : this command has a hard-wired RA,DEC region which
    8399      # needs to match the object images generated by the SIMTEST_SEQUENCE file
    84100      mkref refcat 10
     101
     102      ## XXX this will need to be optional as well
     103      ## we could use the book to find OBSTYPE = OBJECT, get CENTER.RA, CENTER.DEC
     104      ## or else we could have ppSimSequence generate an appropriate skycells call
     105      file TESS/Images.dat found
     106      if ($found == 0)
     107        # this command is approriate only to the dither pattern and camera define in simtest.basic.config
     108        exec skycells -mode local -scale 0.2 -center $CENTER_RA $CENTER_DEC -size 0.3 0.3 -nx 3 -ny 3 -D CATDIR TESS
     109      end
    85110
    86111      local mySeq
    … …  
    106131
    107132      exec source simtest.mkimages
    108 
    109       ## XXX this will need to be optional as well
    110       ## we could use the book to find OBSTYPE = OBJECT, get CENTER.RA, CENTER.DEC
    111       ## or else we could have ppSimSequence generate an appropriate skycells call
    112       file TESS/Images.dat found
    113       if ($found == 0)
    114         # this command is approriate only to the dither pattern and camera define in simtest.basic.config
    115         exec skycells -mode local -scale 0.2 -center $CENTER_RA $CENTER_DEC -size 0.3 0.3 -nx 3 -ny 3 -D CATDIR TESS
    116       end
    117133    end
    118134
    … …  
    132148    module detrend.reject.pro
    133149    module detrend.correct.pro
    134 #   module flatcorr.pro
    135150    module chip.pro
    136151    module camera.pro
    137 #   module addstar.pro
    138152    module fake.pro
    139153    module warp.pro
    140154    module diff.pro
    141155    module stack.pro
    142   else
    143     module.tasks
    144156  end
    145157
    … …  
    160172    register.revert.off
    161173    detrend.revert.off
    162   # flatcorr.revert.off
    163174    chip.revert.off
    164175    camera.revert.off
    165   # addstar.revert.off
    166176    fake.revert.off
    167177    warp.revert.off
Note: See TracChangeset for help on using the changeset viewer.