IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42961


Ignore:
Timestamp:
Feb 19, 2026, 11:21:16 AM (3 months ago)
Author:
eugene
Message:

updating skycoverage tools

Location:
tags/ipp-ps1-20210708/tools/eam/skycoverage
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-ps1-20210708/tools/eam/skycoverage/coverage.cron

    r41436 r42961  
    11# crontab file for skycoverage maps
    2 0 8 * * * /data/ipp100.0/eugene/skycoverage.20201110/coverage.sh >> /data/ipp100.0/eugene/skycoverage.20201110/coverage.log 2>&1
     20 8 * * * /home/panstarrs/ipp/skycoverage/coverage.sh >> /home/panstarrs/ipp/skycoverage/coverage.log 2>&1
  • tags/ipp-ps1-20210708/tools/eam/skycoverage/coverage.mana.sh

    r41436 r42961  
    22
    33$DEG_RAD = 180.0 / $M_PI
    4 $TARGET = ippops4:/export/ippops4.0/www/localhost/htdocs/ippdata/skycoverage.20201110
    5 $LOCALDIR = /data/ipp100.0/eugene/skycoverage.20201110
     4$TARGET = nippops4:/export/ippops4.0/www/localhost/htdocs/ippdata/skycoverage.20201110
     5$LOCALDIR = /data/ipp175.0/ipp/skycoverage
     6
     7$cameras = gpc1 gpc2
     8$filters = g r i z y w
     9
    610$SAVE_OUTPUT = 1
    7 
    8 $filters = g r i z y w
     11$KAPA = kapa -noX -nan 0xffff 0xffff 0xffff
     12$STYLE = dark
     13
     14if (0)
     15  # test mode
     16  $cameras = gpc1
     17  $filters = g
     18  $SAVE_OUTPUT = 0
     19  $KAPA = kapa -nan 0xffff 0xffff 0xffff
     20  # $STYLE = light
     21end
     22
     23$color_cgrid:light = black
     24$color_cgrid:dark = white
     25
     26$color_dr1:light = grey30
     27$color_dr1:dark = grey70
     28
     29$color_label:light = black
     30$color_label:dark = white
    931
    1032# used by dbextract.data
     
    113135  box -ticks 0000 -labels 0000;
    114136  if ("$side" == "east")
    115     cgrid -ra-by-hour -c white -label-color white -labels -label-ra 290 -label-dec -40
     137    cgrid -ra-by-hour -c $color_cgrid:$STYLE -label-color $color_label:$STYLE -labels -label-ra 90 -label-dec -40
    116138  end
    117139  if ("$side" == "west")
    118     cgrid -ra-by-hour -c white -label-color white -labels -label-ra  90 -label-dec -40
     140    cgrid -ra-by-hour -c $color_cgrid:$STYLE -label-color $color_label:$STYLE -labels -label-ra  90 -label-dec -40
    119141  end
    120142  if ("$side" == "pole")
    121     cgrid -ra-by-hour -c white
     143    cgrid -ra-by-hour -c $color_cgrid:$STYLE
    122144  end
    123145
     
    129151  section colorbar -imtool none
    130152
    131   box -lw 2 -ticks 1000 -labels 1000 +xpad 0.0 -tickpad 0.5 -xpad 3.0 -labelpadx 2.5 -ypad 5.5 +ypad 5.5
     153  box -lw 2 -ticks 1000 -labels 1000 +xpad 0.0 -tickpad 0.1 -xpad 3.0 -labelpadx 2.5 -ypad 5.5 +ypad 5.5
    132154  label -x "Exposure Time (sec)"
    133155end
     
    187209  lim $vzero {$vzero + $vrange} 0 1
    188210
    189   png -name $LOCALDIR/$camera/$filt/$filt.$camera.$side.png
    190   keyword im.$side.$camera.$filt RADECSYS -w IRCS
    191   wd im.$side.$camera.$filt $LOCALDIR/$camera/$filt/$filt.$camera.$side.fits -bitpix -32 -bzero 0 -bscale 1.0
     211  if ($SAVE_OUTPUT)
     212    png -name $LOCALDIR/$camera/$filt/$filt.$camera.$side.png
     213#   keyword im.$side.$camera.$filt RADECSYS -w IRCS
     214    keyword im.$side.$camera.$filt RADECSYS -w ICRS
     215    wd im.$side.$camera.$filt $LOCALDIR/$camera/$filt/$filt.$camera.$side.fits -bitpix -32 -bzero 0 -bscale 1.0
     216  end
    192217end
    193218
     
    227252  # 10.8, 78.6 t
    228253
    229  $RCOLOR = -c white
     254 $RCOLOR = -c $color_cgrid:$STYLE
    230255
    231256 # northern cap:
    232257 if (1)
    233    # celestial: DEC = 0, 206.2 - 254
    234    create x 206.2 254 0.1
    235    set y = zero(x)
     258   ## # celestial: DEC = 0, 206.2 - 254
     259   ## create x 206.2 254 0.1
     260   ## set y = zero(x)
     261   ## cplot -pt 0 -sz 0.4 $RCOLOR x y
     262   
     263   # celestial: DEC = +15, 183.2 - 262
     264   create x 183.2 262 0.1
     265   set y = zero(x) + 15
    236266   cplot -pt 0 -sz 0.4 $RCOLOR x y
    237267   
     
    241271   cplot -pt 0 -sz 0.4 $RCOLOR x y
    242272   
    243    # ecliptic: Beta = 10, Lambda = 113.2 - 204.6
    244    create x 113.2 204.6 0.1
     273   # ecliptic: Beta = 10, Lambda = 113.2 - 119.5
     274   create x 113.2 119.5 0.1
    245275   set y = zero(x) + 10
     276   csystem E C x y
     277   cplot -pt 0 -sz 0.4 $RCOLOR x y
     278   
     279   # ecliptic: Beta = 15, Lambda = 136.9 - 176.8
     280   create x 136.9 176.8 0.1
     281   set y = zero(x) + 15
    246282   csystem E C x y
    247283   cplot -pt 0 -sz 0.4 $RCOLOR x y
     
    258294   cplot -pt 0 -sz 0.4 $RCOLOR x y
    259295   
    260    # galactic : b = 25, l = 19.0 - 118.3
    261    create x 19.0 118.3 0.1
     296   # galactic : b = 25, l = 37.6 - 118.3
     297   create x 37.6 118.3 0.1
    262298   set y = zero(x) + 25
    263299   csystem G C x y
     
    319355  cplot -pt 0 -sz 0.4 $RCOLOR el eb
    320356 end
     357
     358 $RCOLOR = -c $color_dr1:$STYLE
     359 DR1.boundary
     360end
     361
     362macro DR1.boundary
     363 if (1)
     364  if (0)
     365    data EuclidDR1_polygon.csv
     366    read -skip 1 -csv Re 1 De 2
     367    cplot -pt 0 -sz 0.5 -c green Re De
     368  end
     369
     370  # north boundary:
     371  # corner 105, 80 -> 94.7, 56.9 in ecliptic
     372  create Rn 105.2 285 0.1
     373  set Dn = zero(Rn) + 80
     374  cplot $RCOLOR -pt box -sz 0.4 Rn Dn
     375
     376  # west boundary
     377  create elat 50 56.9 0.1
     378  set elon = zero(elat) + 95
     379  csystem E C elon elat
     380  cplot $RCOLOR -pt box -sz 0.4 elon elat
     381
     382  # south boundary west
     383  create elon 95 150 0.1
     384  set elat = zero(elon) + 50
     385  csystem E C elon elat
     386  cplot $RCOLOR -pt box -sz 0.4 elon elat
     387 
     388  # south boundary east
     389  create elat 50 80 0.1
     390  set elon = zero(elat) + 150
     391  csystem E C elon elat
     392  cplot $RCOLOR -pt box -sz 0.4 elon elat
     393
     394  # NEP circle
     395  create elon3 150 296 0.1
     396  set elat3 = zero(elon3) + 80
     397  csystem E C elon3 elat3
     398  cplot $RCOLOR elon3 elat3 -pt box -sz 0.4
     399
     400  # galactic plane boundary east
     401  create glon 86.5 103 0.1
     402  set glat = zero(glon) + 25
     403  csystem G C glon glat
     404  cplot $RCOLOR -pt box -sz 0.4 glon glat
     405
     406  # east boundary
     407  create Dn 72 80 0.1
     408  set Rn = zero(Dn) + 285
     409  csystem E C elon elat
     410  cplot $RCOLOR -pt box -sz 0.4 Rn Dn
     411
     412  # DR2 south boundary
     413  create elon 100.3 189.5 0.1
     414  set elat = zero(elon) + 37
     415  csystem E C elon elat
     416  cplot $RCOLOR -pt box -sz 0.4 elon elat
     417 end
    321418end
    322419
    323420macro get.3pi.data
    324   $KAPA = kapa -noX -nan 0xffff 0xffff 0xffff
    325 
    326421  $d = `date +%Y%m%d`
    327422  $subdir = `date +%Y%m`
     
    331426
    332427  # extract all of the data from the database:
    333   foreach camera gpc1 gpc2
     428  foreach camera $cameras
    334429    dbextract.data init $camera
    335430    foreach filter $filters
     
    342437  end 
    343438
     439  list camlist -split $cameras
     440  $Ncameras = $camlist:n
     441  $pngcameras = $cameras
     442  if ($Ncameras > 1)
     443    $pngcameras = $cameras both
     444  end
     445
    344446  foreach side east west pole
    345447    foreach filter $filters
    346       foreach camera gpc1 gpc2
     448      foreach camera $cameras
    347449        make.density.map $side $filter $camera
    348450      end
    349       set im.$side.both.$filter = im.$side.gpc1.$filter + im.$side.gpc2.$filter
    350       foreach camera gpc1 gpc2 both
     451      if ($Ncameras > 1)
     452        set im.$side.both.$filter = im.$side.gpc1.$filter + im.$side.gpc2.$filter
     453      endif
     454      foreach camera $pngcameras
    351455        make.density.png $side $filter $camera
    352         exec /bin/cp -f $LOCALDIR/$camera/$filter/$filter.$camera.$side.png $LOCALDIR/archive/$subdir/sky.$d/
     456        if ($SAVE_OUTPUT)
     457          exec /bin/cp -f $LOCALDIR/$camera/$filter/$filter.$camera.$side.png $LOCALDIR/archive/$subdir/sky.$d/
     458        end
    353459      end
    354460    end
    355461  end
    356462
    357   # note: ssh to target
    358   exec rsync --exclude=trash --exclude=coverage.mana.sh --exclude=coverage.sh --exclude=coverage.log -auv $LOCALDIR/ $TARGET/
     463  if ($SAVE_OUTPUT)
     464    # note: ssh to target
     465    exec rsync --exclude=trash --exclude=coverage.mana.sh --exclude=coverage.sh --exclude=coverage.log -auv $LOCALDIR/ $TARGET/
     466  end
    359467end
    360468
  • tags/ipp-ps1-20210708/tools/eam/skycoverage/coverage.sh

    r41436 r42961  
    33# this script needs to set up the paths so it can run under crontab
    44
    5 setenv PATH /home/kiawe/eugene/src/psconfig/ipp-gentoo.lin64/bin:.:/usr/local/bin:/usr/ucb:/bin:/usr/bin::/home/kiawe/eugene/src/bin/shell:/home/kiawe/eugene/src/bin/lin64
    6 setenv LIBRARY_PATH /home/kiawe/eugene/src/psconfig/ipp-gentoo.lin64/lib:/home/kiawe/eugene/src/psconfig/ipp-gentoo.lin64/lib/mysql:/usr/local/lib:/usr/lib:/usr/X11R6/lib:/usr/lib64:/usr/X11R6/lib64:
    7 setenv LD_LIBRARY_PATH /home/kiawe/eugene/src/psconfig/ipp-gentoo.lin64/lib:/home/kiawe/eugene/src/psconfig/ipp-gentoo.lin64/lib/mysql:/usr/local/lib:/usr/lib:/usr/X11R6/lib:/usr/lib64:/usr/X11R6/lib64:
     5set psconfig = /home/panstarrs/ipp/psconfig/ipp-20220906-ubuntu.lin64
    86
    9 /data/ipp100.0/eugene/skycoverage.20201110/coverage.mana.sh
     7setenv PATH $psconfig/bin:.:/usr/local/bin:/usr/ucb:/bin:/usr/bin
     8setenv    LIBRARY_PATH $psconfig/lib:$psconfig/lib/mysql:/usr/local/lib:/usr/lib:/usr/X11R6/lib:/usr/lib64:/usr/X11R6/lib64:
     9setenv LD_LIBRARY_PATH $LIBRARY_PATH
     10
     11# setenv LD_LIBRARY_PATH $psconfig/lib:$psconfig/lib/mysql:/usr/local/lib:/usr/lib:/usr/X11R6/lib:/usr/lib64:/usr/X11R6/lib64:
     12
     13/home/panstarrs/ipp/skycoverage/coverage.mana.sh
Note: See TracChangeset for help on using the changeset viewer.