Changeset 11269
- Timestamp:
- Jan 24, 2007, 12:24:44 PM (19 years ago)
- Location:
- trunk/psastro/src
- Files:
-
- 4 edited
-
psastro.c (modified) (2 diffs)
-
psastroDataSave.c (modified) (1 diff)
-
psastroErrorCodes.dat (modified) (1 diff)
-
psastroLuminosityFunction.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastro.c
r10855 r11269 54 54 55 55 bool chipastro = psMetadataLookupBool (NULL, config->arguments, "PSASTRO.CHIP.MODE"); 56 bool mosastro = psMetadataLookupBool (NULL, config->arguments, "PSASTRO.MOSAIC.MODE"); 57 if (!chipastro && !mosastro) { 58 psLogMsg ("psastro", 3, "no astrometry mode selected, assuming chip mode\n"); 59 chipastro= true; 60 } 61 56 62 if (chipastro) { 57 63 if (!psastroChipAstrom (config, refs)) { … … 61 67 } 62 68 63 bool mosastro = psMetadataLookupBool (NULL, config->arguments, "PSASTRO.MOSAIC.MODE");64 69 if (mosastro) { 65 70 if (!psastroMosaicAstrom (config, refs)) { -
trunk/psastro/src/psastroDataSave.c
r10438 r11269 19 19 pmFPAfile *output = psMetadataLookupPtr (NULL, config->files, "PSASTRO.OUTPUT"); 20 20 if (!output) { 21 psError(PSASTRO_ERR_CONFIG, true, "Can't find o utput data!\n");21 psError(PSASTRO_ERR_CONFIG, true, "Can't find or interpret output file rule PSASTRO.OUTPUT!\n"); 22 22 return false; 23 23 } -
trunk/psastro/src/psastroErrorCodes.dat
r9642 r11269 2 2 # This file is used to generate pmErrorClasses.h 3 3 # 4 BASE = 600 First value we use; lower values belong to psLib4 BASE = 300 First value we use; lower values belong to psLib 5 5 UNKNOWN Unknown PM error code 6 6 NOT_IMPLEMENTED Desired feature is not yet implemented -
trunk/psastro/src/psastroLuminosityFunction.c
r10880 r11269 49 49 for (int i = 0; i < stars->n; i++) { 50 50 star = stars->data[i]; 51 if (!isfinite(star->Mag)) continue; 51 52 int bin = (star->Mag - mMin) / dMag; 53 if (bin < 0) psAbort ("psastro", "bin cannot be negative!"); 54 if (bin >= nBin) psAbort ("psastro", "bin cannot be > %d!", nBin); 52 55 nMags->data.F32[bin] += 1.0; 53 56 }
Note:
See TracChangeset
for help on using the changeset viewer.
