-
Notifications
You must be signed in to change notification settings - Fork 47
Change how EXOTIC scrapes AAVSO comparison stars #1336
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
Comments
@rzellem @pearsonkyle , I’ve been working with the dataset provided by @tamimfatahi (I believe it’s Heath’s) and have discussed a potential fix with Tamim. TL;DR: There’s a possible quick 'fix' to re-enable AID in Colab, though it comes with some implications. See details below. Current situation: AID is currently disabled in Colab by forcing
There is indeed a recommended AAVSO star at those coordinates; however, since it’s somewhat close to the border and the FOV is small, the resulting
As we can see in the extended logs, the star is within the frame, but the resulting
As I mentioned there is a potential quick fix. In the
We can change it to this:
@rzellem @pearsonkyle Question: is sampling a partial annulus near the edges acceptable for our sky background estimation? If not, the alternative would be to avoid recommending AAVSO comparison stars that are 'near' the border. I haven’t explored this yet, but I would likely need to examine how If we decide to implement the quick fix, we could re-enable AID in Colab, though there would still be some rough edges. For example, there are cases where MERR is greater than one in the AID file, the magnitude 14 limit still applies, and so on. We’ll need to address these issues regardless of the path we choose, but I think re-enabling AID would be the first step. I did some testing with and without the quick fix using Heath's dataset:
Should we implement the quick fix to re-enable AID, or should we explore the other option? |
@ivenzor - Thanks for all of your awesome work on this! If the sky background is calculated with a median, then having a sky annulus that partially falls off of the edge of the detector should be ok- our stats will just be a little worse by the limited number of pixels. Personally, I’d prefer not using a comp star near the edge of the detector - as it could eventually “fall off” during the night with tracking or, being (assumedly) comparatively far from the target star at the center of the FOV, the comp star could have very different systematics compared to the target star (e.g., due to vignetting). So, another option is just to have EXOTIC “throw away” a comp star if part of its annulus falls off of the edge of the detector. That might be a simpler fix? What do you think, @ivenzor ? |
@rzellem , I agree; let’s focus on avoiding comparison stars near the border. I’ve updated the
Like this:
Main changes in code:
I did a full reduction and compared the results:
@rzellem , is this approach acceptable? |
@rzellem do you like this approach? Should I move forward and make a PR? |
Hi @ivenzor - I’m a little hesitant to have a “valid region” on the image - as that could vary wildly from detector to detector. Instead, what you could do is have EXOTIC return something like a np.nan if part of the aperture or annulus falls off the edge of the detector. And then simply this one image alone is removed from the analysis. Sometimes a single image might be completely off, but not all of the images - so we’d only want to remove that single image, but the rest of them might be awesome. So thinking about it more, with more coffee, I’m wondering if we shouldn’t automatically throw away a comp star…. …sorry, I’m still processing all of this while I think about it lol |
@rzellem just to clarify, the 'valid region' I suggested is not fixed or static for all the detectors but would change based on the detector or rather based on the actual image dimensions. In my example, the valid region was calculated using a 15% margin from the edges as it's now a function parameter with 15% as default. Something like this: But yes, this will reject an AAVSO comparison star based on the first image if it's outside this zone. About rejecting the individual frame itself, that would work great if only a few of the images have an AAVSO comparison star near the border, but if all of them do, we would reject all images. |
@ivenzor - hmm...I'm still a little worried about the "valid region" - as there might be only one AAVSO comp and it might lie in the "non"-valid region - I think I'd rather get the data, even at the risk of it being bad So...revisiting/rethinking about your "if part of the annulus goes off of the edge of the detector, is this ok" question - I think the answer is "yes" - just technically our stats will be worse for estimating the background flux for these images due to less pixels available - that could manifest as an incorrect background subtract, and therefore more variance in the data...but EXOTIC should automatically filter these bad images out ...so I'm thinking that your easy fix of just allowing for annuli that do partially fall off the detector to just use the "valid" pixels that don't fall off as the annulus calculation and just go from there What do you think? |
@rzellem, for the sky background, we are using the mode. If the mesh is smaller, there may be fewer pixels to sample from, but the mode should still be reliable unless there are very few pixels. Even in that case, I guess EXOTIC is unlikely to choose this star as a comparison star. I believe this approach has the highest benefit-to-cost ratio, as it avoids rejecting valuable AAVSO stars upfront. Based on this, I will create a PR to implement the 'quick fix': |
Sounds great to me, @ivenzor - thank you so very much! |
Instead of based on the target's RA & Dec, use the center of the FOV with a known radius. Also, increase the mag limit of the VSX query.The above is incorrect. We do query based on the center of the image. However, for small detectors (as Heath observed with), the star's tend to leave the FOV. Normally, this isn't an issue as EXOTIC will skip analyzing the comparison star. However, it can delay the time greatly, causing the Colab to disconnect before the reduction is finished.
The text was updated successfully, but these errors were encountered: