IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 10, 2022, 10:14:09 AM (4 years ago)
Author:
eugene
Message:

load metadata on intermediate variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20220316/psastro/src/psastroDataSave.c

    r38040 r42194  
    7575                if (hdu && hdu != lastHDU) {
    7676                    psastroVersionHeaderFull(hdu->header);
    77                     // Append teh reference catalog to the header as well.
    78                     psMetadata *recipe = psMetadataLookupPtr(NULL, config->recipes, PSASTRO_RECIPE);
    79                     psMetadataAddStr(hdu->header,PS_LIST_TAIL,"PSREFCAT",PS_META_REPLACE,NULL,
    80                                      psMetadataLookupStr(NULL,recipe,"PSASTRO.CATDIR"));
     77                    // Append the reference catalog to the header as well.
     78                    char *catdir = psMetadataLookupStr(NULL, recipe, "PSASTRO.CATDIR")
     79                    psMetadataAddStr(hdu->header, PS_LIST_TAIL, "PSREFCAT", PS_META_REPLACE, NULL, catdir);
    8180                    lastHDU = hdu;
    8281                }
Note: See TracChangeset for help on using the changeset viewer.