elevation, longitude, latitude parameters missing from `Observer` class, contrary to docs. · Issue #521 · astropy/astroplan · GitHub
Skip to content

elevation, longitude, latitude parameters missing from Observer class, contrary to docs. #521

Description

@emirkmo

According to the docs, https://astroplan.readthedocs.io/en/latest/api/astroplan.Observer.html#astroplan.Observer Observer has parameters of elevation, longitude, and latitude as attributes, but this is not true. There is of course an implicit elevation instance in the repr and inside the location attribute.

The location is of type EarthLocation and is added here, but while the other parameters are instantiated, longitude, latitude, and elevation are not. Now since they are based on the location attribute which can presumably change, it would be best if these instances reported the correct and human readable value as astropy.quantity.Quantity instances, even after a change of state.

The linked PR #522 shows my proposed fixes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions