Changeset 23666
- Timestamp:
- Apr 1, 2009, 4:47:30 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroExtractStars.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroExtractStars.c
r23592 r23666 76 76 77 77 int nExt = 0; 78 int nExtGhost = 0; 78 79 79 80 // open the output file handle: we are just saving a series of extensions to this file … … 157 158 psMetadataAddF32 (header, PS_LIST_TAIL, "FPA_Y", 0, "focal-plane coordinate", ref->FP->y); 158 159 psMetadataAddF32 (header, PS_LIST_TAIL, "MAG", 0, "magnitude", ref->Mag); 160 psMetadataAddF32 (header, PS_LIST_TAIL, "INST_MAG",0, "instrumental magnitude", ref->Mag - MagOffset); 159 161 160 162 snprintf (extname, 80, "extname.%05d", nExt); … … 175 177 176 178 pmReadout *inReadout = pmFPAviewThisReadout (view, input->fpa); 177 psImage *subraster = psastroExtractStar (inReadout->image, ghost->chip->x, ghost->chip->y, 200.0, 200.0);179 psImage *subraster = psastroExtractStar (inReadout->image, ghost->chip->x, ghost->chip->y, 400.0, 400.0); 178 180 if (!subraster) continue; 179 181 … … 187 189 psMetadataAddF32 (header, PS_LIST_TAIL, "FPA_Y0", 0, "star focal-plane coordinate", ghost->TP->y); // note : over-loaded value 188 190 psMetadataAddF32 (header, PS_LIST_TAIL, "MAG", 0, "magnitude", ghost->Mag); 189 190 snprintf (extname, 80, "extname.%05d", nExt); 191 psFitsWriteImage (outStars, header, subraster, 0, extname); 192 nExt ++; 191 psMetadataAddF32 (header, PS_LIST_TAIL, "INST_MAG",0, "instrumental magnitude", ghost->Mag - MagOffset); 192 193 snprintf (extname, 80, "extname.%05d", nExtGhost); 194 psFitsWriteImage (outGhosts, header, subraster, 0, extname); 195 nExtGhost ++; 193 196 194 197 psFree (header); … … 204 207 205 208 psFitsClose (outStars); 209 psFitsClose (outGhosts); 206 210 psFree (view); 207 211 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
