question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No Attribute 'RA'

See original GitHub issue

Description

Hi I would like to simply compute Hour Angle for a given R.A and Sidereal Time using astropy.coordinates.angles.RA class as per:

https://kbarbary-astropy.readthedocs.io/en/latest/_generated/astropy.coordinates.angles.RA.html#astropy.coordinates.angles.RA

Expected behavior

Actual behavior

It returns there is no ‘RA’ attribute for this class:

astropy.coordinates.angles.RA(‘10.2345d’) AttributeError: module ‘astropy.coordinates.angles’ has no attribute ‘RA’

Steps to Reproduce

  1. [First Step]
  2. [Second Step]
  3. [and so on…]
# Put your Python code snippet here.

System Details

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mkbrewercommented, Aug 18, 2021

You must be using Astropy version 4.2 or later in order to use TETE.

1reaction
mkbrewercommented, Aug 17, 2021

If you want the apparent hour angle, you should first transform the the ICRS right ascension to the true equator and equinox of date.

coord.transform_to(TETE(obstime=my_time, location=my_location))
Read more comments on GitHub >

github_iconTop Results From Across the Web

Delete a file with RA attributes - Microsoft Community
I have a file with RA attributes... and I can't delete it! I can't change the attributes... Please, help me! I renamed the...
Read more >
RA Attributes Definition | Law Insider
RA Attributes means, with respect to a Unit, any and all resource adequacy attributes, as they are identified as of the Confirmation Effective...
Read more >
AttributeError: 'NoneType' object has no attribute 'persist'
When I try to persist Dataframe in pyspark, I meet the AttributeError: 'NoneType' object has no attribute 'persist' error. pseudo code is as ......
Read more >
In Windows, what are file attributes, and how can I change ...
View or change file attributes​​ To view or change the attributes of a file, right-click the file, and then click Properties. In the...
Read more >
2BrightSparks Articles - Understanding Windows File Attributes
Note that certain programs may modify the files without marking the archive attribute. If the backup software uses incremental backups to backup these...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found