-
Notifications
You must be signed in to change notification settings - Fork 18
Allow pipeline to process QHY600 CMOS detectors #132
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
Conversation
…recommend users use the --unfixed option if no color term exists for their instrument
| elif 'fl' in _instrume or 'fa' in _instrume: | ||
| fwhmgess3=half_total_flux_radius_to_fwhm(median(array(fwhm3))) * 0.389 | ||
| if _imex: fwhmgessime = median(array(ccc)) * 0.467 | ||
| if _imex: fwhmgessime = median(array(ccc)) * 0.389 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bug fix
|
Note the 0.734 pixel scale value comes from the file header |
|
I'll also note I was able to download and ingest these files with LCOGTingest.py without making any changes anywhere |
griffin-h
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just left some minor comments. I assume @cmccully will actually test this on the supernova machine, but let me know if you need me to do it.
trunk/src/lsc/util.py
Outdated
| @@ -138,6 +138,31 @@ def readkey3(hdr,keyword): | |||
| except: | |||
| _instrume='none' | |||
| if 'kb' in _instrume: # SBIG | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this just be if 'kb' in _instrume or 'sq' in _instrume:? Pre-2014, different instruments had different header keywords, but they have been standard since then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed with recent push
trunk/src/lsc/mysqldef.py
Outdated
| elif prefix == 'ep': | ||
| insttype = 'MUSCAT' | ||
| elif prefix == 'sq': | ||
| insttype = 'qhy' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of these instruments are already in the SNEx database with the type QHY (caps). Ignoring the fact that I have no idea where that came from, let's make it consistent here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the other hand, there are already both MuSCAT and MUSCAT in the database, so maybe this doesn't matter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can make it consistent - even if SQL doesn't care
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed with recent push
trunk/src/lsc/lscastrodef.py
Outdated
| if hdr['SITEID'] in ['elp','tfn','ogg']: | ||
| CD1_1 = (-1) * CD1_1 | ||
| CD2_2 = (-1) * CD2_2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this actually true? It looks like this came from copying the Sinistro block, but I have no idea if the same random sites have 180º rotated cameras.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stefano said this is northern vs southern hemisphere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually have no idea. Probably Griffin is right is just a rotation of the camera.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't test the southern hemisphere but it did something sensible for tfn when I ran the wcs stage
|
What has to happen to get this PR approved? Now that the QHY600 detectors are available in SNEx, I'd like to get it merged. I think if we were doing the WCS wrong for one of the hemispheres it would have come up by now, all other comments have been addressed |
Simplification to guessing the starting WCS for all cameras.
|
I reran the commands described above with PR #134 merged in - everything looks great. @estefaniapadilla can you please run these commands on supernova (note this is EPO data, so we might not be automatically downloading it - alternately, you could run it on a standard e.g. L107 which we might be downloading automatically) |
|
@griffin-h can you approve the changes @cmccully and I made? |
griffin-h
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me. I didn't test the new WCS code but I trust that Curtis did something reasonable. All my other comments are resolved.
|
I tested the new WCS code in PR #134 |
|
tested the commands on the supernova machine and worked as expected |
This PR was modeled off of PR #80 which implemented MuSCAT
Other changes:
Testing:
I tested this on the 2024-02-06 data from proposal LCOEPO2014B-010 of SN 2024bch
I ran the following commands:
I compared the final photometry for a few different epochs and ii was all pretty close to the 1m reduction taken at about the same time.
To test the wcs stage:
lscloop.py -n 2024bch -e 20240206 -T sq --id 184 -s wcsI then loaded the BANZAI and wcs stage image into DS9 and matched WCS - they aligned pretty closely
I noticed a weird bug here that the WCS gets updated but the other database terms aren't reset because the filename contains an extra .fits. But this isn't a bug introduced by this PR and it doesn't break anything, so I'm not going to fix it right now. I've filed this as Issue 131.
Note that this PR does not check difference imaging capabilities