-
Notifications
You must be signed in to change notification settings - Fork 31
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
convert method fails for HST apertures #145
Comments
This is a missing functionality. In all my HST use cases so far I worked with Science pixels and did not convert to Detector pixels. One would have to find out what the HST equivalent of DetSciAngle is and add it to |
That might exist. What is the DetSciAngle physically?
R
On Apr 15, 2020, at 2:38 PM, Johannes Sahlmann <[email protected]<mailto:[email protected]>> wrote:
This is a missing functionality. In all my HST use cases so far I worked with Science pixels and did not convert to Detector pixels.
One would have to find out what the HST equivalent of DetSciAngle is and add it to _hst_to_jwst_keys in aperture.py. (This is also what the error refers to.)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#145 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACGLBMCXLQJHLVC4JLOPXIDRMX5J7ANCNFSM4MIZPR7Q>.
|
This is the data they have:
http://www.stsci.edu/hst/instrumentation/focus-and-pointing/fov-geometry
unfortunately, you have to actually scroll down and click on “WFC3”, and the last two columns are angles of the V3 axis. Is that the DetSciAngle?
R
On Apr 15, 2020, at 2:45 PM, Russell Ryan <[email protected]<mailto:[email protected]>> wrote:
That might exist. What is the DetSciAngle physically?
R
On Apr 15, 2020, at 2:38 PM, Johannes Sahlmann <[email protected]<mailto:[email protected]>> wrote:
This is a missing functionality. In all my HST use cases so far I worked with Science pixels and did not convert to Detector pixels.
One would have to find out what the HST equivalent of DetSciAngle is and add it to _hst_to_jwst_keys in aperture.py. (This is also what the error refers to.)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#145 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACGLBMCXLQJHLVC4JLOPXIDRMX5J7ANCNFSM4MIZPR7Q>.
|
I suggest to consult with @ColinRCox |
In the HST SIAF we did not really have any connection with the detector layout. We always worked with a set of image pixels which correspond to the displayed images. Unless anything else is known I would assume these frames are aligned with the detector. The DetSciAngle is the angle between the detector Y axis and the Science (or for HST the iraf) frame Y axis. For JWST this is almost always zero. We have a couple of cases where it is 180 degrees. I would assume for HST you can always assume zero. |
Hi Colin & Johannes,
That’s very informative, thank you.
I looked at the code a bit, but I’m not sure how to assume zero for HST. I guess I can hack the code to be if NoneType is encountered, use 0 instead. Is that what you had in mind , or was there an runtime option?
Thanks again,
Russell
…Sent from my iPhone
On Apr 16, 2020, at 4:55 PM, Colin Cox <[email protected]> wrote:
In the HST SIAF we did not really have any connection with the detector layout. We always worked with a set of image pixels which correspond to the displayed images. Unless anything else is known I would assume these frames are aligned with the detector. The DetSciAngle is the angle between the detector Y axis and the Science (or for HST the iraf) frame Y axis. For JWST this is almost always zero. We have a couple of cases where it is 180 degrees. I would assume for HST you can always assume zero.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#145 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACGLBMA2PRTLW7MD5IFPE2LRM5WFVANCNFSM4MIZPR7Q>.
|
You could try to insert
before the call to |
Perfect! I’ll give it a go. If it works, then I’ll fiddle with the numbers such that I reproduce a know image. I’ll report back.
Thanks!!
R
…Sent from my iPhone
On Apr 18, 2020, at 11:59 AM, Johannes Sahlmann <[email protected]> wrote:
You could try to insert
uvis1.DetSciParity = 1
uvis1.DetSciYAngle = 0.
before the call to .convert
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#145 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACGLBMA5BRIFMLGU5NYF7VDRNHE4NANCNFSM4MIZPR7Q>.
|
I ran into this same issue. I had to do the following to get
|
I was trying to convert coordinates for the HST apertures, and pysiaf fails. This is what I did:
The traceback is very long, but the last stanza gives:
This is running:
pysiaf.version
'0.7.1'
I did this with the JWST apertures, and things seemed to work. Any advice here? Is this a issue with the HST reference files?
The text was updated successfully, but these errors were encountered: