Opened 17 years ago
Closed 17 years ago
#1246 closed defect (fixed)
ppSub -stamps option doesn't load stamps from file.
| Reported by: | Michael Wood-Vasey | Owned by: | Paul Price |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | ppSub | Version: | current |
| Severity: | blocker | Keywords: | |
| Cc: |
Description
I've been trying to use the ppSub -stamps xylist.txt option but it doesn't seem to work for me. This is using the 20090508 SVN HEAD. I've tried using files like
1142.493652,850.838623
4071.582520,945.288025
3920.500977,443.246429
3988.441406,936.689392
1405.281616,938.831421
270.799316,347.087769
2643.310059,469.945343
or
1142.493652 850.838623
4071.582520 945.288025
3920.500977 443.246429
3988.441406 936.689392
1405.281616 938.831421
270.799316 347.087769
2643.310059 469.945343
The help says a file with 'x,y on each line' list, so I wasn't sure which was meant. I assume this is supposed to work?
Being able to control the stamp selection is pretty important in verifying and improving the subtractions.
Change History (7)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
| Status: | new → accepted |
|---|
Try using the "-debug" option, which should produce ds9 region files at different places in the process.
comment:3 by , 17 years ago
That's exactly what I'm doing to show that the stamps are not what they should be.
ppSub -refimage wbb9.061017_0534.135_4.sw.fits -refvariance wbb9.061017_0534.135_4.sw.var.fits -inimage wbb9.071004_0524.038_4.sw.fits -invariance wbb9.071004_0524.038_4.sw.var.fits -threads 2 -photometry -inverse -refsources wbb9.061017_0534.135_4.sw.good.cmf -insources wbb9.071004_0524.038_4.sw.good.cmf testout_stamp2 -stamps stamps.xy -debug -trace psModules.imcombine 10
This is ESSENCE data. I have bundled up the entire list of files to reproduce at
http://www.phyast.pitt.edu/~wmwv/PS1/sub_test_20090513.tgz
Sorry I couldn't attach the files (even the small ones). Trac configuration problem.
comment:4 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
Doesn't look like MWV committed anything. Inverted preference order for stamps source (specified sources by user first, general sources from photometry second). ppSub wasn't using the correct source for the name of the stamps file from the user (artifact of recent reorganisation). Fixed on truck, r24181.
comment:5 by , 17 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
I didn't commit because while I agree with the change the resulting behavior is still not what I think it should be. The generated stamp list is not solely from the input 'stamps.xy' file.
I've re-opened the bug, although I'm happy to list it in a new ticket if you'd rather.
comment:6 by , 17 years ago
I've verified that this issue was fixed at r24181. I made more changes than what is in your first comment. Please check that my fix works; I think you'll find it will.

After discussions with Paul I changed the following lines in pmSubtractionMatch.c
to do the checking in this order rather the previously where it never read stamps if there were sources .cmf files specified.
Now, however, while the sources picked are different, there are still half of the sources that were not in the stamps file being picked for sources in the convolution. Where should I look further track this down. Cursory looks at pmSubtractionStamps didn't make it immediately clear to me where this was actually done.