Changeset 15963
- Timestamp:
- Dec 30, 2007, 5:04:48 PM (18 years ago)
- Location:
- trunk/psastro/src
- Files:
-
- 2 edited
-
psastroChooseRefstars.c (modified) (2 diffs)
-
psastroLoadRefstars.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroChooseRefstars.c
r15666 r15963 22 22 } 23 23 24 float fieldExtra = psMetadataLookupS32 (&status, recipe, "PSASTRO.FIELD.EXTRA"); 25 if (!status) fieldExtra = 0.0; 24 // extra field fraction to add 25 double fieldPadding = psMetadataLookupF32 (&status, recipe, "PSASTRO.FIELD.PADDING"); 26 if (!status) fieldPadding = 0.0; 26 27 27 28 bool matchLumFunc = psMetadataLookupBool (&status, recipe, "PSASTRO.MATCH.LUMFUNC"); … … 55 56 int Ny = psMetadataLookupS32 (&status, hdu->header, "NAXIS2"); 56 57 57 float minX = -field Extra*Nx;58 float maxX = (1+field Extra)*Nx;59 float minY = -field Extra*Ny;60 float maxY = (1+field Extra)*Ny;58 float minX = -fieldPadding*Nx; 59 float maxX = (1+fieldPadding)*Nx; 60 float minY = -fieldPadding*Ny; 61 float maxY = (1+fieldPadding)*Ny; 61 62 62 63 // the refstars is a subset within range of this chip -
trunk/psastro/src/psastroLoadRefstars.c
r15637 r15963 15 15 float DECmin = DEG_RAD*psMetadataLookupF32(NULL, recipe, "DEC_MIN"); 16 16 float DECmax = DEG_RAD*psMetadataLookupF32(NULL, recipe, "DEC_MAX"); 17 18 // extra field fraction to add 19 double fieldPadding = psMetadataLookupF32 (&status, recipe, "PSASTRO.FIELD.PADDING"); 20 PS_ASSERT (status, NULL); 21 22 float dRA = RAmax - RAmin; 23 RAmin -= dRA * fieldPadding; 24 RAmax += dRA * fieldPadding; 25 26 float dDEC = DECmax - DECmin; 27 DECmin -= dDEC * fieldPadding; 28 DECmax += dDEC * fieldPadding; 17 29 18 30 // XXX CATDIR needs to look up abstracted name from psastro.config
Note:
See TracChangeset
for help on using the changeset viewer.
