Repository navigation
Add RaDec to AltAz transformation tests - #10
Conversation
|
On 23 November 2012 09:57, Christoph Deil [email protected] wrote:
I'm not aware of any reference results myself (that's not to say they do David |
|
Since this is not implemented in astropy.coordinates yet, I would say this is lower priority, but it would indeed be good. |
|
I need this test anyways for another non-public code, so I want to do it now. It won't hurt to have reference results available when someone implements the transformation to HorizontalCoordinates in the future. I'm thinking of taking the existing @dsberry Is there anything I have to be aware of, e.g. that certain coordinates are only defined for certain time ranges, or that certain Earth ellipsoid models are not defined for very low or high altitudes or ... or is this straightforward? |
|
On 23 November 2012 11:31, Christoph Deil [email protected] wrote:
Make sure you specify the time correctly - for instance pyast expects the For each earth position, how many sky positions are you going to test? Information about AST's (az,el) coordinate system is available at (search for "AZEL"). David |
|
@cdeil - FYI, you now have push access to this repository, since you've been doing so much work on it! |
|
In the attached When running the script I get this warning: So there might be problems for pre-1960 or post-2012 times. |
|
On 23 November 2012 13:00, Christoph Deil [email protected] wrote:
I think so. The current formulation in AST is based on UTC and leap David |
|
I've added a few horizontal coordinates computed with pyephem to get started. |
|
On 23 November 2012 19:46, Christoph Deil [email protected] wrote:
For AST, it's just a case of setting the ObsLon, ObsLat, ObsAlt and DUT1
|
|
@dsberry Is there some python package that let's me compute DUT1 for a given UTC time? |
|
Note to self: Before doing this full test, first try to get approximately equal results from |
|
@cdeil - about DUT1, if astropy.time (http://docs.astropy.org/en/latest/time/index.html) doesn't do it, should it be implemented? |
|
On 26 November 2012 13:13, Christoph Deil [email protected] wrote:
http://data.iers.org/products/214/14443/orig/eopc04_08_IAU2000.62-now AST does not incorporate this table since it gets extended (in principle) David |
|
If I understand correctly, I see this: astropy/astropy#352 |
|
@cdeil - yes, you should go ahead and open an issue. IIRC this is nominally assigned to @iguananaut since he had someone working on an implementation that would handle getting updated tables automatically. I'm not sure about the status of that work. |
|
I'm not so sure either--it was an intern who I think may be slowly, painfully flaking out. I should have assigned an easier task but it's hard for me to judge what "easy" is--I thought it would be. They did come up with some working regular expressions that I might be able to salvage, but otherwise if you want to move ahead with that we can do it. |
|
I believe astropy/astropy#351 is the issue for this (I re-assigned from astropy/astropy#502, as I believe this is a duplicate). |
b61eebf to
c320dd5
Compare
|
I rebased this PR for sky to horizon coordinate checks and plan to work on this as soon as sky to horizon coordinate transformations become available in Astropy. @eteq is there a branch or issue I can watch for sky to horizon coordinate transformations in Astropy? |
|
@cdeil not yet because it requires the ERFA vectorizing PR to be merged. But I will be sure to @ mention you as soon as there is something to test. |
|
@eteq I had a quick look at the ERFA vectorizing PR ... it's huge and almost impossible to review on Github. Thanks for all that work! |
|
Yeah, it's a bit annoying, but we had to check some auto-generated code because it wasn't clear how to integrate it into the setup. The hope is to get that in for 1.1 or something so that future reviews were be easier. I can't take all the credit, though - @jwoillez did a lot of the nitty-gritty templating and numpy stuff! |
|
@cdeil - it would be great if you could manage to get |
There was a problem hiding this comment.
Is this altitude/azimuth or azimuth/altitude? It seems like the files for pyephem and pyast are not consistent right now since the first column of this file goes from 0 to 360 but it's the second column that does for pyast?
There was a problem hiding this comment.
This is az, alt for pyephem.
I've changed the pyast script to also use this, since we consistently use the lon, lat order in Astropy.
|
@cdeil - one thing that will be in astropy (possibly in v1.0, possibly later, depending on time constraints) will be at least an option for atmospheric refraction corrections. So that requires a few more observer parameters:
Of course if |
|
pyast corrects for diurnal aberattion but not for atmospheric refraction or polar motion. |
|
@cdeil - it looks like the values from the two tools here are still very different? Do you have any ideas what might be going on? |
|
No ... I didn't have time to look at this and figure it out yet. |
|
@astrofrog - Working on this now |
For now we want to avoid subtleties in time scale definitions and UTC only began in 1960.
For now we want to avoid subtleties in time scale definitions and UTC only began in 1960.
79cdd4a to
047b71d
Compare
|
Astropy now gives roughly consistent results with PyEphem. I did not update the pyast tests, because I'd first like to re-structure @astrofrog - OK to merge this now and continue in new PRs? Do you want to review this? |
|
@cdeil - thanks! Would it be possible to commit the changes to the summary files before we merge this PR? |
|
@astrofrog - The summary and $ cd tools/astropy
$ python convert_horizontal.py
$ cd tools/pyephem
$ python convert_horizontal.pyI will continue working on |
|
Ok, then feel free to merge this for now - thanks! |
Add RaDec to AltAz transformation tests
I would like to add tests for conversion to the HorizonSystem.
@dsberry Are there any existing reference results?
If not we could simply use a few observatory locations and a grid of dates?