IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 29, 2012, 2:26:09 PM (14 years ago)
Author:
watersc1
Message:

ppSkycell binning mostly working, but not for masks yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20120906/ppStack/src/ppStackUpdateHeader.c

    r31158 r34623  
    66
    77    pmReadout *outRO = options->outRO;                                      // Output readout
     8    pmReadout *expRO = options->expRO;
    89
    910    // Propagate WCS
     
    123124        snprintf (field, 64, "AIR_%04d", i);
    124125        psMetadataAddF32(hdu->header, PS_LIST_TAIL, field, PS_META_REPLACE, "input image airmass", value);
    125     }   
     126    }
     127
     128    // Copy information into expRO, because it should be there too.
     129    pmHDU *expROhdu = pmHDUFromCell(expRO->parent);
     130    if (!expROhdu->header) {
     131      expROhdu->header = psMetadataAlloc();
     132    }
     133    expRO->parent->parent->parent->hdu->header = psMetadataCopy(expRO->parent->parent->parent->hdu->header,
     134                                                                outRO->parent->parent->parent->hdu->header);
     135   
     136    expRO->parent->concepts = psMetadataCopy(expRO->parent->concepts,
     137                                             outRO->parent->concepts);
     138    expRO->parent->parent->concepts = psMetadataCopy(expRO->parent->parent->concepts,
     139                                                     outRO->parent->concepts);
     140    expRO->parent->parent->parent->concepts = psMetadataCopy(expRO->parent->parent->parent->concepts,
     141                                                             outRO->parent->parent->parent->concepts);
     142   
     143   
    126144    return true;
    127145}
Note: See TracChangeset for help on using the changeset viewer.