- Timestamp:
- Jan 11, 2015, 2:05:35 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140904
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psastro/src/psastroChooseRefstars.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140904
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20140904/psastro/src/psastroChooseRefstars.c
r35715 r37804 66 66 psF32 clampMagMin = psMetadataLookupF32 (&status, recipe, "REFSTAR_CLAMP_MAG_MIN"); 67 67 if (!status) clampMagMin = -5.0; 68 //MEH adding max option as well -- really should not be hardcoded.. 69 psF32 clampMagMax = psMetadataLookupF32 (&status, recipe, "REFSTAR_CLAMP_MAG_MAX"); 70 if (!status) clampMagMax = 30.0; 71 psWarning("Will skip/clamp refstar with brighter/fainter magnitude %f/%f\n",clampMagMin,clampMagMax); 72 68 73 69 74 // de-activate all files except PSASTRO.REFSTARS … … 109 114 110 115 if (ref->Mag < clampMagMin) { 111 psWarning("Skipping refstar with abusrd magnitude %f ra: %f dec: %f\n", 112 ref->Mag, RAD_TO_DEG(ref->sky->r), RAD_TO_DEG(ref->sky->d)); 116 //psWarning("Skipping refstar with abusrd magnitude %f ra: %f dec: %f\n", 117 // ref->Mag, RAD_TO_DEG(ref->sky->r), RAD_TO_DEG(ref->sky->d)); 118 psTrace ("psastro", 6, "Skipping by clamp refstar with bright magnitude %f ra: %f dec: %f\n", 119 ref->Mag, RAD_TO_DEG(ref->sky->r), RAD_TO_DEG(ref->sky->d)); 120 goto skip; 121 } 122 //MEH option for max mag clamp also -- need to change psWarning (to log) to trace and above for bright.. 123 if (ref->Mag > clampMagMax) { 124 //psWarning("Skipping by clamp refstar with faint magnitude %f ra: %f dec: %f\n", 125 // ref->Mag, RAD_TO_DEG(ref->sky->r), RAD_TO_DEG(ref->sky->d)); 126 psTrace ("psastro", 6, "Skipping by clamp refstar with faint magnitude %f ra: %f dec: %f\n", 127 ref->Mag, RAD_TO_DEG(ref->sky->r), RAD_TO_DEG(ref->sky->d)); 113 128 goto skip; 114 129 }
Note:
See TracChangeset
for help on using the changeset viewer.
