Changeset 21409
- Timestamp:
- Feb 6, 2009, 4:03:34 PM (17 years ago)
- Location:
- trunk/psastro/src
- Files:
-
- 55 edited
-
gpcModel.c (modified) (1 diff)
-
psastro.c (modified) (1 diff)
-
psastro.h (modified) (4 diffs)
-
psastroAnalysis.c (modified) (1 diff)
-
psastroArguments.c (modified) (1 diff)
-
psastroAstromGuess.c (modified) (1 diff)
-
psastroChipAstrom.c (modified) (1 diff)
-
psastroChooseRefstars.c (modified) (1 diff)
-
psastroCleanup.c (modified) (1 diff)
-
psastroConvert.c (modified) (2 diffs)
-
psastroDataLoad.c (modified) (2 diffs)
-
psastroDataSave.c (modified) (2 diffs)
-
psastroDefineFiles.c (modified) (1 diff)
-
psastroDemoDump.c (modified) (4 diffs)
-
psastroDemoPlot.c (modified) (1 diff)
-
psastroErrorCodes.c.in (modified) (2 diffs)
-
psastroErrorCodes.h.in (modified) (1 diff)
-
psastroFixChips.c (modified) (1 diff)
-
psastroFixChipsTest.c (modified) (1 diff)
-
psastroInternal.h (modified) (1 diff)
-
psastroLoadRefstars.c (modified) (1 diff)
-
psastroLuminosityFunction.c (modified) (1 diff)
-
psastroMaskUpdates.c (modified) (6 diffs)
-
psastroMetadataStats.c (modified) (1 diff)
-
psastroModel.c (modified) (1 diff)
-
psastroModelAdjust.c (modified) (1 diff)
-
psastroModelAnalysis.c (modified) (1 diff)
-
psastroModelArguments.c (modified) (1 diff)
-
psastroModelBoresite.c (modified) (1 diff)
-
psastroModelDataLoad.c (modified) (2 diffs)
-
psastroModelDataSave.c (modified) (1 diff)
-
psastroModelFit.c (modified) (1 diff)
-
psastroModelFitBoresite.c (modified) (1 diff)
-
psastroModelParseCamera.c (modified) (1 diff)
-
psastroMosaicAstrom.c (modified) (1 diff)
-
psastroMosaicChipAstrom.c (modified) (1 diff)
-
psastroMosaicCorrectDistortion.c (modified) (1 diff)
-
psastroMosaicDistortion.c (modified) (1 diff)
-
psastroMosaicFPtoTP.c (modified) (2 diffs)
-
psastroMosaicGradients.c (modified) (1 diff)
-
psastroMosaicOneChip.c (modified) (1 diff)
-
psastroMosaicSetAstrom.c (modified) (1 diff)
-
psastroMosaicSetMatch.c (modified) (1 diff)
-
psastroOneChipFit.c (modified) (1 diff)
-
psastroOneChipGrid.c (modified) (1 diff)
-
psastroParseCamera.c (modified) (1 diff)
-
psastroRefstarSubset.c (modified) (1 diff)
-
psastroRemoveClumps.c (modified) (2 diffs)
-
psastroStandAlone.h (modified) (1 diff)
-
psastroTestFuncs.c (modified) (1 diff)
-
psastroUseModel.c (modified) (1 diff)
-
psastroUtils.c (modified) (1 diff)
-
psastroVersion.c (modified) (1 diff)
-
psastroVisual.c (modified) (5 diffs)
-
psastroZeroPoint.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/gpcModel.c
r15891 r21409 1 /** @file gpcModel.c 2 * 3 * @brief 4 * 5 * @ingroup gpcModel 6 * 7 * @author IfA 8 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroStandAlone.h" 2 14 15 /** 16 * generate model for gpc based on input model for all but chips 17 * USAGE: gpcModel (input) (output) 18 */ 3 19 int main (int argc, char **argv) { 4 5 // USAGE: gpcModel (input) (output)6 // generate model for gpc based on input model for all but chips7 20 8 21 if (argc != 3) { -
trunk/psastro/src/psastro.c
r17934 r21409 1 /** @file psastro.c 2 * 3 * @brief 4 * 5 * @ingroup psastro 6 * 7 * @author IfA 8 * @version $Revision: 1.28 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroStandAlone.h" 2 14 -
trunk/psastro/src/psastro.h
r20805 r21409 1 /* This file defines the library functions available to external programs. It must be included 2 * by programs which are compiled against psphot functions. 1 /** @file psastro.h 2 * 3 * @brief This file defines the library functions available to external 4 * programs. 5 * 6 * It must be included by programs which are compiled against 7 * psphot functions. 8 * 9 * @ingroup psastro 10 * 11 * @author IfA 12 * @version $Revision: 1.48 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2009-02-07 02:03:34 $ 14 * Copyright 2009 Institute for Astronomy, University of Hawaii 3 15 */ 4 16 … … 7 19 8 20 # include "psastroErrorCodes.h" 9 # define PSASTRO_RECIPE "PSASTRO" // Name of the recipe to use 21 22 /// @addtogroup psastro 23 /// @{ 24 25 # define PSASTRO_RECIPE "PSASTRO" ///< Name of the recipe to use 10 26 11 27 # define psMemCopy(A)(psMemIncrRefCounter((A))) … … 14 30 # define SIGN(X) (((X) == 0) ? 0 : ((fabs((double)(X))) / (X))) 15 31 16 // this structure represents a fit to the logN / logS curve for a set of stars 17 // logN = offset + slope * logS 32 /** 33 * this structure represents a fit to the logN / logS curve for a set of stars 34 * logN = offset + slope * logS 35 */ 18 36 typedef struct { 19 double mMin; // minimum magnitude bin with data20 double mMax; // maximum magnitude bin with data21 double offset; // fitted line offset22 double slope; // fitted line slope23 double mPeak; // mag of peak bin24 int nPeak; // # of stars in peak bin25 int sPeak; // sum of stars to peak bin37 double mMin; ///< minimum magnitude bin with data 38 double mMax; ///< maximum magnitude bin with data 39 double offset; ///< fitted line offset 40 double slope; ///< fitted line slope 41 double mPeak; ///< mag of peak bin 42 int nPeak; ///< # of stars in peak bin 43 int sPeak; ///< sum of stars to peak bin 26 44 } pmLumFunc; 27 45 … … 123 141 bool psastroZeroPointFromRecipe (float *zeropt, float *exptime, pmFPA *fpa, psMetadata *recipe); 124 142 143 ///@} 125 144 # endif /* PSASTRO_H */ -
trunk/psastro/src/psastroAnalysis.c
r20640 r21409 1 /** @file psastroAnalysis.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 -
trunk/psastro/src/psastroArguments.c
r20805 r21409 1 /** @file psastroArguments.c 2 * 3 * @brief 4 * 5 * @ingroup psastro 6 * 7 * @author IfA 8 * @version $Revision: 1.33 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroStandAlone.h" 2 14 -
trunk/psastro/src/psastroAstromGuess.c
r21183 r21409 1 /** @file psastroAstromGuess.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.34 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 # define DEBUG 0 3 15 4 // this function loads the header WCS astrometry terms into the fpa terms and applies the 5 // astrometry to the detected objects. 6 7 // this function assumes the initial astrometry arrives in the form of WCS keywords in the 8 // headers corresponding to the chips. 9 16 /** 17 * \brief This function loads the header WCS astrometry terms into the fpa 18 * terms and applies the astrometry to the detected objects. 19 * 20 * This function assumes the initial astrometry arrives in the form of WCS 21 * keywords in the headers corresponding to the chips. 22 */ 10 23 bool psastroAstromGuess (int *nStars, pmConfig *config) { 11 24 -
trunk/psastro/src/psastroChipAstrom.c
r20269 r21409 1 /** @file psastroChipAstrom.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.29 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 # define NONLIN_TOL 0.001 / * tolerance in pixels */14 # define NONLIN_TOL 0.001 ///< tolerance in pixels 3 15 4 16 bool psastroChipAstrom (pmConfig *config) { -
trunk/psastro/src/psastroChooseRefstars.c
r19032 r21409 1 /** @file psastroChooseRefstars.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.21 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 -
trunk/psastro/src/psastroCleanup.c
r20805 r21409 1 /** @file psastroCleanup.c 2 * 3 * @brief 4 * 5 * @ingroup psastro 6 * 7 * @author IfA 8 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroStandAlone.h" 2 14 -
trunk/psastro/src/psastroConvert.c
r16800 r21409 1 /** @file psastroConvert.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.25 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 // leak free 2006.04.27 … … 157 169 } 158 170 159 // sort by Mag (ascending) 171 /** 172 * sort by Mag (ascending) 173 */ 160 174 int psastroSortByMag (const void *a, const void *b) 161 175 { -
trunk/psastro/src/psastroDataLoad.c
r17038 r21409 1 /** @file psastroDataLoad.c 2 * 3 * @brief 4 * 5 * @ingroup psastro 6 * 7 * @author IfA 8 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroStandAlone.h" 2 // this loop loads the data from the input files and selects the3 // brighter stars for astrometry4 // at the end of this function, the complete stellar data is loaded5 // into the correct fpa structure locations (readout.analysis:PSPHOT.SOURCES)6 14 7 15 # define ESCAPE { \ … … 11 19 } 12 20 13 // all of the different astrometry analysis modes use the same data load loop 21 /** 22 * \brief this loop loads the data from the input files and selects the 23 * brighter stars for astrometry 24 * 25 * at the end of this function, the complete stellar data is loaded 26 * into the correct fpa structure locations (readout.analysis:PSPHOT.SOURCES) 27 * all of the different astrometry analysis modes use the same data load loop 28 */ 14 29 bool psastroDataLoad (pmConfig *config) { 15 30 -
trunk/psastro/src/psastroDataSave.c
r18007 r21409 1 /** @file psastroDataSave.c 2 * 3 * @brief 4 * 5 * @ingroup psastro 6 * 7 * @author IfA 8 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 … … 7 19 } 8 20 9 // this loop saves the photometry/astrometry data files 21 /** 22 * this loop saves the photometry/astrometry data files 23 */ 10 24 bool psastroDataSave (pmConfig *config) { 11 25 -
trunk/psastro/src/psastroDefineFiles.c
r20641 r21409 1 /** @file psastroDefineFiles.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 -
trunk/psastro/src/psastroDemoDump.c
r19511 r21409 1 /** @file psastroMosaicDemoDump.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 3 // this function is used for test purposes (-trace psastro.dump.psastroAstromGuess 1) 15 /** 16 * this function is used for test purposes 17 * (-trace psastro.dump.psastroAstromGuess 1) 18 */ 4 19 bool psastroDumpStars (psArray *stars, char *filename) { 5 20 … … 20 35 } 21 36 22 // this function is used for test purposes (-trace psastro.dump.psastroAstromGuess 1) 37 /** this function is used for test purposes 38 * (-trace psastro.dump.psastroAstromGuess 1) 39 */ 23 40 bool psastroDumpRawstars (psArray *rawstars, pmFPA *fpa, pmChip *chip) { 24 41 … … 97 114 } 98 115 99 // this function is used for test purposes (-trace psastro.dump.psastroLoadRefstars 1) 116 /** 117 * this function is used for test purposes 118 * (-trace psastro.dump.psastroLoadRefstars 1) 119 */ 100 120 bool psastroDumpRefstars (psArray *refstars, char *filename) { 101 121 … … 176 196 } 177 197 178 // this function is used for test purposes (-trace psastro.dump 1) 198 /** 199 * this function is used for test purposes (-trace psastro.dump 1) 200 */ 179 201 bool psastroDumpGradients (psArray *gradients, char *filename) { 180 202 -
trunk/psastro/src/psastroDemoPlot.c
r19594 r21409 1 /** @file psastroMosaicDemoPlot.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 -
trunk/psastro/src/psastroErrorCodes.c.in
r11274 r21409 1 /** @file psastroErrorCodes.c 2 * 3 * @brief 4 * 5 * @ingroup psastro 6 * 7 * @author IfA 8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 13 #include "pslib.h" 14 #include "psastroErrorCodes.h" 15 1 16 /* 2 17 * The line … … 5 20 * will be replaced by values from errorCodes.dat 6 21 */ 7 #include "pslib.h"8 #include "psastroErrorCodes.h"9 10 22 void psastroErrorRegister(void) 11 23 { -
trunk/psastro/src/psastroErrorCodes.h.in
r9580 r21409 1 /** @file psastroErrorCodes.h 2 * 3 * @brief 4 * 5 * @ingroup psastro 6 * 7 * @author IfA 8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 #if !defined(PSASTRO_ERROR_CODES_H) 2 14 #define PSASTRO_ERROR_CODES_H -
trunk/psastro/src/psastroFixChips.c
r21183 r21409 1 /** @file psastroFixChips.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 # define NONLIN_TOL 0.001 / * tolerance in pixels */14 # define NONLIN_TOL 0.001 ///< tolerance in pixels 3 15 # define DEBUG 0 4 16 -
trunk/psastro/src/psastroFixChipsTest.c
r20271 r21409 1 /** @file psastroFixChipsTest.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 # define NONLIN_TOL 0.001 /* tolerance in pixels */ -
trunk/psastro/src/psastroInternal.h
r18007 r21409 1 /** @file psastroInternal.h 2 * 3 * @brief 4 * 5 * @ingroup psastro 6 * 7 * @author IfA 8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # ifdef HAVE_CONFIG_H 2 14 # include <config.h> -
trunk/psastro/src/psastroLoadRefstars.c
r20805 r21409 1 /** @file psastroLoadRefstars.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.35 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 # define ELIXIR_MODE 1 -
trunk/psastro/src/psastroLuminosityFunction.c
r21183 r21409 1 /** @file psastroLuminosityFunction.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 # define dMag 0.1 -
trunk/psastro/src/psastroMaskUpdates.c
r21183 r21409 1 /** @file psastroMaskUpdates.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 … … 17 29 void psastroMaskRectangle (psImage *mask, psImageMaskType value, int x0, int y0, int x1, int y1); 18 30 19 // create a mask or mask regions based on the collection of reference stars that are 20 // in the vicinity of each chip 31 /** 32 * create a mask or mask regions based on the collection of reference stars that * are in the vicinity of each chip 33 */ 21 34 bool psastroMaskUpdates (pmConfig *config) { 22 35 … … 327 340 } 328 341 329 // convert chip coords to cell coords, given known cell 342 /** 343 * convert chip coords to cell coords, given known cell 344 */ 330 345 bool pmCellCoordsForChip (float *xCell, float *yCell, pmCell *cell, float xChip, float yChip) { 331 346 … … 351 366 } 352 367 353 // convert chip coords to cell coords, given known cell 368 /** 369 * convert chip coords to cell coords, given known cell 370 */ 354 371 bool pmChipCoordsForCell (float *xChip, float *yChip, pmCell *cell, float xCell, float yCell) { 355 372 … … 412 429 } 413 430 414 // identify the quadrant and draw the correct line 431 /** 432 * identify the quadrant and draw the correct line 433 */ 415 434 void psastroMaskLine (psImage *mask, psImageMaskType value, double x1, double y1, double x2, double y2, int dW) { 416 435 … … 440 459 } 441 460 442 // use the Bresenham line drawing technique 443 // integer-only Bresenham line-draw version which is fast 461 /** 462 * use the Bresenham line drawing technique 463 * integer-only Bresenham line-draw version which is fast 464 */ 444 465 void psastroMaskLineBresen (psImage *mask, psImageMaskType value, int X1, int Y1, int X2, int Y2, int dW, int swapcoords) { 445 466 -
trunk/psastro/src/psastroMetadataStats.c
r18061 r21409 1 /** @file psastroMetaDataStats.c 2 * 3 * @brief 4 * 5 * @ingroup psastro 6 * 7 * @author IfA 8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 -
trunk/psastro/src/psastroModel.c
r15891 r21409 1 /** @file psastroModel.c 2 * 3 * @brief 4 * 5 * @ingroup psastroModel 6 * 7 * @author IfA 8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroStandAlone.h" 2 14 -
trunk/psastro/src/psastroModelAdjust.c
r19515 r21409 1 /** @file psastroModelAdjust.c 2 * 3 * @brief 4 * 5 * @ingroup psastroModel 6 * 7 * @author IfA 8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroStandAlone.h" 2 # define NONLIN_TOL 0.001 / * tolerance in pixels */14 # define NONLIN_TOL 0.001 ///< tolerance in pixels 3 15 # define DEBUG 0 4 16 -
trunk/psastro/src/psastroModelAnalysis.c
r19516 r21409 1 /** @file psastroModelAnalysis.c 2 * 3 * @brief 4 * 5 * @ingroup psastroModel 6 * 7 * @author IfA 8 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroStandAlone.h" 2 14 # define NONLIN_TOL 0.001 -
trunk/psastro/src/psastroModelArguments.c
r21390 r21409 1 /** @file psastroModelArguments.c 2 * 3 * @brief 4 * 5 * @ingroup psastroModel 6 * 7 * @author IfA 8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroStandAlone.h" 2 14 -
trunk/psastro/src/psastroModelBoresite.c
r19578 r21409 1 /** @file psastroModelBoresite.c 2 * 3 * @brief 4 * 5 * @ingroup psastroModel 6 * 7 * @author IfA 8 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroStandAlone.h" 2 14 3 // the full chisq is built of two associated sums over coordinates: 4 // chisq = sum ((X_obs - X_fit(t))^2 + (Y_obs - Y_fit(t))^2) 5 // we use split this into a 2x long vector and use coord[1] to distinguish the X and Y terms: 6 // coord[0] = measured X or measured Y 7 // coord[1] = 0 or 1 15 /** 16 * the full chisq is built of two associated sums over coordinates: 17 * chisq = sum ((X_obs - X_fit(t))^2 + (Y_obs - Y_fit(t))^2) 18 * we use split this into a 2x long vector and use coord[1] to distinguish the X and Y terms: 19 * coord[0] = measured X or measured Y 20 * coord[1] = 0 or 1 21 */ 8 22 psF32 psastroModelBoresite (psVector *deriv, const psVector *params, const psVector *coord) { 9 23 -
trunk/psastro/src/psastroModelDataLoad.c
r15891 r21409 1 /** @file psastroModelDataLoad.c 2 * 3 * @brief 4 * 5 * @ingroup psastroModel 6 * 7 * @author IfA 8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroStandAlone.h" 2 3 // this loop loads the header data from the input files, using the output pmFPAfile to guide4 // the chip selection and related issues5 14 6 15 # define ESCAPE { \ … … 10 19 } 11 20 12 // all of the different astrometry analysis modes use the same data load loop 21 /** 22 * this loop loads the header data from the input files, using the output 23 * pmFPAfile to guide the chip selection and related issues 24 * all of the different astrometry analysis modes use the same data load loop 25 */ 13 26 bool psastroModelDataLoad (pmConfig *config) { 14 27 -
trunk/psastro/src/psastroModelDataSave.c
r19517 r21409 1 /** @file psastroModelDataSave.c 2 * 3 * @brief 4 * 5 * @ingroup psastroModel 6 * 7 * @author IfA 8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroStandAlone.h" 2 # define NONLIN_TOL 0.001 / * tolerance in pixels */14 # define NONLIN_TOL 0.001 ///< tolerance in pixels 3 15 4 16 # define ESCAPE { \ -
trunk/psastro/src/psastroModelFit.c
r19576 r21409 1 /** @file psastroModelFit.c 2 * 3 * @brief 4 * 5 * @ingroup psastroModel 6 * 7 * @author IfA 8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroStandAlone.h" 2 14 -
trunk/psastro/src/psastroModelFitBoresite.c
r19577 r21409 1 /** @file psastroModelFitBoresite.c 2 * 3 * @brief 4 * 5 * @ingroup psastroModel 6 * 7 * @author IfA 8 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroStandAlone.h" 2 14 3 // we now have a set of observed L,M values. fit these to the boresite model 15 /** 16 * we now have a set of observed L,M values. fit these to the boresite model 17 */ 4 18 psVector *psastroModelFitBoresite (psVector *Xo, psVector *Yo, psVector *Po, char *outroot) { 5 19 -
trunk/psastro/src/psastroModelParseCamera.c
r15891 r21409 1 /** @file psastroModelParseCamera.c 2 * 3 * @brief 4 * 5 * @ingroup psastroModel 6 * 7 * @author IfA 8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 -
trunk/psastro/src/psastroMosaicAstrom.c
r20800 r21409 1 /** @file psastroMosaicAstrom.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 # define NONLIN_TOL 0.001 /* tolerance in pixels */ -
trunk/psastro/src/psastroMosaicChipAstrom.c
r20802 r21409 1 /** @file psastroMosaiciChipAstrom.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 # define NONLIN_TOL 0.001 / * tolerance in pixels */14 # define NONLIN_TOL 0.001 ///< tolerance in pixels 3 15 4 16 bool psastroMosaicChipAstrom (pmFPA *fpa, psMetadata *recipe, int iteration) { -
trunk/psastro/src/psastroMosaicCorrectDistortion.c
r19314 r21409 1 /** @file psastroMosaicCorrectDistortion.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 -
trunk/psastro/src/psastroMosaicDistortion.c
r19519 r21409 1 /** @file psastroMosaicDistortion.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 # define DEBUG 0 -
trunk/psastro/src/psastroMosaicFPtoTP.c
r21183 r21409 1 /** @file psastroMosaicFPtoTP.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 3 /************************************************/4 15 psPlaneTransform *psastroMosaicFitRotAndScale (pmFPA *fpa) { 5 16 … … 115 126 } 116 127 117 /*****************************/118 128 bool psastroMosaicApplyRotAndScale (pmFPA *fpa, psPlaneTransform *TPtoFP) { 119 129 -
trunk/psastro/src/psastroMosaicGradients.c
r19311 r21409 1 /** @file psastroMosaicGradients.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 static int nPass = 0; -
trunk/psastro/src/psastroMosaicOneChip.c
r20803 r21409 1 /** @file psastroMosaicOneChip.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 -
trunk/psastro/src/psastroMosaicSetAstrom.c
r17108 r21409 1 /** @file psastroMosaicSetAstrom.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 -
trunk/psastro/src/psastroMosaicSetMatch.c
r20805 r21409 1 /** @file psastroMosaicSetMatch.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 -
trunk/psastro/src/psastroOneChipFit.c
r20805 r21409 1 /** @file psastroOneChipFit.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 -
trunk/psastro/src/psastroOneChipGrid.c
r16070 r21409 1 /** @file psastroOneChipGrid.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 -
trunk/psastro/src/psastroParseCamera.c
r19557 r21409 1 /** @file psastroParseCamera.c 2 * 3 * @brief 4 * 5 * @ingroup psastro 6 * 7 * @author IfA 8 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 -
trunk/psastro/src/psastroRefstarSubset.c
r20038 r21409 1 /** @file psastroRefstarSubset.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 -
trunk/psastro/src/psastroRemoveClumps.c
r20805 r21409 1 /** @file psastroRemoveClumps.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 3 // look for and exclude objects in clumps in the input list 15 /** 16 * look for and exclude objects in clumps in the input list 17 */ 4 18 psArray *psastroRemoveClumps (psArray *input, int scale) { 5 19 … … 75 89 76 90 # if (0) 77 // make a list of the outlier pixels 91 /** 92 * make a list of the outlier pixels 93 */ 78 94 psArray *badpix = psArrayAllocEmpty (16); 79 95 for (int iy = 0; iy < count->numRows; iy++) { -
trunk/psastro/src/psastroStandAlone.h
r19387 r21409 1 /** @file psastroStandAlone.h 2 * 3 * @brief 4 * 5 * @ingroup psastro 6 * 7 * @author IfA 8 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # ifdef HAVE_CONFIG_H 2 14 # include <config.h> -
trunk/psastro/src/psastroTestFuncs.c
r15258 r21409 1 /** @file psastroTestFuncs.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 3 // write out objects 15 /** 16 * write out objects 17 */ 4 18 bool psastroWriteStars (char *filename, psArray *sources) { 5 19 -
trunk/psastro/src/psastroUseModel.c
r19520 r21409 1 /** @file psastroMosiacAstrom.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 # define NONLIN_TOL 0.001 / * tolerance in pixels */14 # define NONLIN_TOL 0.001 ///< tolerance in pixels 3 15 # define DEBUG 0 4 16 5 // apply the generic astrometry model to this image. this assumes the WCS terms either do not 6 // exist or are invalid 17 /** 18 * Apply the generic astrometry model to this image. This assumes the WCS i 19 * terms either do not exist or are invalid 20 */ 7 21 bool psastroUseModel (pmConfig *config, psMetadata *recipe) { 8 22 -
trunk/psastro/src/psastroUtils.c
r20804 r21409 1 /** @file psastroUtils.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.24 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 # define RENORM 0 -
trunk/psastro/src/psastroVersion.c
r12806 r21409 1 /** @file psastroVersion.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 #include "psastroInternal.h" 2 14 3 static const char *cvsTag = "$Name: not supported by cvs2svn $";// CVS tag name15 static const char *cvsTag = "$Name: not supported by cvs2svn $";///< CVS tag name 4 16 5 17 psString psastroVersion(void) -
trunk/psastro/src/psastroVisual.c
r20805 r21409 1 /***********************************/ 2 /***Diagnostic plots for psastro****/ 3 /***********************************/ 1 /** @file psastroVisual.c 2 * 3 * @brief Diagnostic plots for psastro 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 4 13 #ifdef HAVE_CONFIG_H 5 14 #include <config.h> … … 47 56 /*****************************/ 48 57 49 /** start or stop plotting */ 58 /** 59 * start or stop plotting 60 */ 50 61 bool psastroSetVisual (bool mode) { 51 62 isVisual = mode; … … 54 65 55 66 56 /** open, name, and resize a window if necessary*/ 67 /** 68 * open, name, and resize a window if necessary 69 */ 57 70 bool psastroVisualInitWindow( int *kapid, char *name ) { 58 71 if (*kapid == -1) { … … 69 82 70 83 71 /** ask the user how to proceed*/ 84 /** 85 * ask the user how to proceed 86 */ 72 87 bool psastroVisualAskUser( bool *plotflag ) { 73 88 char key[10]; … … 87 102 88 103 89 /** destroy windows at the end of a run*/ 104 /** 105 * destroy windows at the end of a run 106 */ 90 107 bool psastroVisualClose() { 91 108 if(kapa != -1) -
trunk/psastro/src/psastroZeroPoint.c
r20268 r21409 1 /** @file psastroMosaicZeroPoint.c 2 * 3 * @brief 4 * 5 * @ingroup libpsastro 6 * 7 * @author IfA 8 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 02:03:34 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "psastroInternal.h" 2 14 … … 69 81 } 70 82 71 // we measure <dMag> and \sigma_dMag and write them to the header 83 /** 84 * we measure <dMag> and \sigma_dMag and write them to the header 85 */ 72 86 bool psastroZeroPointReadout(pmReadout *readout, float zeropt, float exptime) { 73 87
Note:
See TracChangeset
for help on using the changeset viewer.
