Changeset 9732 for trunk/psastro/src/psastroRefstarSubset.c
- Timestamp:
- Oct 24, 2006, 1:58:13 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroRefstarSubset.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroRefstarSubset.c
r9649 r9732 32 32 return NULL; 33 33 } 34 34 35 35 // XXXX test 36 36 // psFree (rawfunc); … … 38 38 // return true; 39 39 40 // what is the offset between the two lines at the average magnitude? 40 // what is the offset between the two lines at the average magnitude? 41 41 double mRef = 0.5*(reffunc->mMin + reffunc->mMax); 42 42 double logRho = mRef * reffunc->slope + reffunc->offset; … … 48 48 psLogMsg ("psastro", 4, "clipping stars fainter than %f\n", mRefMax); 49 49 50 psArray *subset = psArrayAlloc (100);50 psArray *subset = psArrayAllocEmpty (100); 51 51 for (int i = 0; i < refstars->n; i++) { 52 52 pmAstromObj *ref = refstars->data[i];
Note:
See TracChangeset
for help on using the changeset viewer.
