IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 29, 2007, 12:49:16 PM (18 years ago)
Author:
Paul Price
Message:

NAXIS1 and NAXIS2 aren't written for tables (e.g., source lists, PSF models), so put various concepts that require these in by their name. It's not a great waste of space.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfigCamera.c

    r15513 r15715  
    8585// Don't update these skycell concepts; last one MUST be 0 (i.e., NULL).
    8686const static char *skycellConceptsCell[] = { "CELL.BIASSEC", "CELL.TRIMSEC", "CELL.READDIR", "CELL.XPARITY",
    87                                              "CELL.YPARITY", "CELL.XWINDOW", "CELL.YWINDOW", "CELL.X0",
    88                                              "CELL.Y0", "CELL.XSIZE", "CELL.YSIZE", 0 };
    89 const static char *skycellConceptsChip[] = { "CHIP.XPARITY", "CHIP.YPARITY", "CHIP.XSIZE", "CHIP.YSIZE", 0 };
     87                                             "CELL.YPARITY", "CELL.X0", "CELL.Y0", 0 };
     88const static char *skycellConceptsChip[] = { "CHIP.XPARITY", "CHIP.YPARITY", 0 };
    9089const static char *skycellConceptsFPA[] = { 0 };
    9190
     
    247246        psFree(concepts);
    248247
    249         psMetadataAddStr(translation, PS_LIST_TAIL, "CELL.XSIZE", 0, NULL, "NAXIS1");
    250         psMetadataAddStr(translation, PS_LIST_TAIL, "CELL.YSIZE", 0, NULL, "NAXIS2");
    251         psMetadataAddStr(translation, PS_LIST_TAIL, "CELL.XWINDOW", 0, NULL, "NAXIS1");
    252         psMetadataAddStr(translation, PS_LIST_TAIL, "CELL.YWINDOW", 0, NULL, "NAXIS2");
    253         psMetadataAddStr(translation, PS_LIST_TAIL, "CHIP.XSIZE", 0, NULL, "NAXIS1");
    254         psMetadataAddStr(translation, PS_LIST_TAIL, "CHIP.YSIZE", 0, NULL, "NAXIS2");
    255 
    256248        psMetadataAddMetadata(format, PS_LIST_TAIL, "TRANSLATION", 0, "How to translate the FITS headers",
    257249                              translation);
     
    426418          while ((fpaItem = psMetadataGetAndIncrement(fpaIter))) {
    427419              if (fpaItem->type != PS_DATA_STRING) {
    428                   psError(PS_ERR_UNKNOWN, true, "Element %s within FPA in camera configuration is not of type STR.",
    429                             fpaItem->name);
     420                  psError(PS_ERR_UNKNOWN, true,
     421                          "Element %s within FPA in camera configuration is not of type STR.",
     422                          fpaItem->name);
    430423                  psFree(new);
    431424                  return false;
     
    597590            psAbort("Should never get here.\n");
    598591        }
    599 
    600 #if 0
    601         // XXXX when do I need to adjust the value of CONTENT, CELL.NAME, CHIP.NAME?
    602 
    603         // Don't need a "CONTENT" to identify the content!
    604         if (psMetadataLookup(file, "CONTENT")) {
    605             psMetadataRemoveKey(file, "CONTENT");
    606         }
    607         psMetadataAddStr(file, PS_LIST_TAIL, "CONTENT", PS_META_REPLACE, "Key to CONTENTS menu",
    608                          "PS_CNTNT");
    609         // Don't need CELL.NAME for chip-mosaicked camera
    610         if (psMetadataLookup(file, "CELL.NAME")) {
    611             psMetadataRemoveKey(file, "CELL.NAME");
    612         }
    613         // Don't need CHIP.NAME or CELL.NAME for fpa-mosaicked camera
    614         if (psMetadataLookup(file, "CHIP.NAME")) {
    615             psMetadataRemoveKey(file, "CHIP.NAME");
    616         }
    617         if (psMetadataLookup(file, "CELL.NAME")) {
    618             psMetadataRemoveKey(file, "CELL.NAME");
    619         }
    620 #endif
    621592
    622593        // Fix up the CONTENTS to contain only the mosaicked cell for each chip
Note: See TracChangeset for help on using the changeset viewer.