Skip to content
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

Implement "Tuned Geodetic Information" procedure #3

Closed
marco-buttu opened this issue Jul 3, 2023 · 1 comment · Fixed by #4
Closed

Implement "Tuned Geodetic Information" procedure #3

marco-buttu opened this issue Jul 3, 2023 · 1 comment · Fixed by #4
Assignees
Labels
good first issue Good for newcomers

Comments

@marco-buttu
Copy link
Member

marco-buttu commented Jul 3, 2023

The EarthLocation class of Astropy library gives information about observatories. That's for example the information about SRT:

>>> from astropy.coordinates import EarthLocation
>>> srt = EarthLocation.of_site("SRT")
>>> srt.info.name
'Sardinia Radio Telescope'
>>> srt.height
<Quantity 671.6665 m>

The height of SRT according to Astropy is 671.7 meters. We realized that this height is not the same saved on the FITS files generated from DISCOS, as you can see here:

>>> from astropy.io import fits
>>> hdul = fits.open('tests/data/xyz.fits')
>>> hdul[0].header["ANTENNA"]
'SRT'
>>> hdul[0].header["SiteHeight"]
650.0

I would like to write a procedure that, given an observatory name, returns the average geodetic information of that observatory, computed taking in account the values from Astropy and from a FITS file of that observatory. The returned information contains: observatory name, latitude, longitude, and height.

@marco-buttu marco-buttu self-assigned this Jul 3, 2023
@marco-buttu marco-buttu added the good first issue Good for newcomers label Jul 3, 2023
@marco-buttu marco-buttu linked a pull request Jul 5, 2023 that will close this issue
@marco-buttu
Copy link
Member Author

Fixed in PR #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant