Changeset 42961
- Timestamp:
- Feb 19, 2026, 11:21:16 AM (3 months ago)
- Location:
- tags/ipp-ps1-20210708/tools/eam/skycoverage
- Files:
-
- 2 added
- 3 edited
-
README (added)
-
coverage.cron (modified) (1 diff)
-
coverage.css (added)
-
coverage.mana.sh (modified) (10 diffs)
-
coverage.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-ps1-20210708/tools/eam/skycoverage/coverage.cron
r41436 r42961 1 1 # 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>&12 0 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 2 2 3 3 $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 6 10 $SAVE_OUTPUT = 1 7 8 $filters = g r i z y w 11 $KAPA = kapa -noX -nan 0xffff 0xffff 0xffff 12 $STYLE = dark 13 14 if (0) 15 # test mode 16 $cameras = gpc1 17 $filters = g 18 $SAVE_OUTPUT = 0 19 $KAPA = kapa -nan 0xffff 0xffff 0xffff 20 # $STYLE = light 21 end 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 9 31 10 32 # used by dbextract.data … … 113 135 box -ticks 0000 -labels 0000; 114 136 if ("$side" == "east") 115 cgrid -ra-by-hour -c white -label-color white -labels -label-ra 290 -label-dec -40137 cgrid -ra-by-hour -c $color_cgrid:$STYLE -label-color $color_label:$STYLE -labels -label-ra 90 -label-dec -40 116 138 end 117 139 if ("$side" == "west") 118 cgrid -ra-by-hour -c white -label-color white-labels -label-ra 90 -label-dec -40140 cgrid -ra-by-hour -c $color_cgrid:$STYLE -label-color $color_label:$STYLE -labels -label-ra 90 -label-dec -40 119 141 end 120 142 if ("$side" == "pole") 121 cgrid -ra-by-hour -c white143 cgrid -ra-by-hour -c $color_cgrid:$STYLE 122 144 end 123 145 … … 129 151 section colorbar -imtool none 130 152 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.5153 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 132 154 label -x "Exposure Time (sec)" 133 155 end … … 187 209 lim $vzero {$vzero + $vrange} 0 1 188 210 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 192 217 end 193 218 … … 227 252 # 10.8, 78.6 t 228 253 229 $RCOLOR = -c white254 $RCOLOR = -c $color_cgrid:$STYLE 230 255 231 256 # northern cap: 232 257 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 236 266 cplot -pt 0 -sz 0.4 $RCOLOR x y 237 267 … … 241 271 cplot -pt 0 -sz 0.4 $RCOLOR x y 242 272 243 # ecliptic: Beta = 10, Lambda = 113.2 - 204.6244 create x 113.2 204.60.1273 # ecliptic: Beta = 10, Lambda = 113.2 - 119.5 274 create x 113.2 119.5 0.1 245 275 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 246 282 csystem E C x y 247 283 cplot -pt 0 -sz 0.4 $RCOLOR x y … … 258 294 cplot -pt 0 -sz 0.4 $RCOLOR x y 259 295 260 # galactic : b = 25, l = 19.0- 118.3261 create x 19.0118.3 0.1296 # galactic : b = 25, l = 37.6 - 118.3 297 create x 37.6 118.3 0.1 262 298 set y = zero(x) + 25 263 299 csystem G C x y … … 319 355 cplot -pt 0 -sz 0.4 $RCOLOR el eb 320 356 end 357 358 $RCOLOR = -c $color_dr1:$STYLE 359 DR1.boundary 360 end 361 362 macro 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 321 418 end 322 419 323 420 macro get.3pi.data 324 $KAPA = kapa -noX -nan 0xffff 0xffff 0xffff325 326 421 $d = `date +%Y%m%d` 327 422 $subdir = `date +%Y%m` … … 331 426 332 427 # extract all of the data from the database: 333 foreach camera gpc1 gpc2428 foreach camera $cameras 334 429 dbextract.data init $camera 335 430 foreach filter $filters … … 342 437 end 343 438 439 list camlist -split $cameras 440 $Ncameras = $camlist:n 441 $pngcameras = $cameras 442 if ($Ncameras > 1) 443 $pngcameras = $cameras both 444 end 445 344 446 foreach side east west pole 345 447 foreach filter $filters 346 foreach camera gpc1 gpc2448 foreach camera $cameras 347 449 make.density.map $side $filter $camera 348 450 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 351 455 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 353 459 end 354 460 end 355 461 end 356 462 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 359 467 end 360 468 -
tags/ipp-ps1-20210708/tools/eam/skycoverage/coverage.sh
r41436 r42961 3 3 # this script needs to set up the paths so it can run under crontab 4 4 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: 5 set psconfig = /home/panstarrs/ipp/psconfig/ipp-20220906-ubuntu.lin64 8 6 9 /data/ipp100.0/eugene/skycoverage.20201110/coverage.mana.sh 7 setenv PATH $psconfig/bin:.:/usr/local/bin:/usr/ucb:/bin:/usr/bin 8 setenv LIBRARY_PATH $psconfig/lib:$psconfig/lib/mysql:/usr/local/lib:/usr/lib:/usr/X11R6/lib:/usr/lib64:/usr/X11R6/lib64: 9 setenv 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.
