Changeset 5754 for trunk/psphot/src/psphotSetup.c
- Timestamp:
- Dec 8, 2005, 4:39:17 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotSetup.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotSetup.c
r5672 r5754 27 27 char *input = psMetadataLookupPtr (&status, config, "IMAGE"); 28 28 if (!status) psAbort ("psphot", "input image not specified"); 29 psFits *file = psFits Alloc (input);29 psFits *file = psFitsOpen (input, "r"); 30 30 header = psFitsReadHeader (header, file); 31 31 psImage *tmpimage = psFitsReadImage (NULL, file, region, 0); 32 32 image = psImageCopy (NULL, tmpimage, PS_TYPE_F32); 33 psF ree (file);33 psFitsClose (file); 34 34 35 35 // psFree (input); … … 46 46 char *weightName = psMetadataLookupPtr (&status, config, "WEIGHT"); 47 47 if (status == true) { 48 file = psFits Alloc (weightName);48 file = psFitsOpen (weightName, "r"); 49 49 weight = psFitsReadImage (NULL, file, region, 0); 50 psF ree (file);50 psFitsClose (file); 51 51 // psFree (weightName); XXX - see psFree (input) 52 52 } else { … … 64 64 if (status == true) { 65 65 // XXX EAM require / convert mask to psU8? 66 file = psFits Alloc (maskName);66 file = psFitsOpen (maskName, "r"); 67 67 mask = psFitsReadImage (NULL, file, region, 0); 68 psF ree (file);68 psFitsClose (file); 69 69 // psFree (maskName); XXX - see psFree (input) 70 70 } else {
Note:
See TracChangeset
for help on using the changeset viewer.
