- Timestamp:
- Mar 31, 2014, 2:36:01 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 96 edited
- 3 copied
-
. (modified) (1 prop)
-
Ohana/src/libohana/src (modified) (1 prop)
-
Ohana/src/opihi/include/pantasks.h (modified) (2 diffs)
-
Ohana/src/opihi/include/pcontrol.h (modified) (2 diffs)
-
Ohana/src/opihi/pantasks/ControllerOps.c (modified) (1 diff)
-
Ohana/src/opihi/pantasks/JobOps.c (modified) (1 diff)
-
Ohana/src/opihi/pantasks/LocalJob.c (modified) (1 diff)
-
Ohana/src/opihi/pantasks/TaskOps.c (modified) (1 diff)
-
Ohana/src/opihi/pantasks/init.c (modified) (1 diff)
-
Ohana/src/opihi/pantasks/init_server.c (modified) (1 diff)
-
Ohana/src/opihi/pantasks/task_nice.c (modified) (2 diffs)
-
Ohana/src/opihi/pclient/job.c (modified) (2 diffs)
-
Ohana/src/opihi/pcontrol/JobOps.c (modified) (2 diffs)
-
Ohana/src/opihi/pcontrol/StartJob.c (modified) (1 diff)
-
Ohana/src/opihi/pcontrol/job.c (modified) (4 diffs)
-
Ohana/src/opihi/pcontrol/status.c (modified) (1 diff)
-
ippScripts/scripts/ipp_apply_burntool_single.pl (modified) (1 prop)
-
ippScripts/scripts/publish_file.pl (modified) (1 prop)
-
ippTools/src/fftool.c (modified) (1 diff)
-
ippTools/src/remotetool.c (modified) (3 diffs)
-
ippconfig/recipes/ppSub.config (modified) (1 prop)
-
ippconfig/recipes/reductionClasses.mdc (modified) (1 prop)
-
psModules/src/camera/pmFPAfileIO.c (modified) (1 diff)
-
psModules/src/camera/pmReadoutFake.c (modified) (1 diff)
-
psModules/src/extras/pmThreadTools.c (modified) (1 diff)
-
psModules/src/extras/pmVisual.c (modified) (1 diff)
-
psModules/src/imcombine/pmPSFEnvelope.c (modified) (1 diff)
-
psModules/src/imcombine/pmSubtractionSimple.c (modified) (1 diff)
-
psModules/src/imcombine/pmSubtractionStamps.c (modified) (1 diff)
-
psModules/src/objects (modified) (1 prop)
-
psModules/src/objects/Makefile.am (modified) (5 diffs)
-
psModules/src/objects/mksource.pl (modified) (1 diff)
-
psModules/src/objects/models/pmModel_DEV.c (modified) (1 diff)
-
psModules/src/objects/models/pmModel_EXP.c (modified) (1 diff)
-
psModules/src/objects/models/pmModel_GAUSS.c (modified) (1 diff)
-
psModules/src/objects/models/pmModel_PGAUSS.c (modified) (1 diff)
-
psModules/src/objects/models/pmModel_PS1_V1.c (modified) (1 diff)
-
psModules/src/objects/models/pmModel_QGAUSS.c (modified) (1 diff)
-
psModules/src/objects/models/pmModel_RGAUSS.c (modified) (1 diff)
-
psModules/src/objects/models/pmModel_SERSIC.c (modified) (1 diff)
-
psModules/src/objects/models/pmModel_TRAIL.c (modified) (1 diff)
-
psModules/src/objects/pmDetEff.c (modified) (1 diff)
-
psModules/src/objects/pmGrowthCurve.c (modified) (1 diff)
-
psModules/src/objects/pmGrowthCurveGenerate.c (modified) (1 diff)
-
psModules/src/objects/pmModelUtils.c (modified) (1 diff)
-
psModules/src/objects/pmMoments.h (modified) (1 diff)
-
psModules/src/objects/pmPCM_MinimizeChisq.c (modified) (1 diff)
-
psModules/src/objects/pmPCMdata.c (modified) (1 diff)
-
psModules/src/objects/pmPSF.c (modified) (1 diff)
-
psModules/src/objects/pmPSF_IO.c (modified) (1 diff)
-
psModules/src/objects/pmPSFtry.c (modified) (1 diff)
-
psModules/src/objects/pmPSFtryFitEXT.c (modified) (1 diff)
-
psModules/src/objects/pmPSFtryFitPSF.c (modified) (2 diffs)
-
psModules/src/objects/pmPSFtryMakePSF.c (modified) (1 diff)
-
psModules/src/objects/pmPSFtryMetric.c (modified) (1 diff)
-
psModules/src/objects/pmPSFtryModel.c (modified) (2 diffs)
-
psModules/src/objects/pmPhotObj.c (modified) (1 diff)
-
psModules/src/objects/pmSource.c (modified) (4 diffs)
-
psModules/src/objects/pmSource.h (modified) (1 diff)
-
psModules/src/objects/pmSourceContour.c (modified) (1 diff)
-
psModules/src/objects/pmSourceExtendedPars.h (modified) (1 diff)
-
psModules/src/objects/pmSourceFitModel.c (modified) (1 diff)
-
psModules/src/objects/pmSourceFitPCM.c (modified) (1 diff)
-
psModules/src/objects/pmSourceFitSet.c (modified) (1 diff)
-
psModules/src/objects/pmSourceGroups.c (modified) (1 diff)
-
psModules/src/objects/pmSourceIO.c (modified) (7 diffs)
-
psModules/src/objects/pmSourceIO.h (modified) (1 diff)
-
psModules/src/objects/pmSourceIO_CFF.c (modified) (1 diff)
-
psModules/src/objects/pmSourceIO_CMF.c.in (modified) (2 diffs)
-
psModules/src/objects/pmSourceIO_CMP.c (modified) (1 diff)
-
psModules/src/objects/pmSourceIO_MatchedRefs.c (modified) (1 diff)
-
psModules/src/objects/pmSourceIO_OBJ.c (modified) (1 diff)
-
psModules/src/objects/pmSourceIO_PS1_CAL_0.c (modified) (1 diff)
-
psModules/src/objects/pmSourceIO_PS1_DEV_0.c (modified) (1 diff)
-
psModules/src/objects/pmSourceIO_PS1_DEV_1.c (modified) (1 diff)
-
psModules/src/objects/pmSourceIO_RAW.c (modified) (1 diff)
-
psModules/src/objects/pmSourceIO_SMPDATA.c (modified) (1 diff)
-
psModules/src/objects/pmSourceIO_SX.c (modified) (1 diff)
-
psModules/src/objects/pmSourceLensing.c (copied) (copied from branches/eam_branches/ipp-20140226/psModules/src/objects/pmSourceLensing.c )
-
psModules/src/objects/pmSourceLensing.h (copied) (copied from branches/eam_branches/ipp-20140226/psModules/src/objects/pmSourceLensing.h )
-
psModules/src/objects/pmSourceMatch.c (modified) (1 diff)
-
psModules/src/objects/pmSourceMoments.c (modified) (2 diffs)
-
psModules/src/objects/pmSourceOutputs.c (modified) (1 diff)
-
psModules/src/objects/pmSourcePhotometry.c (modified) (1 diff)
-
psModules/src/objects/pmSourcePlotApResid.c (modified) (1 diff)
-
psModules/src/objects/pmSourcePlotMoments.c (modified) (1 diff)
-
psModules/src/objects/pmSourcePlotPSFModel.c (modified) (1 diff)
-
psModules/src/objects/pmSourceSky.c (modified) (1 diff)
-
psModules/src/objects/pmSourceUtils.c (modified) (1 diff)
-
psModules/src/objects/pmSourceVisual.c (modified) (1 diff)
-
psModules/src/psmodules.h (modified) (1 diff)
-
psphot/src (modified) (1 prop)
-
psphot/src/Makefile.am (modified) (1 diff)
-
psphot/src/psphot.h (modified) (1 diff)
-
psphot/src/psphotApResid.c (modified) (2 diffs)
-
psphot/src/psphotChoosePSF.c (modified) (1 diff)
-
psphot/src/psphotLensing.c (copied) (copied from branches/eam_branches/ipp-20140226/psphot/src/psphotLensing.c )
-
psphot/src/psphotReadout.c (modified) (2 diffs)
-
psphot/src/psphotStackImageLoop.c (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20140226 (added) merged: 36561,36563,36619-36622
- Property svn:mergeinfo changed
-
trunk/Ohana/src/libohana/src
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20140226/Ohana/src/libohana/src (added) merged: 36622
- Property svn:mergeinfo changed
-
trunk/Ohana/src/opihi/include/pantasks.h
r32632 r36623 116 116 117 117 int active; 118 int priority;118 int nicelevel; 119 119 120 120 } Task; … … 161 161 162 162 JobMode mode; /* local or controller? */ 163 int priority;163 int nicelevel; 164 164 char *realhost; 165 165 -
trunk/Ohana/src/opihi/include/pcontrol.h
r36375 r36623 120 120 int exit_status; 121 121 int Reset; 122 int priority;122 int nicelevel; 123 123 JobMode mode; 124 124 JobStat state; … … 315 315 Job *PullJobByID (IDtype JobID, int *StackID); 316 316 Job *PullJobFromStackByID (int StackID, int ID); 317 IDtype AddJob (char *hostname, JobMode mode, int timeout, int priority, int argc, char **argv, int Nxhosts, char **xhosts);317 IDtype AddJob (char *hostname, JobMode mode, int timeout, int nicelevel, int argc, char **argv, int Nxhosts, char **xhosts); 318 318 void DelJob (Job *job); 319 319 Host *UnlinkJobAndHost (Job *job); -
trunk/Ohana/src/opihi/pantasks/ControllerOps.c
r34088 r36623 259 259 } 260 260 261 if (job[0]. priority) {261 if (job[0].nicelevel) { 262 262 char tmp[64]; 263 snprintf (tmp, 64, " -nice %d", job[0]. priority);263 snprintf (tmp, 64, " -nice %d", job[0].nicelevel); 264 264 strcat (cmd, tmp); 265 265 } -
trunk/Ohana/src/opihi/pantasks/JobOps.c
r32632 r36623 107 107 job[0].mode = JOB_CONTROLLER; 108 108 } 109 job[0]. priority = task[0].priority;109 job[0].nicelevel = task[0].nicelevel; 110 110 111 111 /* we need our own copy of task[0].argv argc is the number of valid args, like the usual command line. we -
trunk/Ohana/src/opihi/pantasks/LocalJob.c
r32632 r36623 162 162 163 163 /* set nice level for the child process -- maybe I should not exit here... */ 164 if (job[0]. priority) {165 status = setpriority (PRIO_PROCESS, pid, job[0]. priority);164 if (job[0].nicelevel) { 165 status = setpriority (PRIO_PROCESS, pid, job[0].nicelevel); 166 166 if (status == -1) { 167 gprint (GP_ERR, "error setting priority\n");167 gprint (GP_ERR, "error setting nice level\n"); 168 168 perror ("setpriority: "); 169 169 exit (2); -
trunk/Ohana/src/opihi/pantasks/TaskOps.c
r32632 r36623 487 487 488 488 NewTask[0].active = TRUE; 489 NewTask[0]. priority= 0;489 NewTask[0].nicelevel = 0; 490 490 return (NewTask); 491 491 } -
trunk/Ohana/src/opihi/pantasks/init.c
r32632 r36623 34 34 {1, "halt", halt, "halt the scheduler (no job harvesting)"}, 35 35 {1, "host", task_host, "define host machine for a task"}, 36 {1, "nice", task_nice, "set nice prioritylevel for a task"},36 {1, "nice", task_nice, "set nice level for a task"}, 37 37 {1, "ipptool2book", ipptool2book, "convert queue with ipptool output to book"}, 38 38 {1, "kill", kill_job, "kill job"}, -
trunk/Ohana/src/opihi/pantasks/init_server.c
r32632 r36623 35 35 {1, "delete", delete_job, "delete job"}, 36 36 {1, "host", task_host, "define host machine for a task"}, 37 {1, "nice", task_nice, "set nice prioritylevel for a task"},37 {1, "nice", task_nice, "set nice level for a task"}, 38 38 {1, "ipptool2book", ipptool2book, "convert queue with ipptool output to book"}, 39 39 {1, "kill", kill_job, "kill job"}, -
trunk/Ohana/src/opihi/pantasks/task_nice.c
r32632 r36623 4 4 5 5 char *endptr = NULL; 6 int priority;6 int nicelevel; 7 7 Task *task; 8 8 9 9 if (argc != 2) { 10 gprint (GP_ERR, "USAGE: nice ( priority)\n");10 gprint (GP_ERR, "USAGE: nice (nicelevel)\n"); 11 11 return (FALSE); 12 12 } … … 20 20 } 21 21 22 priority= strtol (argv[1], &endptr, 10);22 nicelevel = strtol (argv[1], &endptr, 10); 23 23 if (*endptr) goto fail; 24 if ( priority< 0) goto fail;25 if ( priority> 20) goto fail;24 if (nicelevel < 0) goto fail; 25 if (nicelevel > 20) goto fail; 26 26 27 task[0]. priority = priority;27 task[0].nicelevel = nicelevel; 28 28 JobTaskUnlock(); 29 29 return (TRUE); 30 30 31 31 fail: 32 gprint (GP_ERR, "ERROR: nice ( priority) -- prioritymust be an integer 0 to 20\n");32 gprint (GP_ERR, "ERROR: nice (nicelevel) -- nicelevel must be an integer 0 to 20\n"); 33 33 return (FALSE); 34 34 } -
trunk/Ohana/src/opihi/pclient/job.c
r32632 r36623 3 3 int job (int argc, char **argv) { 4 4 5 int i, N, pid, status, priority;5 int i, N, pid, status, nicelevel; 6 6 char **targv; 7 7 8 priority= 0;8 nicelevel = 0; 9 9 if ((N = get_argument (argc, argv, "-nice"))) { 10 10 remove_argument (N, &argc, argv); 11 priority= atoi (argv[N]);11 nicelevel = atoi (argv[N]); 12 12 remove_argument (N, &argc, argv); 13 13 } … … 62 62 63 63 /* set nice level for the child process */ 64 if ( priority) {65 status = setpriority (PRIO_PROCESS, pid, priority);64 if (nicelevel) { 65 status = setpriority (PRIO_PROCESS, pid, nicelevel); 66 66 if (status == -1) { 67 gprint (GP_ERR, "error setting priority\n");67 gprint (GP_ERR, "error setting nicelevel\n"); 68 68 perror ("setpriority: "); 69 69 exit (2); -
trunk/Ohana/src/opihi/pcontrol/JobOps.c
r36375 r36623 207 207 } 208 208 209 IDtype AddJob (char *hostname, JobMode mode, int timeout, int priority, int argc, char **argv, int Nxhosts, char **xhosts) {209 IDtype AddJob (char *hostname, JobMode mode, int timeout, int nicelevel, int argc, char **argv, int Nxhosts, char **xhosts) { 210 210 211 211 int JobID; … … 232 232 233 233 job[0].mode = mode; 234 job[0]. priority = priority;234 job[0].nicelevel = nicelevel; 235 235 236 236 job[0].state = 0; -
trunk/Ohana/src/opihi/pcontrol/StartJob.c
r32632 r36623 25 25 bzero (line, Nline); 26 26 strcpy (line, "job"); 27 if (job[0]. priority) {27 if (job[0].nicelevel) { 28 28 char tmp[64]; 29 snprintf (tmp, 64, " -nice %d", job[0]. priority);29 snprintf (tmp, 64, " -nice %d", job[0].nicelevel); 30 30 strcat (line, tmp); 31 31 } -
trunk/Ohana/src/opihi/pcontrol/job.c
r32632 r36623 5 5 char *Host = NULL; 6 6 char **targv = NULL; 7 int i, N, Mode, targc, Timeout, priority;7 int i, N, Mode, targc, Timeout, nicelevel; 8 8 IDtype JobID; 9 9 char **xhosts = NULL; … … 43 43 } 44 44 45 priority= 0;45 nicelevel = 0; 46 46 if ((N = get_argument (argc, argv, "-nice"))) { 47 47 remove_argument (N, &argc, argv); 48 priority= atoi (argv[N]);48 nicelevel = atoi (argv[N]); 49 49 remove_argument (N, &argc, argv); 50 50 } … … 76 76 77 77 // a JobID < 0 mean the job was not accepted 78 JobID = AddJob (Host, Mode, Timeout, priority, targc, targv, Nxhosts, xhosts);78 JobID = AddJob (Host, Mode, Timeout, nicelevel, targc, targv, Nxhosts, xhosts); 79 79 gprint (GP_LOG, "JobID: %d\n", (int) JobID); 80 80 return (TRUE); … … 82 82 usage: 83 83 gprint (GP_ERR, "USAGE: job [options] (arg0) (arg1) ... (argN)\n"); 84 gprint (GP_ERR, " options: -host, +host, -timeout, -xhost (host) \n");84 gprint (GP_ERR, " options: -host, +host, -timeout, -xhost (host) -nice (level)\n"); 85 85 gprint (GP_ERR, " arguments of the form @MAX_THREADS@ will be replaced when the job is launched\n"); 86 86 -
trunk/Ohana/src/opihi/pcontrol/status.c
r36375 r36623 154 154 155 155 PrintID (GP_LOG, job[0].JobID); 156 gprint (GP_LOG, " %2d ", job[0]. priority);156 gprint (GP_LOG, " %2d ", job[0].nicelevel); 157 157 for (j = 0; j < job[0].argc; j++) { 158 158 gprint (GP_LOG, "%s ", job[0].argv[j]); -
trunk/ippScripts/scripts/ipp_apply_burntool_single.pl
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20140226/ippScripts/scripts/ipp_apply_burntool_single.pl (added) merged: 36622
- Property svn:mergeinfo changed
-
trunk/ippScripts/scripts/publish_file.pl
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20140226/ippScripts/scripts/publish_file.pl (added) merged: 36622
- Property svn:mergeinfo changed
-
trunk/ippTools/src/fftool.c
r36555 r36623 180 180 psString whereClause = psDBGenerateWhereConditionSQL(skycalWhereMD, NULL); 181 181 psStringAppend(&where, "\nAND %s", whereClause); 182 psStringAppend(&select, where);182 psStringAppend(&select, " %s", where); 183 183 psFree(whereClause); 184 184 psFree(skycalWhereMD); -
trunk/ippTools/src/remotetool.c
r36515 r36623 149 149 psFree(limitString); 150 150 } 151 if (!p_psDBRunQuery F(config->dbh, query)) {151 if (!p_psDBRunQuery(config->dbh, query)) { 152 152 psError(PS_ERR_UNKNOWN, false, "database error"); 153 153 psFree(query); … … 313 313 { 314 314 PS_ASSERT_PTR_NON_NULL(config, false); 315 PXOPT_LOOKUP_S64(remote_id, config->args, "-remote_id", true, false);315 // PXOPT_LOOKUP_S64(remote_id, config->args, "-remote_id", true, false); 316 316 317 317 psMetadata *where = psMetadataAlloc(); … … 341 341 { 342 342 PS_ASSERT_PTR_NON_NULL(config, false); 343 PXOPT_LOOKUP_S64(remote_id, config->args, "-remote_id", true, false);343 // PXOPT_LOOKUP_S64(remote_id, config->args, "-remote_id", true, false); 344 344 345 345 psMetadata *where = psMetadataAlloc(); -
trunk/ippconfig/recipes/ppSub.config
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20140226/ippconfig/recipes/ppSub.config (added) merged: 36622
- Property svn:mergeinfo changed
-
trunk/ippconfig/recipes/reductionClasses.mdc
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20140226/ippconfig/recipes/reductionClasses.mdc (added) merged: 36622
- Property svn:mergeinfo changed
-
trunk/psModules/src/camera/pmFPAfileIO.c
r36375 r36623 39 39 #include "pmSourceDiffStats.h" 40 40 #include "pmSourceSatstar.h" 41 #include "pmSourceLensing.h" 41 42 #include "pmSource.h" 42 43 #include "pmSourceFitModel.h" -
trunk/psModules/src/camera/pmReadoutFake.c
r35768 r36623 27 27 #include "pmSourceDiffStats.h" 28 28 #include "pmSourceSatstar.h" 29 #include "pmSourceLensing.h" 29 30 #include "pmSource.h" 30 31 #include "pmSourceFitModel.h" -
trunk/psModules/src/extras/pmThreadTools.c
r35768 r36623 37 37 #include "pmSourcePhotometry.h" 38 38 #include "pmSourceSatstar.h" 39 #include "pmSourceLensing.h" 39 40 #include "pmSource.h" 40 41 -
trunk/psModules/src/extras/pmVisual.c
r34403 r36623 41 41 // #include "pmSourceDiffStats.h" 42 42 #include "pmSourceSatstar.h" 43 // #include "pmSourceLensing.h" 43 44 // #include "pmSource.h" 44 45 // #include "pmSourceFitModel.h" -
trunk/psModules/src/imcombine/pmPSFEnvelope.c
r35455 r36623 27 27 #include "pmSourceDiffStats.h" 28 28 #include "pmSourceSatstar.h" 29 #include "pmSourceLensing.h" 29 30 #include "pmSource.h" 30 31 #include "pmSourceFitModel.h" -
trunk/psModules/src/imcombine/pmSubtractionSimple.c
r35938 r36623 34 34 #include "pmSourceSatstar.h" 35 35 36 #include "pmSourceLensing.h" 36 37 #include "pmSource.h" 37 38 -
trunk/psModules/src/imcombine/pmSubtractionStamps.c
r34403 r36623 26 26 #include "pmSourceDiffStats.h" 27 27 #include "pmSourceSatstar.h" 28 #include "pmSourceLensing.h" 28 29 #include "pmSource.h" 29 30 -
trunk/psModules/src/objects
- Property svn:ignore
-
old new 12 12 pmSourceIO_CMF_PS1_V1.v1.c 13 13 pmSourceIO_CMF_PS1_V4.c 14 pmSourceIO_CMF_PS1_V5.c 14 15 pmSourceIO_CMF_PS1_SV1.c 15 16 pmSourceIO_CMF_PS1_SV2.c
-
- Property svn:ignore
-
trunk/psModules/src/objects/Makefile.am
r36375 r36623 49 49 pmSourceIO_CMF_PS1_V3.c \ 50 50 pmSourceIO_CMF_PS1_V4.c \ 51 pmSourceIO_CMF_PS1_V5.c \ 51 52 pmSourceIO_CMF_PS1_SV1.c \ 52 53 pmSourceIO_CMF_PS1_SV2.c \ … … 76 77 pmGrowthCurve.c \ 77 78 pmSourceMatch.c \ 79 pmSourceLensing.c \ 78 80 pmDetEff.c \ 79 81 pmSourceGroups.c \ … … 125 127 pmGrowthCurveGenerate.h \ 126 128 pmSourceMatch.h \ 129 pmSourceLensing.h \ 127 130 pmDetEff.h \ 128 131 pmSourceGroups.h \ … … 145 148 pmSourceIO_CMF_PS1_V3.c \ 146 149 pmSourceIO_CMF_PS1_V4.c \ 150 pmSourceIO_CMF_PS1_V5.c \ 147 151 pmSourceIO_CMF_PS1_DV1.c \ 148 152 pmSourceIO_CMF_PS1_DV2.c \ … … 163 167 mksource.pl pmSourceIO_CMF.c.in PS1_V4 pmSourceIO_CMF_PS1_V4.c 164 168 169 pmSourceIO_CMF_PS1_V5.c : pmSourceIO_CMF.c.in mksource.pl 170 mksource.pl pmSourceIO_CMF.c.in PS1_V5 pmSourceIO_CMF_PS1_V5.c 171 165 172 pmSourceIO_CMF_PS1_DV1.c : pmSourceIO_CMF.c.in mksource.pl 166 173 mksource.pl pmSourceIO_CMF.c.in PS1_DV1 pmSourceIO_CMF_PS1_DV1.c -
trunk/psModules/src/objects/mksource.pl
r34403 r36623 19 19 "PS1_V3", 3, 20 20 "PS1_V4", 4, 21 "PS1_V5", 5, 21 22 ); 22 23 %cmfmodes_dv = ("PS1_DV1", 1, -
trunk/psModules/src/objects/models/pmModel_DEV.c
r36375 r36623 43 43 #include "pmSourceDiffStats.h" 44 44 #include "pmSourceSatstar.h" 45 #include "pmSourceLensing.h" 45 46 #include "pmSource.h" 46 47 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/models/pmModel_EXP.c
r36375 r36623 40 40 #include "pmSourceDiffStats.h" 41 41 #include "pmSourceSatstar.h" 42 #include "pmSourceLensing.h" 42 43 #include "pmSource.h" 43 44 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/models/pmModel_GAUSS.c
r36085 r36623 40 40 #include "pmSourceDiffStats.h" 41 41 #include "pmSourceSatstar.h" 42 #include "pmSourceLensing.h" 42 43 #include "pmSource.h" 43 44 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/models/pmModel_PGAUSS.c
r36085 r36623 40 40 #include "pmSourceDiffStats.h" 41 41 #include "pmSourceSatstar.h" 42 #include "pmSourceLensing.h" 42 43 #include "pmSource.h" 43 44 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/models/pmModel_PS1_V1.c
r36085 r36623 42 42 #include "pmSourceDiffStats.h" 43 43 #include "pmSourceSatstar.h" 44 #include "pmSourceLensing.h" 44 45 #include "pmSource.h" 45 46 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/models/pmModel_QGAUSS.c
r36085 r36623 42 42 #include "pmSourceDiffStats.h" 43 43 #include "pmSourceSatstar.h" 44 #include "pmSourceLensing.h" 44 45 #include "pmSource.h" 45 46 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/models/pmModel_RGAUSS.c
r36085 r36623 41 41 #include "pmSourceDiffStats.h" 42 42 #include "pmSourceSatstar.h" 43 #include "pmSourceLensing.h" 43 44 #include "pmSource.h" 44 45 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/models/pmModel_SERSIC.c
r36375 r36623 50 50 #include "pmSourceDiffStats.h" 51 51 #include "pmSourceSatstar.h" 52 #include "pmSourceLensing.h" 52 53 #include "pmSource.h" 53 54 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/models/pmModel_TRAIL.c
r36085 r36623 40 40 #include "pmSourceDiffStats.h" 41 41 #include "pmSourceSatstar.h" 42 #include "pmSourceLensing.h" 42 43 #include "pmSource.h" 43 44 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmDetEff.c
r34403 r36623 24 24 #include "pmSourceDiffStats.h" 25 25 #include "pmSourceSatstar.h" 26 #include "pmSourceLensing.h" 26 27 #include "pmSource.h" 27 28 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmGrowthCurve.c
r34403 r36623 37 37 #include "pmSourceDiffStats.h" 38 38 #include "pmSourceSatstar.h" 39 #include "pmSourceLensing.h" 39 40 #include "pmSource.h" 40 41 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmGrowthCurveGenerate.c
r34403 r36623 44 44 #include "pmSourceDiffStats.h" 45 45 #include "pmSourceSatstar.h" 46 #include "pmSourceLensing.h" 46 47 #include "pmSource.h" 47 48 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmModelUtils.c
r36375 r36623 39 39 #include "pmSourceDiffStats.h" 40 40 #include "pmSourceSatstar.h" 41 #include "pmSourceLensing.h" 41 42 #include "pmSource.h" 42 43 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmMoments.h
r32347 r36623 44 44 float Myyyy; ///< fourth moment 45 45 46 // float wSum; ///< window-weighted sum (NOT needed by lensing) 47 46 48 float Sum; ///< Pixel sum above sky (background). 47 49 float Peak; ///< Peak counts above sky. -
trunk/psModules/src/objects/pmPCM_MinimizeChisq.c
r36375 r36623 38 38 #include "pmSourceDiffStats.h" 39 39 #include "pmSourceSatstar.h" 40 #include "pmSourceLensing.h" 40 41 #include "pmSource.h" 41 42 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmPCMdata.c
r36375 r36623 38 38 #include "pmSourceDiffStats.h" 39 39 #include "pmSourceSatstar.h" 40 #include "pmSourceLensing.h" 40 41 #include "pmSource.h" 41 42 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmPSF.c
r35768 r36623 44 44 #include "pmSourceDiffStats.h" 45 45 #include "pmSourceSatstar.h" 46 #include "pmSourceLensing.h" 46 47 #include "pmSource.h" 47 48 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmPSF_IO.c
r34403 r36623 54 54 #include "pmSourceDiffStats.h" 55 55 #include "pmSourceSatstar.h" 56 #include "pmSourceLensing.h" 56 57 #include "pmSource.h" 57 58 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmPSFtry.c
r34403 r36623 36 36 #include "pmSourceDiffStats.h" 37 37 #include "pmSourceSatstar.h" 38 #include "pmSourceLensing.h" 38 39 #include "pmSource.h" 39 40 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmPSFtryFitEXT.c
r35768 r36623 36 36 #include "pmSourceDiffStats.h" 37 37 #include "pmSourceSatstar.h" 38 #include "pmSourceLensing.h" 38 39 #include "pmSource.h" 39 40 #include "pmSourceUtils.h" -
trunk/psModules/src/objects/pmPSFtryFitPSF.c
r36123 r36623 34 34 #include "pmSourceDiffStats.h" 35 35 #include "pmSourceSatstar.h" 36 #include "pmSourceLensing.h" 36 37 #include "pmSource.h" 37 38 #include "pmSourceFitModel.h" … … 120 121 pmSourceVisualShowModelFits (psfTry->psf, psfTry->sources, maskVal); 121 122 122 psLogMsg ("psphot.psftry", PS_LOG_MINUTIA, "fit psf: %f sec for %d of %ld sources \n", psTimerMark ("psf.fit"), Npsf, psfTry->sources->n);123 psLogMsg ("psphot.psftry", PS_LOG_MINUTIA, "fit psf: %f sec for %d of %ld sources (%d x %d model)\n", psTimerMark ("psf.fit"), Npsf, psfTry->sources->n, psfTry->psf->trendNx, psfTry->psf->trendNy); 123 124 psTrace ("psModules.object", 3, "keeping %d of %ld PSF candidates (PSF)\n", Npsf, psfTry->sources->n); 124 125 -
trunk/psModules/src/objects/pmPSFtryMakePSF.c
r35768 r36623 35 35 #include "pmSourceDiffStats.h" 36 36 #include "pmSourceSatstar.h" 37 #include "pmSourceLensing.h" 37 38 #include "pmSource.h" 38 39 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmPSFtryMetric.c
r34403 r36623 35 35 #include "pmSourceDiffStats.h" 36 36 #include "pmSourceSatstar.h" 37 #include "pmSourceLensing.h" 37 38 #include "pmSource.h" 38 39 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmPSFtryModel.c
r36123 r36623 36 36 #include "pmSourceDiffStats.h" 37 37 #include "pmSourceSatstar.h" 38 #include "pmSourceLensing.h" 38 39 #include "pmSource.h" 39 40 #include "pmSourceFitModel.h" … … 111 112 112 113 // set the max order (0 = constant) which the number of psf stars can support: 114 int MaxOrderForStars = 0; 115 116 // we require only 3 stars for n = 0, increase stars / cell for higher order 117 if (sources->n >= 16) MaxOrderForStars = 1; // 4 cells, 4 per cell 118 if (sources->n >= 54) MaxOrderForStars = 2; // 9 cells, 6 per cell 119 if (sources->n >= 128) MaxOrderForStars = 3; // 16 cells, 8 per cell 120 if (sources->n >= 300) MaxOrderForStars = 4; // 25 cells, 12 per cell 121 if (sources->n > 576) MaxOrderForStars = 5; // 36 cells, 16 per cell 122 113 123 // rule of thumb: require 3 stars per 'cell' (order+1)^2 114 int MaxOrderForStars = 0;115 if (sources->n >= 12) MaxOrderForStars = 1; // 4cells116 if (sources->n >= 27) MaxOrderForStars = 2; // 9cells117 if (sources->n >= 48) MaxOrderForStars = 3; // 16cells118 if (sources->n > 75) MaxOrderForStars = 4; // 25cells124 // if (sources->n >= 12) MaxOrderForStars = 1; // 4 cells 125 // if (sources->n >= 27) MaxOrderForStars = 2; // 9 cells 126 // if (sources->n >= 48) MaxOrderForStars = 3; // 16 cells 127 // if (sources->n >= 75) MaxOrderForStars = 4; // 25 cells 128 // if (sources->n > 108) MaxOrderForStars = 5; // 36 cells 119 129 120 130 int orderMax = PS_MAX (options->psfTrendNx, options->psfTrendNy); -
trunk/psModules/src/objects/pmPhotObj.c
r34403 r36623 36 36 #include "pmSourceDiffStats.h" 37 37 #include "pmSourceSatstar.h" 38 #include "pmSourceLensing.h" 38 39 #include "pmSource.h" 39 40 -
trunk/psModules/src/objects/pmSource.c
r36375 r36623 41 41 #include "pmSourcePhotometry.h" 42 42 #include "pmSourceSatstar.h" 43 #include "pmSourceLensing.h" 43 44 #include "pmSource.h" 44 45 … … 68 69 psFree(tmp->galaxyFits); 69 70 psFree(tmp->radialAper); 71 psFree(tmp->lensingOBJ); 72 psFree(tmp->lensingPSF); 70 73 psTrace("psModules.objects", 10, "---- end ----\n"); 71 74 } … … 166 169 source->diffStats = NULL; 167 170 source->galaxyFits = NULL; 171 source->lensingOBJ = NULL; 172 source->lensingPSF = NULL; 168 173 source->radialAper = NULL; 169 174 source->parent = NULL; … … 249 254 250 255 source->region = in->region; 256 257 // XXX I am not copying the pointers to things like the blends, satstar profile, galaxyFits, etc 251 258 252 259 return(source); -
trunk/psModules/src/objects/pmSource.h
r36375 r36623 120 120 pmSourceDiffStats *diffStats; ///< extra parameters for difference detections 121 121 pmSourceGalaxyFits *galaxyFits; ///< fits to galaxy models (psphotFullForce only) 122 pmSourceLensing *lensingOBJ; ///< lensing moments parameters (per object) 123 pmSourceLensing *lensingPSF; ///< lensing moments parameters (psf, interpolated) 122 124 psArray *radialAper; ///< radial flux in circular apertures 123 125 pmSource *parent; ///< reference to the master source from which this is derived -
trunk/psModules/src/objects/pmSourceContour.c
r34403 r36623 40 40 #include "pmSourceDiffStats.h" 41 41 #include "pmSourceSatstar.h" 42 #include "pmSourceLensing.h" 42 43 #include "pmSource.h" 43 44 -
trunk/psModules/src/objects/pmSourceExtendedPars.h
r36375 r36623 118 118 pmSourceGalaxyFits *pmSourceGalaxyFitsAlloc (void); 119 119 120 121 120 /// @} 122 121 # endif /* PM_SOURCE_H */ -
trunk/psModules/src/objects/pmSourceFitModel.c
r36375 r36623 40 40 #include "pmSourceDiffStats.h" 41 41 #include "pmSourceSatstar.h" 42 #include "pmSourceLensing.h" 42 43 #include "pmSource.h" 43 44 #include "pmSourcePhotometry.h" -
trunk/psModules/src/objects/pmSourceFitPCM.c
r36375 r36623 38 38 #include "pmSourceDiffStats.h" 39 39 #include "pmSourceSatstar.h" 40 #include "pmSourceLensing.h" 40 41 #include "pmSource.h" 41 42 #include "pmSourcePhotometry.h" -
trunk/psModules/src/objects/pmSourceFitSet.c
r36375 r36623 39 39 #include "pmSourceDiffStats.h" 40 40 #include "pmSourceSatstar.h" 41 #include "pmSourceLensing.h" 41 42 #include "pmSource.h" 42 43 #include "pmSourcePhotometry.h" -
trunk/psModules/src/objects/pmSourceGroups.c
r34403 r36623 25 25 #include "pmSourceDiffStats.h" 26 26 #include "pmSourceSatstar.h" 27 #include "pmSourceLensing.h" 27 28 #include "pmSource.h" 28 29 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmSourceIO.c
r36441 r36623 47 47 #include "pmSourceDiffStats.h" 48 48 #include "pmSourceSatstar.h" 49 #include "pmSourceLensing.h" 49 50 #include "pmSource.h" 50 51 #include "pmSourceFitModel.h" … … 597 598 PM_SOURCES_WRITE("PS1_V3", CMF_PS1_V3); 598 599 PM_SOURCES_WRITE("PS1_V4", CMF_PS1_V4); 600 PM_SOURCES_WRITE("PS1_V5", CMF_PS1_V5); 599 601 PM_SOURCES_WRITE("PS1_SV1", CMF_PS1_SV1); 600 602 PM_SOURCES_WRITE("PS1_SV2", CMF_PS1_SV2); … … 1116 1118 PM_SOURCES_READ_PSF("PS1_V3", CMF_PS1_V3); 1117 1119 PM_SOURCES_READ_PSF("PS1_V4", CMF_PS1_V4); 1120 PM_SOURCES_READ_PSF("PS1_V5", CMF_PS1_V5); 1118 1121 PM_SOURCES_READ_PSF("PS1_SV1", CMF_PS1_SV1); 1119 1122 PM_SOURCES_READ_PSF("PS1_SV2", CMF_PS1_SV2); … … 1389 1392 PM_SOURCES_READ_XSRC("PS1_V3", CMF_PS1_V3); 1390 1393 PM_SOURCES_READ_XSRC("PS1_V4", CMF_PS1_V4); 1394 PM_SOURCES_READ_XSRC("PS1_V5", CMF_PS1_V5); 1391 1395 PM_SOURCES_READ_XSRC("PS1_SV1", CMF_PS1_SV1); 1392 1396 PM_SOURCES_READ_XSRC("PS1_SV2", CMF_PS1_SV2); … … 1428 1432 PM_SOURCES_READ_XFIT("PS1_V3", CMF_PS1_V3); 1429 1433 PM_SOURCES_READ_XFIT("PS1_V4", CMF_PS1_V4); 1434 PM_SOURCES_READ_XFIT("PS1_V5", CMF_PS1_V5); 1430 1435 PM_SOURCES_READ_XFIT("PS1_SV1", CMF_PS1_SV1); 1431 1436 PM_SOURCES_READ_XFIT("PS1_SV2", CMF_PS1_SV2); … … 1466 1471 PM_SOURCES_READ_XRAD("PS1_V3", CMF_PS1_V3); 1467 1472 PM_SOURCES_READ_XRAD("PS1_V4", CMF_PS1_V4); 1473 PM_SOURCES_READ_XRAD("PS1_V5", CMF_PS1_V5); 1468 1474 PM_SOURCES_READ_XRAD("PS1_SV1", CMF_PS1_SV1); 1469 1475 PM_SOURCES_READ_XRAD("PS1_SV2", CMF_PS1_SV2); … … 1504 1510 PM_SOURCES_READ_XGAL("PS1_V3", CMF_PS1_V3); 1505 1511 PM_SOURCES_READ_XGAL("PS1_V4", CMF_PS1_V4); 1512 PM_SOURCES_READ_XGAL("PS1_V5", CMF_PS1_V5); 1506 1513 PM_SOURCES_READ_XGAL("PS1_SV1", CMF_PS1_SV1); 1507 1514 PM_SOURCES_READ_XGAL("PS1_SV2", CMF_PS1_SV2); -
trunk/psModules/src/objects/pmSourceIO.h
r36441 r36623 37 37 MK_PROTO(CMF_PS1_V3); 38 38 MK_PROTO(CMF_PS1_V4); 39 MK_PROTO(CMF_PS1_V5); 39 40 MK_PROTO(CMF_PS1_SV1); 40 41 MK_PROTO(CMF_PS1_SV2); -
trunk/psModules/src/objects/pmSourceIO_CFF.c
r36441 r36623 44 44 #include "pmSourceDiffStats.h" 45 45 #include "pmSourceSatstar.h" 46 #include "pmSourceLensing.h" 46 47 #include "pmSource.h" 47 48 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmSourceIO_CMF.c.in
r36441 r36623 44 44 #include "pmSourceDiffStats.h" 45 45 #include "pmSourceSatstar.h" 46 #include "pmSourceLensing.h" 46 47 #include "pmSource.h" 47 48 #include "pmSourceFitModel.h" … … 178 179 @>PS1_V2,PS1_SV?@ psMetadataAdd (row, PS_LIST_TAIL, "MOMENTS_M4C", PS_DATA_F32, "fourth momemt cos theta", moments.M_c4); 179 180 @>PS1_V2,PS1_SV?@ psMetadataAdd (row, PS_LIST_TAIL, "MOMENTS_M4S", PS_DATA_F32, "fourth momemt sin theta", moments.M_s4); 181 182 // Lensing parameters: 183 if (source->lensingOBJ && source->lensingOBJ->smear) { 184 @>PS1_V4@ psMetadataAdd (row, PS_LIST_TAIL, "LENS_X11_SM_OBJ", PS_DATA_F32, "smear polarizability element (objects)", source->lensingOBJ->smear->X11); 185 @>PS1_V4@ psMetadataAdd (row, PS_LIST_TAIL, "LENS_X12_SM_OBJ", PS_DATA_F32, "smear polarizability element (objects)", source->lensingOBJ->smear->X12); 186 @>PS1_V4@ psMetadataAdd (row, PS_LIST_TAIL, "LENS_X22_SM_OBJ", PS_DATA_F32, "smear polarizability element (objects)", source->lensingOBJ->smear->X22); 187 @>PS1_V4@ psMetadataAdd (row, PS_LIST_TAIL, "LENS_E1_SM_OBJ", PS_DATA_F32, "smear polarizability element (objects)", source->lensingOBJ->smear->e1); 188 @>PS1_V4@ psMetadataAdd (row, PS_LIST_TAIL, "LENS_E2_SM_OBJ", PS_DATA_F32, "smear polarizability element (objects)", source->lensingOBJ->smear->e2); 189 } 190 191 if (source->lensingOBJ && source->lensingOBJ->shear) { 192 @>PS1_V4@ psMetadataAdd (row, PS_LIST_TAIL, "LENS_X11_SH_OBJ", PS_DATA_F32, "shear polarizability element (objects)", source->lensingOBJ->shear->X11); 193 @>PS1_V4@ psMetadataAdd (row, PS_LIST_TAIL, "LENS_X12_SH_OBJ", PS_DATA_F32, "shear polarizability element (objects)", source->lensingOBJ->shear->X12); 194 @>PS1_V4@ psMetadataAdd (row, PS_LIST_TAIL, "LENS_X22_SH_OBJ", PS_DATA_F32, "shear polarizability element (objects)", source->lensingOBJ->shear->X22); 195 @>PS1_V4@ psMetadataAdd (row, PS_LIST_TAIL, "LENS_E1_SH_OBJ", PS_DATA_F32, "shear polarizability element (objects)", source->lensingOBJ->shear->e1); 196 @>PS1_V4@ psMetadataAdd (row, PS_LIST_TAIL, "LENS_E2_SH_OBJ", PS_DATA_F32, "shear polarizability element (objects)", source->lensingOBJ->shear->e2); 197 } 198 199 if (source->lensingOBJ && source->lensingPSF->smear) { 200 @>PS1_V4@ psMetadataAdd (row, PS_LIST_TAIL, "LENS_X11_SM_PSF", PS_DATA_F32, "smear polarizability element (objects)", source->lensingPSF->smear->X11); 201 @>PS1_V4@ psMetadataAdd (row, PS_LIST_TAIL, "LENS_X12_SM_PSF", PS_DATA_F32, "smear polarizability element (objects)", source->lensingPSF->smear->X12); 202 @>PS1_V4@ psMetadataAdd (row, PS_LIST_TAIL, "LENS_X22_SM_PSF", PS_DATA_F32, "smear polarizability element (objects)", source->lensingPSF->smear->X22); 203 @>PS1_V4@ psMetadataAdd (row, PS_LIST_TAIL, "LENS_E1_SM_PSF", PS_DATA_F32, "smear polarizability element (objects)", source->lensingPSF->smear->e1); 204 @>PS1_V4@ psMetadataAdd (row, PS_LIST_TAIL, "LENS_E2_SM_PSF", PS_DATA_F32, "smear polarizability element (objects)", source->lensingPSF->smear->e2); 205 } 206 207 if (source->lensingOBJ && source->lensingPSF->shear) { 208 @>PS1_V4@ psMetadataAdd (row, PS_LIST_TAIL, "LENS_X11_SH_PSF", PS_DATA_F32, "shear polarizability element (objects)", source->lensingPSF->shear->X11); 209 @>PS1_V4@ psMetadataAdd (row, PS_LIST_TAIL, "LENS_X12_SH_PSF", PS_DATA_F32, "shear polarizability element (objects)", source->lensingPSF->shear->X12); 210 @>PS1_V4@ psMetadataAdd (row, PS_LIST_TAIL, "LENS_X22_SH_PSF", PS_DATA_F32, "shear polarizability element (objects)", source->lensingPSF->shear->X22); 211 @>PS1_V4@ psMetadataAdd (row, PS_LIST_TAIL, "LENS_E1_SH_PSF", PS_DATA_F32, "shear polarizability element (objects)", source->lensingPSF->shear->e1); 212 @>PS1_V4@ psMetadataAdd (row, PS_LIST_TAIL, "LENS_E2_SH_PSF", PS_DATA_F32, "shear polarizability element (objects)", source->lensingPSF->shear->e2); 213 } 180 214 181 215 @>PS1_V2,PS1_SV?,>PS1_DV1@ psMetadataAdd (row, PS_LIST_TAIL, "MOMENTS_R1", PS_DATA_F32, "first radial moment", moments.Mrf); -
trunk/psModules/src/objects/pmSourceIO_CMP.c
r35768 r36623 44 44 #include "pmSourceDiffStats.h" 45 45 #include "pmSourceSatstar.h" 46 #include "pmSourceLensing.h" 46 47 #include "pmSource.h" 47 48 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmSourceIO_MatchedRefs.c
r35560 r36623 44 44 #include "pmSourceDiffStats.h" 45 45 #include "pmSourceSatstar.h" 46 #include "pmSourceLensing.h" 46 47 #include "pmSource.h" 47 48 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmSourceIO_OBJ.c
r35768 r36623 44 44 #include "pmSourceDiffStats.h" 45 45 #include "pmSourceSatstar.h" 46 #include "pmSourceLensing.h" 46 47 #include "pmSource.h" 47 48 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmSourceIO_PS1_CAL_0.c
r36441 r36623 44 44 #include "pmSourceDiffStats.h" 45 45 #include "pmSourceSatstar.h" 46 #include "pmSourceLensing.h" 46 47 #include "pmSource.h" 47 48 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmSourceIO_PS1_DEV_0.c
r36441 r36623 44 44 #include "pmSourceDiffStats.h" 45 45 #include "pmSourceSatstar.h" 46 #include "pmSourceLensing.h" 46 47 #include "pmSource.h" 47 48 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmSourceIO_PS1_DEV_1.c
r36441 r36623 44 44 #include "pmSourceDiffStats.h" 45 45 #include "pmSourceSatstar.h" 46 #include "pmSourceLensing.h" 46 47 #include "pmSource.h" 47 48 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmSourceIO_RAW.c
r34403 r36623 44 44 #include "pmSourceDiffStats.h" 45 45 #include "pmSourceSatstar.h" 46 #include "pmSourceLensing.h" 46 47 #include "pmSource.h" 47 48 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmSourceIO_SMPDATA.c
r36441 r36623 44 44 #include "pmSourceDiffStats.h" 45 45 #include "pmSourceSatstar.h" 46 #include "pmSourceLensing.h" 46 47 #include "pmSource.h" 47 48 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmSourceIO_SX.c
r35768 r36623 44 44 #include "pmSourceDiffStats.h" 45 45 #include "pmSourceSatstar.h" 46 #include "pmSourceLensing.h" 46 47 #include "pmSource.h" 47 48 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmSourceMatch.c
r35383 r36623 25 25 #include "pmSourceDiffStats.h" 26 26 #include "pmSourceSatstar.h" 27 #include "pmSourceLensing.h" 27 28 #include "pmSource.h" 28 29 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmSourceMoments.c
r36375 r36623 42 42 #include "pmSourceDiffStats.h" 43 43 #include "pmSourceSatstar.h" 44 #include "pmSourceLensing.h" 44 45 #include "pmSource.h" 45 46 … … 435 436 } 436 437 } 438 // NOT needed : source->moments->wSum = Sum; 439 437 440 source->moments->Mxx = XX/Sum; 438 441 source->moments->Mxy = XY/Sum; -
trunk/psModules/src/objects/pmSourceOutputs.c
r35768 r36623 33 33 #include "pmSourceDiffStats.h" 34 34 #include "pmSourceSatstar.h" 35 #include "pmSourceLensing.h" 35 36 #include "pmSource.h" 36 37 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmSourcePhotometry.c
r36375 r36623 40 40 #include "pmSourceDiffStats.h" 41 41 #include "pmSourceSatstar.h" 42 #include "pmSourceLensing.h" 42 43 #include "pmSource.h" 43 44 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmSourcePlotApResid.c
r34403 r36623 42 42 #include "pmSourceDiffStats.h" 43 43 #include "pmSourceSatstar.h" 44 #include "pmSourceLensing.h" 44 45 #include "pmSource.h" 45 46 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmSourcePlotMoments.c
r34403 r36623 45 45 #include "pmSourceDiffStats.h" 46 46 #include "pmSourceSatstar.h" 47 #include "pmSourceLensing.h" 47 48 #include "pmSource.h" 48 49 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmSourcePlotPSFModel.c
r35768 r36623 46 46 #include "pmSourceDiffStats.h" 47 47 #include "pmSourceSatstar.h" 48 #include "pmSourceLensing.h" 48 49 #include "pmSource.h" 49 50 #include "pmSourceFitModel.h" -
trunk/psModules/src/objects/pmSourceSky.c
r35560 r36623 41 41 #include "pmSourceDiffStats.h" 42 42 #include "pmSourceSatstar.h" 43 #include "pmSourceLensing.h" 43 44 #include "pmSource.h" 44 45 -
trunk/psModules/src/objects/pmSourceUtils.c
r35560 r36623 41 41 #include "pmSourceDiffStats.h" 42 42 #include "pmSourceSatstar.h" 43 #include "pmSourceLensing.h" 43 44 #include "pmSource.h" 44 45 -
trunk/psModules/src/objects/pmSourceVisual.c
r35768 r36623 23 23 #include "pmSourceDiffStats.h" 24 24 #include "pmSourceSatstar.h" 25 #include "pmSourceLensing.h" 25 26 #include "pmSource.h" 26 27 #include "pmSourceFitModel.h" -
trunk/psModules/src/psmodules.h
r36085 r36623 135 135 #include <pmSourceSatstar.h> 136 136 #include <pmSourceDiffStats.h> 137 #include <pmSourceLensing.h> 137 138 #include <pmSource.h> 138 139 #include <pmSourceFitModel.h> -
trunk/psphot/src
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20140226/psphot/src (added) merged: 36619,36621-36622
- Property svn:mergeinfo changed
-
trunk/psphot/src/Makefile.am
r36441 r36623 208 208 psphotMakeGrowthCurve.c \ 209 209 psphotMagnitudes.c \ 210 psphotLensing.c \ 210 211 psphotSetMaskBits.c \ 211 212 psphotSkyReplace.c \ -
trunk/psphot/src/psphot.h
r36441 r36623 144 144 bool psphotMagnitudesReadout(pmConfig *config, psMetadata *recipe, const pmFPAview *view, pmReadout *readout, psArray *sources, pmPSF *psf); 145 145 bool psphotMagnitudes_Threaded (psThreadJob *job); 146 147 bool psphotLensing (pmConfig *config, const pmFPAview *view, const char *filerule); 148 bool psphotLensingReadout(pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe); 149 bool psphotLensingPSFtrendsReadout(pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe); 146 150 147 151 bool psphotEfficiency (pmConfig *config, const pmFPAview *view, const char *filerule); -
trunk/psphot/src/psphotApResid.c
r34404 r36623 214 214 215 215 // XXX make this user-configurable? 216 if (source->psfMagErr > 0.0 1) continue;216 if (source->psfMagErr > 0.03) continue; 217 217 218 218 // aperture residual for this source … … 267 267 268 268 // set the max order (0 = constant) which the number of psf stars can support: 269 // rule of thumb: require 3 stars per 'cell' (order+1)^2269 // we require only 3 stars for n = 0, increase stars / cell for higher order 270 270 int MaxOrderForStars = 0; 271 if (Npsf >= 12) MaxOrderForStars = 1; // 4 cells 272 if (Npsf >= 27) MaxOrderForStars = 2; // 9 cells 273 if (Npsf >= 48) MaxOrderForStars = 3; // 16 cells 274 if (Npsf > 75) MaxOrderForStars = 4; // 25 cells 271 if (Npsf >= 16) MaxOrderForStars = 1; // 4 cells 272 if (Npsf >= 54) MaxOrderForStars = 2; // 9 cells 273 if (Npsf >= 128) MaxOrderForStars = 3; // 16 cells 274 if (Npsf >= 300) MaxOrderForStars = 4; // 25 cells 275 if (Npsf > 576) MaxOrderForStars = 5; // 36 cells 275 276 276 277 pmTrend2DMode mode = PM_TREND_MAP; -
trunk/psphot/src/psphotChoosePSF.c
r35769 r36623 399 399 char *modelName = pmModelClassGetName (psf->type); 400 400 psLogMsg ("psphot.pspsf", PS_LOG_WARN, "select psf model: %f sec\n", psTimerMark ("psphot.choose.psf")); 401 psLogMsg ("psphot.pspsf", PS_LOG_INFO, "psf model %s, ApResid: %f +/- %f \n", modelName, psf->ApResid, psf->dApResid);401 psLogMsg ("psphot.pspsf", PS_LOG_INFO, "psf model %s, ApResid: %f +/- %f (%d x %d model)\n", modelName, psf->ApResid, psf->dApResid, psf->trendNx, psf->trendNy); 402 402 403 403 psFree (options); -
trunk/psphot/src/psphotReadout.c
r36375 r36623 340 340 // calculate source magnitudes 341 341 if (!psphotMagnitudes(config, view, filerule)) { // pass 1 (detections->allSources) 342 psErrorStackPrint(stderr, "Unable to do magnitudes.");342 psErrorStackPrint(stderr, "Unable to do magnitudes."); 343 343 psErrorClear(); 344 344 } 345 346 // calculate lensing parameters 347 if (!psphotLensing(config, view, filerule)) { 348 psErrorStackPrint(stderr, "Unable to do lensing parameters."); 349 psErrorClear(); 350 } 351 345 352 if (!psphotEfficiency(config, view, filerule)) { // pass 1 346 353 psErrorStackPrint(stderr, "Unable to determine detection efficiencies from fake sources"); … … 353 360 // replace background in residual image 354 361 if (!psphotSkyReplace (config, view, filerule)) { // pass 1 355 psErrorStackPrint(stderr, "Unable to replace sky");356 psErrorClear();362 psErrorStackPrint(stderr, "Unable to replace sky"); 363 psErrorClear(); 357 364 } 358 365 359 366 // drop the references to the image pixels held by each source 360 367 if (!psphotSourceFreePixels (config, view, filerule)) { // pass 1 361 psErrorStackPrint(stderr, "Unable to free source pixels");362 psErrorClear();368 psErrorStackPrint(stderr, "Unable to free source pixels"); 369 psErrorClear(); 363 370 } 364 371 -
trunk/psphot/src/psphotStackImageLoop.c
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20140226/psphot/src/psphotStackImageLoop.c (added) merged: 36622
- Property svn:mergeinfo changed
Note:
See TracChangeset
for help on using the changeset viewer.
