sinfo.oca 25.5 KB
Newer Older
1 2 3 4 5 6 7 8 9
if DPR.CATG == "ACQUISITION" then
{
    DO.CATG = "ACQUISITION";
}
if DPR.CATG == "TEST" then
{
    DO.CATG = "TEST";
}

Ole Streicher's avatar
Ole Streicher committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195
if DPR.CATG like "%TEST%" and DPR.TYPE like "%DARK%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "DARK_tec_Focus";
}
if DPR.CATG like "%TEST%" and DPR.TYPE like "%DARK%" and DPR.TECH like "%IMAGE%" then
{
  DO.CATG = "DARK_cal_Darks";
}
if DPR.CATG like "%TECHNICAL%" and DPR.TYPE like "%DARK,PSF-CALIBRATOR%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "DARK_PSF";
}
if DPR.CATG like "%TECHNICAL%" and DPR.TYPE like "%VOLTAGES,FLAT%" and DPR.TECH like "%MEASURED,LAMP,ZONAL%" then
{
  DO.CATG = "FLAT_VOLTAGES_gen_tec_FlatDM";
}
if DPR.CATG like "%CALIB%" and DPR.TYPE like "%MATRIX,INTERACTION,PRIM%" and DPR.TECH like "%MEASURED,LAMP,ZONAL%" then
{
  DO.CATG = "MATRIX_INTERACTION_PRIM";
}
if DPR.CATG like "%TEST%" and DPR.TYPE like "%FIBRE%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "FIBRE_tec_ClGravityPM";
}
if DPR.CATG like "%CALIB%" and DPR.TYPE like "%FIBRE%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "FIBRE_gen_tec_QuickHealthCheck";
}
if DPR.CATG like "%TECHNICAL%" and DPR.TYPE like "%FIBRE,PSF-CALIBRATOR%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "FIBRE_PSF";
}
if DPR.CATG like "%CALIB%" and DPR.TYPE like "%DISTORTION,FIBRE,NS%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "FIBRE_NS";
}
if DPR.CATG like "%TECHNICAL%" and DPR.TYPE like "%FIBRE,NS%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "FIBRE_tec_NorthSouth";
}
if DPR.CATG like "%TECHNICAL%" and DPR.TYPE like "%FIBRE,EW%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "FIBRE_EW";
}
if DPR.CATG like "%CALIB%" and DPR.TYPE like "%DISTORTION,WAVE,NS%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "WAVE_NS";
}
if DPR.CATG like "%CALIB%" and DPR.TYPE like "%DISTORTION,FLAT,NS%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "FLAT_NS";
}
if DPR.CATG like "%TECHNICAL%" and DPR.TYPE like "%DISTORTION,FLAT,NS%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "FLAT_NS_ifs_tec_NorthSouth";
}
if DPR.CATG like "%TECHNICAL%" and DPR.TYPE like "%DISTORTION,WAVE,NS%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "WAVE_NS_ifs_tec_NorthSouth";
}
if DPR.CATG like "%TEST%" and DPR.TYPE like "%WAVE,LAMP%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "WAVE_cal_Arcs";
}
if DPR.CATG like "%TEST%" and DPR.TYPE like "%LAMP,WAVE%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "WAVE_tec_Focus";
}
if DPR.CATG like "%CALIB%" and DPR.TYPE like "%LINEARITY%" and DPR.TYPE like "%LAMP%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "LINEARITY_LAMP";
}
if DPR.CATG like "%CALIB%" and 
   DPR.TYPE like "%LINEARITY,LAMP,DETCHAR%" and 
   DPR.TECH like "%IFU%" and
   INS1.LAMP5.ST == T then
{
  DO.CATG = "LINEARITY_LAMP";
}
if DPR.CATG like "%CALIB%" and 
   DPR.TYPE like "%LINEARITY,LAMP,DETCHAR%" and 
   DPR.TECH like "%IFU%" and
   INS1.LAMP5.ST == F then
{
  DO.CATG = "LINEARITY_LAMP";
}

if DPR.CATG like "%CALIB%" and DPR.TYPE like "%DARK%" and ( DPR.TECH like "%IFU%" or DPR.TECH like "%IMAGE%" ) then
{
  DO.CATG = "DARK";
}
if DPR.CATG like "%TEST%" and DPR.TYPE like "%FLAT,LAMP%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "FLAT_cal_LampFlats";
}
if DPR.CATG like "%CALIB%" and DPR.TYPE like "%FLAT%" and DPR.TYPE like "%LAMP%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "FLAT_LAMP";
}
if DPR.CATG like "%CALIB%" and DPR.TYPE like "%FLAT%" and DPR.TYPE like "%LAMP%" and DPR.TECH like "%IFU,DITHER%" then
{
  DO.CATG = "FLAT_LAMP_DITHER";
}
if DPR.CATG like "%CALIB%" and DPR.TYPE like "%WAVE%" and DPR.TYPE like "%LAMP%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "WAVE_LAMP";
}
if DPR.CATG like "%CALIB%" and DPR.TYPE like "%WAVE%" and DPR.TYPE like "%LAMP%" and DPR.TECH like "%IFU,DITHER%" then
{
  DO.CATG = "WAVE_LAMP_DITHER";
}
if DPR.CATG like "%CALIB%" and DPR.TYPE like "%PUPIL,LAMP%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "PUPIL_LAMP";
}
if DPR.CATG like "%CALIB%" and DPR.TYPE like "%PSF-CALIBRATOR%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "PSF_CALIBRATOR";
}
if DPR.CATG like "%CALIB%" and DPR.TYPE like "%PSF-CALIBRATOR%" and DPR.TECH like "%IFU%" and DPR.TECH like "%DITHER%" then
{
  DO.CATG = "PSF_CALIBRATOR_DITHER";
}
if DPR.CATG like "%CALIB%" and DPR.TYPE like "%SKY,PSF-CALIBRATOR%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "SKY_PSF_CALIBRATOR";
}
if DPR.CATG like "%CALIB%" and DPR.TYPE like "%SKY,PSF-CALIBRATOR%" and DPR.TECH like "%IFU%" and DPR.TECH like "%DITHER%" then
{
  DO.CATG = "SKY_PSF_CALIBRATOR_DITHER";
}
if DPR.CATG like "%CALIB%" and DPR.TYPE like "%STD%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "STD";
}
if DPR.CATG like "%CALIB%" and DPR.TYPE like "%SKY,STD%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "SKY_STD";
}
if DPR.CATG like "%CALIB%" and DPR.TYPE like "%SKY,SKY,STD%" and DPR.TECH like "%IFU%" then
{
  DO.CATG = "SKY_SKY_STD";
}
if DPR.TECH like "%IMAGE,PRE%" and DPR.TYPE like "%OBJECT%" and DPR.CATG like "%SCIENCE%" then
{
  DO.CATG = "IMAGE_PRE_OBJECT";
}
if DPR.TECH like "%IMAGE,PRE%" and DPR.TYPE like "%SKY%" and DPR.CATG like "%SCIENCE%" then
{
  DO.CATG = "IMAGE_PRE_SKY";
}
if DPR.TECH like "%IFU,NODDING%" and DPR.TYPE like "%OBJECT%" and DPR.CATG like "%TEST%" then
{
  DO.CATG = "OBJECT_ifs_tec_GenericOffset";
}
if DPR.TECH like "%IFU,JITTER%" and DPR.TYPE like "%OBJECT%" and DPR.CATG like "%SCIENCE%" then
{
  DO.CATG = "OBJECT_JITTER";
}
if DPR.TECH like "%IFU,NODDING%" and DPR.TYPE like "%OBJECT%" and DPR.CATG like "%SCIENCE%" then
{
  DO.CATG = "OBJECT_NODDING";
}
if DPR.TECH like "%IFU,NODDING%" and DPR.TECH like "%DITHER%" and DPR.TYPE like "%OBJECT%" and DPR.CATG like "%SCIENCE%" then
{
  DO.CATG = "OBJECT_NODDING_DITHER";
}
if DPR.TECH like "%IFU,NODDING%" and DPR.TYPE like "%SKY%" and DPR.CATG like "%SCIENCE%" then
{
  DO.CATG = "SKY_NODDING";
}
if DPR.TECH like "%IFU,NODDING%" and DPR.TYPE like "%SKY%" and DPR.CATG like "%TEST%" then
{
  DO.CATG = "SKY_tec_GenericOffset";
}
if DPR.TECH like "%IFU,JITTER%" and DPR.TYPE like "%SKY%" and DPR.CATG like "%SCIENCE%" then
{
  DO.CATG = "SKY_JITTER";
}
if DPR.TECH like "%IFU,NODDING%" and DPR.TECH like "%DITHER%" and DPR.TYPE like "%SKY%" and DPR.CATG like "%SCIENCE%" then
{
  DO.CATG = "SKY_NODDING_DITHER";
}



196 197 198 199 200 201 202 203 204

if DPR.TECH=="SYSTEM,MEASURED,LAMP" and DPR.TYPE=="MATRIX,INTERACTION,PRIM" and DPR.CATG=="CALIB" then
{
  DO.CATG = "MATRIX_INTERACTION_PRIM";
}




Ole Streicher's avatar
Ole Streicher committed
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223
if PRO.CATG like "%SEDS%" then
{
  DO.CATG = "SEDS";
}
if PRO.CATG like "%STDSTARS_CATS%" then
{
  DO.CATG = "STDSTARS_CATS";
}


if PRO.CATG like "%EXTCOEFF_TABLE%" then
{
  DO.CATG = "EXTCOEFF_TABLE";
}
if PRO.CATG like "%FLUX_STD_CATALOG%" then
{
  DO.CATG = "FLUX_STD_CATALOG";
}

224 225 226 227 228 229 230 231 232 233 234 235 236 237 238
if PRO.CATG like "%EFFICIENCY_WINDOWS%" then
{
  DO.CATG = "EFFICIENCY_WINDOWS";
}

if PRO.CATG like "%FLUX_STD_CATALOG%" then
{
  DO.CATG = "FLUX_STD_CATALOG";
}

if PRO.CATG like "%EFFICIENCY%" then
{
  DO.CATG = "EFFICIENCY";
}

Ole Streicher's avatar
Ole Streicher committed
239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307

if PRO.CATG like "%BP_MAP%" then
{
  DO.CATG = "BP_MAP";
}
if PRO.CATG like "%REF_BP_MAP%" then
{
  DO.CATG = "REF_BP_MAP";
}
if PRO.CATG like "%BP_MAP_HP%" then
{
  DO.CATG = "BP_MAP_HP";
}
if PRO.CATG like "%BP_MAP_NL%" then
{
  DO.CATG = "BP_MAP_NL";
}
if PRO.CATG like "%BP_MAP_NO%" then
{
  DO.CATG = "BP_MAP_NO";
}
if PRO.CATG like "%BP_MAP_DI%" then
{
  DO.CATG = "BP_MAP_DI";
}
if PRO.CATG like "%MASTER_BP_MAP%" then
{
  DO.CATG = "MASTER_BP_MAP";
}
if PRO.CATG like "%MASTER_DARK%" then
{
  DO.CATG = "MASTER_DARK";
}
if PRO.CATG like "%DISTORTION%" then
{
  DO.CATG = "DISTORTION";
}
if PRO.CATG like "%AO_PERFORMANCE%" then
{
  DO.CATG = "AO_PERFORMANCE";
}
if PRO.CATG like "%SLITLETS_DISTANCE%" then
{
  DO.CATG = "SLITLETS_DISTANCE";
}
if PRO.CATG like "%SLITLETS_POS_PREDIST%" then
{
  DO.CATG = "SLITLETS_POS_PREDIST";
}
if PRO.CATG like "%REF_LINE_ARC%" then
{
  DO.CATG = "REF_LINE_ARC";
}
if PRO.CATG like "%REF_LINE_SKY%" then
{
  DO.CATG = "REF_LINE_SKY";
}
if PRO.CATG like "%WAVE_MAP%" then
{
  DO.CATG = "WAVE_MAP";
}
if PRO.CATG like "%WAVE_MAP_DITHER%" then
{
  DO.CATG = "WAVE_MAP_DITHER";
}
if PRO.CATG like "%FIRST_COL%" then
{
  DO.CATG = "FIRST_COL";
}
308
if PRO.CATG == "DRS_SETUP_WAVE" then
Ole Streicher's avatar
Ole Streicher committed
309 310 311
{
  DO.CATG = "DRS_SETUP_WAVE";
}
312 313 314 315 316 317

if PRO.CATG == "DRS_SETUP_WAVE_OH" then
{
  DO.CATG = "DRS_SETUP_WAVE_OH";
}

Ole Streicher's avatar
Ole Streicher committed
318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594
if PRO.CATG like "%MASTER_FLAT_LAMP%" then
{
  DO.CATG = "MASTER_FLAT_LAMP";
}
if PRO.CATG like "%BP_COEFF%" then
{
  DO.CATG = "BP_COEFF";
}
if PRO.CATG like "%INT_COL_TILT%" then
{
  DO.CATG = "INT_COL_TILT";
}
if PRO.CATG like "%MASTER_FLAT_LAMP_DITHER%" then
{
  DO.CATG = "MASTER_FLAT_LAMP_DITHER";
}
if PRO.CATG like "%SLIT_POS%" then
{
  DO.CATG = "SLIT_POS";
}
if PRO.CATG like "%WAVE_COEF_SLIT%" then
{
  DO.CATG = "WAVE_COEF_SLIT";
}
if PRO.CATG like "%WAVE_FIT_PARAMS%" then
{
  DO.CATG = "WAVE_FIT_PARAMS";
}
if PRO.CATG like "%WAVE_PARAMS%" then
{
  DO.CATG = "WAVE_PARAMS";
}
if PRO.CATG like "%MASTER_FLUX_LAMP%" then
{
  DO.CATG = "MASTER_FLUX_LAMP";
}
if PRO.CATG like "%STD_STAR%" then
{
  DO.CATG = "STD_STAR";
}
if PRO.CATG like "%PSF_INFO%" then
{
  DO.CATG = "PSF_INFO";
}
if PRO.CATG like "%FIBRE_NS_STACKED%" then
{
  DO.CATG = "FIBRE_NS_STACKED";
}
if PRO.CATG like "%FIBRE_NS_STACKED_DIST%" then
{
  DO.CATG = "FIBRE_NS_STACKED_DIST";
}
if PRO.CATG like "%FIBRE_NS_STACKED_OFF%" then
{
  DO.CATG = "FIBRE_NS_STACKED_OFF";
}
if PRO.CATG like "%FIBRE_NS_STACKED_ON%" then
{
  DO.CATG = "FIBRE_NS_STACKED_ON";
}
if PRO.CATG like "%CUBE%" then
{
  DO.CATG = "CUBE";
}
if PRO.CATG like "%SCIENCE_CUBE%" then
{
  DO.CATG = "SCIENCE_CUBE";
}
if PRO.CATG like "%STD_CUBE_SKY%" then
{
  DO.CATG = "STD_CUBE_SKY";
}
if PRO.CATG like "%OBS_CUBE_SKY%" then
{
  DO.CATG = "OBS_CUBE_SKY";
}
if PRO.CATG like "%PSF_CUBE_SKY%" then
{
  DO.CATG = "PSF_CUBE_SKY";
}
if PRO.CATG like "%MASTER_PSF%" then
{
  DO.CATG = "MASTER_PSF";
}
if PRO.CATG like "%MASTER_SLIT%" then
{
  DO.CATG = "MASTER_SLIT";
}
if PRO.CATG like "%STD_MED_SKY%" then
{
  DO.CATG = "STD_MED_SKY";
}
if PRO.CATG like "%OBS_MED_SKY%" then
{
  DO.CATG = "OBS_MED_SKY";
}
if PRO.CATG like "%PSF_MED_SKY%" then
{
  DO.CATG = "PSF_MED_SKY";
}
if PRO.CATG like "%WAVE_LAMP_STACKED%" then
{
  DO.CATG = "WAVE_LAMP_STACKED";
}
if PRO.CATG like "%FLUX_LAMP_STACKED%" then
{
  DO.CATG = "FLUX_LAMP_STACKED";
}
if PRO.CATG like "%PSF_CALIBRATOR_STACKED%" then
{
  DO.CATG = "PSF_CALIBRATOR_STACKED";
}
if PRO.CATG like "%STD_STACKED%" then
{
  DO.CATG = "STD_STACKED";
}
if PRO.CATG like "%SKY_NODDING_STACKED%" then
{
  DO.CATG = "SKY_NODDING_STACKED";
}
if PRO.CATG like "%OBJ_NODDING_STACKED%" then
{
  DO.CATG = "OBJ_NODDING_STACKED";
}
if PRO.CATG like "%OBJECT_SKYSPIDER_STACKED%" then
{
  DO.CATG = "OBJECT_SKYSPIDER_STACKED";
}
if PRO.CATG like "%CUBE_COLL%" then
{
  DO.CATG = "CUBE_COLL";
}
if PRO.CATG like "%CUBE_COLL_SLOPEX%" then
{
  DO.CATG = "CUBE_COLL_SLOPEX";
}
if PRO.CATG like "%CUBE_COLL_SLOPEY%" then
{
  DO.CATG = "CUBE_COLL_SLOPEY";
}
if PRO.CATG like "%COADD_OBJ%" then
{
  DO.CATG = "COADD_OBJ";
}
if PRO.CATG like "%COADD_PUPIL%" then
{
  DO.CATG = "COADD_PUPIL";
}
if PRO.CATG like "%PUPIL_LAMP_STACKED%" then
{
  DO.CATG = "PUPIL_LAMP_STACKED";
}
if PRO.CATG like "%RESAMPLED_FLAT_LAMP%" then
{
  DO.CATG = "RESAMPLED_FLAT_LAMP";
}
if PRO.CATG like "%RESAMPLED_OBJ%" then
{
  DO.CATG = "RESAMPLED_OBJ";
}
if PRO.CATG like "%RESAMPLED_SKY%" then
{
  DO.CATG = "RESAMPLED_SKY";
}
if PRO.CATG like "%COADD_STD%" then
{
  DO.CATG = "COADD_STD";
}
if PRO.CATG like "%COADD_PSF%" then
{
  DO.CATG = "COADD_PSF";
}
if PRO.CATG like "%ENC_ENERGY%" then
{
  DO.CATG = "ENC_ENERGY";
}
if PRO.CATG like "%MASK_COADD_OBJ%" then
{
  DO.CATG = "MASK_COADD_OBJ";
}
if PRO.CATG like "%MASK_COADD_STD%" then
{
  DO.CATG = "MASK_COADD_STD";
}
if PRO.CATG like "%MASK_COADD_PSF%" then
{
  DO.CATG = "MASK_COADD_PSF";
}
if PRO.CATG like "%MED_COADD_OBJ%" then
{
  DO.CATG = "MED_COADD_OBJ";
}
if PRO.CATG like "%MED_COADD_STD%" then
{
  DO.CATG = "MED_COADD_STD";
}
if PRO.CATG like "%MED_COADD_PSF%" then
{
  DO.CATG = "MED_COADD_PSF";
}
if PRO.CATG like "%OBS_OBJ%" then
{
  DO.CATG = "OBS_OBJ";
}
if PRO.CATG like "%OBS_STD%" then
{
  DO.CATG = "OBS_STD";
}
if PRO.CATG like "%OBS_PSF%" then
{
  DO.CATG = "OBS_PSF";
}
if PRO.CATG like "%OBJECT_NODDING_STACKED%" then
{
  DO.CATG = "OBJECT_NODDING_STACKED";
}
if PRO.CATG like "%STD_NODDING_STACKED%" then
{
  DO.CATG = "STD_NODDING_STACKED";
}
if PRO.CATG like "%STD_STAR_SPECTRA%" then
{
  DO.CATG = "STD_STAR_SPECTRA";
}
if PRO.CATG like "%STD_STAR_SPECTRUM%" then
{
  DO.CATG = "STD_STAR_SPECTRUM";
}
if PRO.CATG like "%PSF_NODDING_STACKED%" then
{
  DO.CATG = "PSF_NODDING_STACKED";
}
if PRO.CATG like "%GAIN_INFO%" then
{
  DO.CATG = "GAIN_INFO";
}
if PRO.CATG like "%INT_COL_TILT_COR%" then
{
  DO.CATG = "INT_COL_TILT_COR";
}
if PRO.CATG like "%LIN_DET_INFO%" then
{
  DO.CATG = "LIN_DET_INFO";
}
if PRO.CATG like "%MFLAT_AVG%" then
{
  DO.CATG = "MFLAT_AVG";
}
if PRO.CATG like "%MFLAT_CUBE%" then
{
  DO.CATG = "MFLAT_CUBE";
}
if PRO.CATG like "%MFLAT_MED%" then
{
  DO.CATG = "MFLAT_MED";
}
if PRO.CATG like "%MFLAT_STACKED_DIST%" then
{
  DO.CATG = "MFLAT_STACKED_DIST";
}
if PRO.CATG like "%OBS_SKY%" then
{
  DO.CATG = "OBS_SKY";
}
if PRO.CATG like "%SKY_MED%" then
{
  DO.CATG = "SKY_MED";
}
if PRO.CATG like "%SKY_STACKED_DIST%" then
{
  DO.CATG = "SKY_STACKED_DIST";
}
if PRO.CATG like "%SKY_STACKED_DUMMY%" then
{
  DO.CATG = "SKY_STACKED_DUMMY";
}

595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637


if PRO.CATG == "EFFICIENCY_WINDOWS" then
{
  DO.CATG = "EFFICIENCY_WINDOWS";
}
if PRO.CATG == "RESPONSE_WINDOWS" then
{
  DO.CATG = "RESPONSE_WINDOWS";
}
if PRO.CATG == "EXTCOEFF_TABLE" then
{
  DO.CATG = "EXTCOEFF_TABLE";
}
if PRO.CATG == "FLUX_STD_CATALOG" then
{
  DO.CATG = "FLUX_STD_CATALOG";
}
if PRO.CATG == "FIT_AREAS" then
{
  DO.CATG = "FIT_AREAS";
}
if PRO.CATG == "QUALITY_AREAS" then
{
  DO.CATG = "QUALITY_AREAS";
}
if PRO.CATG == "HIGH_ABS_REGIONS" then
{
  DO.CATG = "HIGH_ABS_REGIONS";
}
if PRO.CATG == "RESPONSE" then
{
  DO.CATG = "RESPONSE";
}
if PRO.CATG == "RESP_FIT_POINTS_CATALOG" then
{
  DO.CATG = "RESP_FIT_POINTS_CATALOG";
}
if PRO.CATG == "TELL_MOD_CATALOG" then
{
  DO.CATG = "TELL_MOD_CATALOG";
}

638 639 640 641 642 643
if PRO.CATG == "ATM_REF_CORR" then
{
  DO.CATG = "ATM_REF_CORR";
}


Ole Streicher's avatar
Ole Streicher committed
644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736
select execute(sinfo_rec_jitter_stdstar) from inputFiles where SIG.TEMPLATE == 1 and LF.DO.CATG == "STD";
select execute(sinfo_rec_mflat) from inputFiles where SIG.TEMPLATE == 1 and LF.DO.CATG == "FLAT_LAMP";
select execute(sinfo_rec_distortion) from inputFiles where SIG.TEMPLATE == 1 and LF.DO.CATG == "FLAT_NS";
select execute(sinfo_rec_jitter) from inputFiles where SIG.TEMPLATE == 1 and LF.DO.CATG == "DARK_PSF";
select execute(sinfo_rec_detlin) from inputFiles where SIG.TEMPLATE == 1 and LF.DO.CATG == "LINEARITY_LAMP";
select execute(sinfo_rec_lingain) from inputFiles where SIG.TEMPLATE == 1 and LF.DO.CATG == "LINEARITY_LAMP_ON";
select execute(sinfo_rec_lingain) from inputFiles where SIG.TEMPLATE == 1 and LF.DO.CATG == "LINEARITY_LAMP_OFF";
select execute(sinfo_rec_jitter) from inputFiles where SIG.TEMPLATE == 1 and LF.DO.CATG == "FIBRE_PSF";
select execute(sinfo_rec_jitter) from inputFiles where SIG.TEMPLATE == 1 and LF.DO.CATG == "IMAGE_PRE_SKY";
select execute(sinfo_rec_jitter) from inputFiles where SIG.TEMPLATE == 1 and LF.DO.CATG == "SKY_JITTER";
select execute(sinfo_rec_jitter) from inputFiles where SIG.TEMPLATE == 1 and LF.DO.CATG == "IMAGE_PRE_OBJECT";
select execute(sinfo_rec_mdark) from inputFiles where SIG.TEMPLATE == 1 and LF.DO.CATG == "DARK";
select execute(sinfo_rec_distortion) from inputFiles where SIG.TEMPLATE == 1 and LF.DO.CATG == "WAVE_NS";
select execute(sinfo_rec_jitter) from inputFiles where SIG.TEMPLATE == 1 and LF.DO.CATG == "SKY_NODDING";
select execute(sinfo_rec_jitter) from inputFiles where SIG.TEMPLATE == 1 and LF.DO.CATG == "OBJECT_NODDING";
select execute(sinfo_rec_jitter) from inputFiles where SIG.TEMPLATE == 1 and LF.DO.CATG == "OBJECT_JITTER";
select execute(sinfo_rec_distortion) from inputFiles where SIG.TEMPLATE == 1 and LF.DO.CATG == "FIBRE_NS";
select execute(sinfo_rec_jitter) from inputFiles where SIG.TEMPLATE == 1 and LF.DO.CATG == "SKY_PSF_CALIBRATOR";
select execute(sinfo_rec_pupil) from inputFiles where SIG.TEMPLATE == 1 and LF.DO.CATG == "PUPIL_LAMP";
select execute(sinfo_rec_wavecal) from inputFiles where SIG.TEMPLATE == 1 and LF.DO.CATG == "WAVE_LAMP";
select execute(sinfo_rec_jitter) from inputFiles where SIG.TEMPLATE == 1 and LF.DO.CATG == "SKY_STD";
select execute(sinfo_rec_jitter) from inputFiles where SIG.TEMPLATE == 1 and LF.DO.CATG == "PSF_CALIBRATOR";


action sinfo_rec_distortion
{
minRet = 1; maxRet = 1;
select file as REF_LINE_ARC from calibFiles where DO.CATG == "REF_LINE_ARC"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID;
minRet = 1; maxRet = 1;
select file as DRS_SETUP_WAVE from calibFiles where DO.CATG == "DRS_SETUP_WAVE";
recipe sinfo_rec_distortion;
}

action sinfo_rec_detlin
{
recipe sinfo_rec_detlin;
}

action sinfo_rec_lingain
{
recipe sinfo_rec_lingain;
}

action sinfo_rec_mdark
{
recipe sinfo_rec_mdark;
}

action sinfo_rec_mflat
{
minRet = 1; maxRet = 1;
select file as REF_BP_MAP from calibFiles where DO.CATG == "REF_BP_MAP";
minRet = 1; maxRet = 1;
select file as BP_MAP_NL from calibFiles where DO.CATG == "BP_MAP_NL"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID;
recipe sinfo_rec_mflat;
}

action sinfo_rec_wavecal
{
minRet = 1; maxRet = 1;
select file as REF_LINE_ARC from calibFiles where DO.CATG == "REF_LINE_ARC"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID;
minRet = 1; maxRet = 1;
select file as DRS_SETUP_WAVE from calibFiles where DO.CATG == "DRS_SETUP_WAVE";
minRet = 1; maxRet = 1;
select file as MASTER_FLAT_LAMP from calibFiles where DO.CATG == "MASTER_FLAT_LAMP"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID and inputFile.INS.OPTI1.NAME==INS.OPTI1.NAME;
minRet = 1; maxRet = 1;
select file as MASTER_BP_MAP from calibFiles where DO.CATG == "MASTER_BP_MAP"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID and inputFile.INS.OPTI1.NAME==INS.OPTI1.NAME;
minRet = 1; maxRet = 1;
select file as SLIT_POS from calibFiles where DO.CATG == "SLIT_POS"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID and inputFile.INS.OPTI1.NAME==INS.OPTI1.NAME;
minRet = 1; maxRet = 1;
select file as DISTORTION from calibFiles where DO.CATG == "DISTORTION"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID;
recipe sinfo_rec_wavecal;
}

action sinfo_rec_jitter
{
minRet = 1; maxRet = 1;
select file as MASTER_BP_MAP from calibFiles where DO.CATG == "MASTER_BP_MAP"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID and inputFile.INS.OPTI1.NAME==INS.OPTI1.NAME;

minRet = 1; maxRet = 1;
select file as MASTER_FLAT_LAMP from calibFiles where DO.CATG == "MASTER_FLAT_LAMP"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID and inputFile.INS.OPTI1.NAME==INS.OPTI1.NAME;
minRet = 0; maxRet = 1;
select file as MASTER_DARK from calibFiles where DO.CATG == "MASTER_DARK"
   and inputFile.DET.DIT==DET.DIT and inputFile.INSTRUME==INSTRUME;
737
minRet = 0; maxRet = 1;
Ole Streicher's avatar
Ole Streicher committed
738 739 740 741 742 743 744 745 746 747 748 749 750
select file as FIRST_COL from calibFiles where DO.CATG == "FIRST_COL";
minRet = 1; maxRet = 1;
select file as WAVE_MAP from calibFiles where DO.CATG == "WAVE_MAP"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID and inputFile.INS.OPTI1.NAME==INS.OPTI1.NAME;
minRet = 1; maxRet = 1;
select file as SLITLETS_DISTANCE from calibFiles where DO.CATG == "SLITLETS_DISTANCE"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID;
minRet = 1; maxRet = 1;
select file as SLIT_POS from calibFiles where DO.CATG == "SLIT_POS"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID and inputFile.INS.OPTI1.NAME==INS.OPTI1.NAME;
minRet = 1; maxRet = 1;
select file as DISTORTION from calibFiles where DO.CATG == "DISTORTION"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID;
751 752 753 754 755 756 757 758 759 760 761


minRet = 0; maxRet = 1;
select file as EXTCOEFF_TABLE from calibFiles where DO.CATG == "EXTCOEFF_TABLE"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID;


minRet = 0; maxRet = 1;
select file as RESPONSE from calibFiles where DO.CATG == "RESPONSE"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID;

762 763 764 765
minRet = 0; maxRet = 1;
select file as ATM_REF_CORR from calibFiles where PRO.CATG=="ATM_REF_CORR" and inputFile.INS.SETUP.ID==INS.SETUP.ID and inputFile.INS.OPTI1.NAME==INS.OPTI1.NAME and inputFile.INSTRUME==INSTRUME;


Ole Streicher's avatar
Ole Streicher committed
766 767 768 769 770 771 772 773 774 775 776 777 778
recipe sinfo_rec_jitter;
}



action sinfo_rec_jitter_stdstar
{
minRet = 0; maxRet = 1;
select file as EXTCOEFF_TABLE from calibFiles where DO.CATG == "EXTCOEFF_TABLE"
   and inputFile.INSTRUME==INSTRUME;
minRet = 0; maxRet = 1;
select file as FLUX_STD_CATALOG from calibFiles where DO.CATG == "FLUX_STD_CATALOG"
   and inputFile.INSTRUME==INSTRUME;
779 780 781 782 783 784 785
minRet = 0; maxRet = 1;
select file as EFFICIENCY_WINDOWS from calibFiles where DO.CATG == "EFFICIENCY_WINDOWS" and inputFile.INS.FILT1.NAME==INS.FILT1.NAME
   and inputFile.INSTRUME==INSTRUME;




Ole Streicher's avatar
Ole Streicher committed
786 787 788 789 790 791 792 793 794 795
minRet = 1; maxRet = 1;
select file as MASTER_BP_MAP from calibFiles where DO.CATG == "MASTER_BP_MAP"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID and inputFile.INS.OPTI1.NAME==INS.OPTI1.NAME;

minRet = 1; maxRet = 1;
select file as MASTER_FLAT_LAMP from calibFiles where DO.CATG == "MASTER_FLAT_LAMP"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID and inputFile.INS.OPTI1.NAME==INS.OPTI1.NAME;
minRet = 0; maxRet = 1;
select file as MASTER_DARK from calibFiles where DO.CATG == "MASTER_DARK"
   and inputFile.DET.DIT==DET.DIT and inputFile.INSTRUME==INSTRUME;
796
minRet = 0; maxRet = 1;
Ole Streicher's avatar
Ole Streicher committed
797 798 799 800 801 802 803 804 805 806 807 808 809
select file as FIRST_COL from calibFiles where DO.CATG == "FIRST_COL";
minRet = 1; maxRet = 1;
select file as WAVE_MAP from calibFiles where DO.CATG == "WAVE_MAP"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID and inputFile.INS.OPTI1.NAME==INS.OPTI1.NAME;
minRet = 1; maxRet = 1;
select file as SLITLETS_DISTANCE from calibFiles where DO.CATG == "SLITLETS_DISTANCE"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID;
minRet = 1; maxRet = 1;
select file as SLIT_POS from calibFiles where DO.CATG == "SLIT_POS"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID and inputFile.INS.OPTI1.NAME==INS.OPTI1.NAME;
minRet = 1; maxRet = 1;
select file as DISTORTION from calibFiles where DO.CATG == "DISTORTION"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID;
810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853


minRet = 0; maxRet = 1;
select file as EFFICIENCY_WINDOWS from calibFiles where DO.CATG == "EFFICIENCY_WINDOWS"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.FILT1.NAME == INS.FILT1.NAME;

minRet = 0; maxRet = 1;
select file as RESPONSE_WINDOWS from calibFiles where DO.CATG == "RESPONSE_WINDOWS"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.FILT1.NAME == INS.FILT1.NAME;

minRet = 0; maxRet = 1;
select file as EXTCOEFF_TABLE from calibFiles where DO.CATG == "EXTCOEFF_TABLE"
   and inputFile.INSTRUME==INSTRUME;

minRet = 0; maxRet = 1;
select file as FLUX_STD_CATALOG from calibFiles where DO.CATG == "FLUX_STD_CATALOG"
   and inputFile.INSTRUME==INSTRUME;

minRet = 0; maxRet = 1;
select file as TELL_MOD_CATALOG from calibFiles where DO.CATG == "TELL_MOD_CATALOG"
   and inputFile.INSTRUME==INSTRUME;



minRet = 0; maxRet = 1;
select file as FIT_AREAS from calibFiles where DO.CATG == "FIT_AREAS"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.FILT1.NAME == INS.FILT1.NAME;

minRet = 0; maxRet = 1;
select file as QUALITY_AREAS from calibFiles where DO.CATG == "QUALITY_AREAS"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.FILT1.NAME == INS.FILT1.NAME;

minRet = 0; maxRet = 1;
select file as HIGH_ABS_REGIONS from calibFiles where DO.CATG == "HIGH_ABS_REGIONS"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.FILT1.NAME == INS.FILT1.NAME;

minRet = 0; maxRet = 1;
select file as RESP_FIT_POINTS_CATALOG from calibFiles where DO.CATG == "RESP_FIT_POINTS_CATALOG"
   and inputFile.INSTRUME==INSTRUME;

//minRet = 0; maxRet = 1;
//select file as RESPONSE from calibFiles where DO.CATG == "RESPONSE"
//   and inputFile.INSTRUME==INSTRUME and inputFile.INS.FILT1.NAME == INS.FILT1.NAME;

854 855 856 857
minRet = 0; maxRet = 1;
select file as ATM_REF_CORR from calibFiles where PRO.CATG=="ATM_REF_CORR" and inputFile.INS.SETUP.ID==INS.SETUP.ID and inputFile.INS.OPTI1.NAME==INS.OPTI1.NAME and inputFile.INSTRUME==INSTRUME;


Ole Streicher's avatar
Ole Streicher committed
858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873
recipe sinfo_rec_jitter;
}



action sinfo_rec_pupil
{
minRet = 1; maxRet = 1;
select file as MASTER_BP_MAP from calibFiles where DO.CATG == "MASTER_BP_MAP"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID and inputFile.INS.OPTI1.NAME==INS.OPTI1.NAME;
minRet = 1; maxRet = 1;
select file as MASTER_FLAT_LAMP from calibFiles where DO.CATG == "MASTER_FLAT_LAMP"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID and inputFile.INS.OPTI1.NAME==INS.OPTI1.NAME;
minRet = 0; maxRet = 1;
select file as MASTER_DARK from calibFiles where DO.CATG == "MASTER_DARK"
   and inputFile.DET.DIT==DET.DIT and inputFile.INSTRUME==INSTRUME;
874
minRet = 0; maxRet = 1;
Ole Streicher's avatar
Ole Streicher committed
875 876 877
select file as FIRST_COL from calibFiles where DO.CATG == "FIRST_COL";
minRet = 1; maxRet = 1;
select file as WAVE_MAP from calibFiles where DO.CATG == "WAVE_MAP"
878
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID and inputFile.INS.OPTI1.NAME=="0.25";
Ole Streicher's avatar
Ole Streicher committed
879 880 881 882 883 884 885 886 887 888 889
minRet = 1; maxRet = 1;
select file as SLITLETS_DISTANCE from calibFiles where DO.CATG == "SLITLETS_DISTANCE"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID;
minRet = 1; maxRet = 1;
select file as SLIT_POS from calibFiles where DO.CATG == "SLIT_POS"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID and inputFile.INS.OPTI1.NAME==INS.OPTI1.NAME;
minRet = 1; maxRet = 1;
select file as DISTORTION from calibFiles where DO.CATG == "DISTORTION"
   and inputFile.INSTRUME==INSTRUME and inputFile.INS.SETUP.ID==INS.SETUP.ID;
recipe sinfo_rec_pupil;
}