-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spectral tracing discussion #83
Comments
My current thinking is to not take the image unless it is required for the trace. If we want to implement detecting a trace from an image, I'd propose implementing |
Second bullet above: it is OK unless we want to enable that a trace obtained with one image can be used on another. Then the extraction code itself will have to check for consistency. 4th bullet: I agree with it, and also with @kecnry 's proposal: if the trace class needs an image, we supply it within a specific method call sequence. |
object finding and calculating traces based on detected objects is stuff i am actively working on, but not quite ready for a PR. i agree with adding an attribute to i don't think |
I should just mention FYI that my colleagues have been doing a lot of work on improving the detection & tracing of object spectra in DRAGONS recently and I believe it is working pretty well. They have been through various algorithms using wavelets etc. before finally settling on something. |
ah, good to know. i have been looking at the DRAGONS code and basing what i want to do off of that. i'll update my local check-out and see what's changed in the past few weeks... |
It looks like the latest work is in |
cool! i'll take a peek at it at least. |
Just to chime in and say: totally fine to use the simple trace algorithm from |
I should perhaps note that DRAGONS does have a fairly well-developed Web GUI for |
(1) We definitely want to compute a trace from an image. It is essential for spectral extraction. |
Regarding a GUI to aid spectral extraction, we plan on having that capability in jdaviz. |
Hi @tepickering, how close do you feel to having your new trace class ready for a PR? Our team's product owners would like at least one that can calculate traces by the end of this week. I can open a new pull request with the |
sorry for the slow response. i was working on the mountain all day and mostly away from a computer (or at least my own computer). i am booked with MMTO stuff thru mid-week and was planning on taking a crack at porting over the DRAGONS implementations of object finding and trace fitting towards the end of the week. if you need something sooner, then do what you need to do. we can start with the as an aside, i noticed in DRAGONS that they also are hard-coded in places to treat dispersion as being along the "X" axis (modulo distortion) and have hooks to transpose data when/if needed to match that. we may consider a similar approach. it would be nice to be fully generalized, but it could get complicated. |
I would say we resolved this issue by finishing up |
This issue is meant as a forum to discuss the new tracing classes in
specreduce/tracing.py
since the PR that introduced them has already been merged.I'll start by saying all of
Trace
,FlatTrace
, andArrayTrace
work smoothly for me.Here are some avenues of further discussion and possible changes to consider:
kosmos
trace()
function into specreduce.Trace
object is being created instead of at the beginning of the extraction process.Trace
objects instead of as arguments of an extraction class'__call__()
method. If we want to allow for more interchangeability, perhaps they could be set as arguments ofTrace
objects. If not, we could hard-code our assumption that axis 1 is dispersion and axis 0 is cross-dispersion intoTrace
. Either way, extraction classes would get that information for free since they must take aTrace
object as an argument.Trace
objects contain animage
attribute?ArrayTrace
andFlatTrace
don't need an image, but futureTrace
implementations may. Including the image in theTrace
object would also decrease the number of arguments needed for extraction objects. However, @ibusko brought up a point that you may not always want to perform an extraction on the exact image from which you created a trace.The text was updated successfully, but these errors were encountered: