Changeset 23336
- Timestamp:
- Mar 15, 2009, 4:56:51 PM (17 years ago)
- Location:
- branches/eam_branches/eam_branch_20090312/psastro/src
- Files:
-
- 4 edited
-
psastro.h (modified) (3 diffs)
-
psastroAnalysis.c (modified) (5 diffs)
-
psastroChooseRefstars.c (modified) (2 diffs)
-
psastroLoadRefstars.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/eam_branch_20090312/psastro/src/psastro.h
r23195 r23336 61 61 bool psPlaneDistortIsIdentity (psPlaneDistort *distort); 62 62 63 psArray *psastroLoadRefstars (pmConfig *config );63 psArray *psastroLoadRefstars (pmConfig *config, const char *source); 64 64 bool psastroChipAstrom (pmConfig *config); 65 65 bool psastroOneChip (pmFPA *fpa, pmChip *chip, psArray *refset, psArray *rawset, psMetadata *recipe, psMetadata *updates); 66 66 bool psastroOneChipGrid (pmFPA *fpa, pmChip *chip, psArray *refset, psArray *rawset, psMetadata *recipe, psMetadata *updates); 67 67 bool psastroOneChipFit (pmFPA *fpa, pmChip *chip, psArray *refset, psArray *rawset, psMetadata *recipe, psMetadata *updates); 68 bool psastroChooseRefstars (pmConfig *config, psArray *refs );68 bool psastroChooseRefstars (pmConfig *config, psArray *refs, const char *source); 69 69 bool psastroRefstarSubset (pmReadout *readout); 70 70 pmLumFunc *psastroLuminosityFunction (psArray *stars, pmLumFunc *rawFunc); … … 121 121 bool psastroDumpCorners (char *filenameU, char *filenameD, pmFPA *fpa); 122 122 123 char *psastroSetMagLimit (float *minMag, float *maxRho, pmConfig *config, const char *source); 123 124 124 125 psArray *psastroReadGetstarCatalog (psFits *fits); … … 133 134 bool psastroZeroPointFromRecipe (float *zeropt, float *exptime, pmFPA *fpa, psMetadata *recipe); 134 135 136 // psastroExtract functions 137 bool psastroExtractAnalysis (pmConfig *config); 138 psImage *psastroExtractStar (psImage *input, float x, float y, float dX, float dY); 139 bool psastroExtractParseCamera (pmConfig *config); 140 bool psastroExtractDataLoad (pmConfig *config); 141 pmConfig *psastroExtractArguments (int argc, char **argv); 142 135 143 ///@} 136 144 # endif /* PSASTRO_H */ -
branches/eam_branches/eam_branch_20090312/psastro/src/psastroAnalysis.c
r21409 r23336 45 45 46 46 // load the reference stars overlapping the data stars 47 psArray *refs = psastroLoadRefstars(config );47 psArray *refs = psastroLoadRefstars(config, "PSASTRO.INPUT"); 48 48 if (!refs) { 49 49 psError (PSASTRO_ERR_UNKNOWN, false, "failed to load reference data\n"); … … 56 56 } 57 57 58 if (!psastroChooseRefstars (config, refs )) {58 if (!psastroChooseRefstars (config, refs, "PSASTRO.INPUT")) { 59 59 psError (PSASTRO_ERR_UNKNOWN, false, "failed to select reference data for chips\n"); 60 60 psFree(refs); 61 61 return false; 62 62 } 63 psFree (refs); // refs of interest are saved on readout->analysis 63 64 64 65 // check the command-line arguments first … … 79 80 if (!psastroChipAstrom (config)) { 80 81 psError (PSASTRO_ERR_UNKNOWN, false, "failed to perform single chip astrometry\n"); 81 psFree(refs);82 82 return false; 83 83 } … … 86 86 if (!psastroMosaicAstrom (config)) { 87 87 psError (PSASTRO_ERR_UNKNOWN, false, "failed to perform mosaic camera astrometry\n"); 88 psFree(refs);89 88 return false; 90 89 } … … 100 99 // psastroStackAstrom (config, refs); 101 100 102 psFree (refs);103 101 return true; 104 102 } -
branches/eam_branches/eam_branch_20090312/psastro/src/psastroChooseRefstars.c
r21409 r23336 20 20 } 21 21 22 bool psastroChooseRefstars (pmConfig *config, psArray *refs ) {22 bool psastroChooseRefstars (pmConfig *config, psArray *refs, const char *source) { 23 23 24 24 bool status; … … 35 35 36 36 // select the input data sources 37 pmFPAfile *input = psMetadataLookupPtr (NULL, config->files, "PSASTRO.INPUT");37 pmFPAfile *input = psMetadataLookupPtr (NULL, config->files, source); 38 38 if (!input) { 39 39 psError(PSASTRO_ERR_CONFIG, true, "Can't find input data!\n"); -
branches/eam_branches/eam_branch_20090312/psastro/src/psastroLoadRefstars.c
r21422 r23336 14 14 # define ELIXIR_MODE 1 15 15 16 char *psastroSetMagLimit (float *minMag, float *maxRho, pmConfig *config); 17 18 psArray *psastroLoadRefstars (pmConfig *config) { 16 psArray *psastroLoadRefstars (pmConfig *config, const char *source) { 19 17 20 18 int fd; … … 69 67 float minMag; 70 68 float maxRho; 71 char *photcode = psastroSetMagLimit (&minMag, &maxRho, config );69 char *photcode = psastroSetMagLimit (&minMag, &maxRho, config, source); 72 70 PS_ASSERT (photcode, NULL); 73 71 … … 240 238 goto escape; } 241 239 242 char *psastroSetMagLimit (float *minMag, float *maxRho, pmConfig *config ) {240 char *psastroSetMagLimit (float *minMag, float *maxRho, pmConfig *config, const char *source) { 243 241 244 242 bool status; … … 249 247 250 248 // select the input data sources 251 pmFPAfile *input = psMetadataLookupPtr (NULL, config->files, "PSASTRO.INPUT");249 pmFPAfile *input = psMetadataLookupPtr (NULL, config->files, source); 252 250 if (!input) { 253 251 psLogMsg ("psastro", PS_LOG_DETAIL, "no supplied reference header data");
Note:
See TracChangeset
for help on using the changeset viewer.
