# MIssing height for EarchLocation

**URL:** <https://community.openastronomy.org/t/missing-height-for-earchlocation/764>\
**Category:** Astropy\
**Tags:** question\
**Created:** [September 28, 2023, 10:03am UTC](https://community.openastronomy.org/t/missing-height-for-earchlocation/764 "2023-09-28T10:03:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ljeonjko](https://dub1.discourse-cdn.com/flex005/user_avatar/community.openastronomy.org/ljeonjko/32/433_2.png) [@ljeonjko](https://community.openastronomy.org/u/ljeonjko)\
**Post date:** [September 28, 2023, 10:03am UTC](https://community.openastronomy.org/t/missing-height-for-earchlocation/764/1 "2023-09-28T10:03:53Z")

</div>

Hi everyone!

I’m trying to calculate the zenith angle. If anyone is familiar with SeaHawk data, I can just extract the longitude and latitude via

`lats = nc1.latitude.data`  
`lons = nc1.longitude.data`

and feed them directly into

```auto
loc = astropy.coordinates.EarthLocation(lon = lons, lat = lats)

```

to get valid results. However, working with OC-CCI data, doing the same returns:

`Coordinates could not be parsed as either geocentric or geodetic, with respective exceptions "from_geocentric() missing 1 required positional argument: 'z'" and "Input parameters lon, lat, and height cannot be broadcast"`

This baffles me completely as there is no difference between the lat/lon numpy arrays originating from SeaHawk and OC-CCI…

Is there a way to work around this or can I calculate the ellipsoid height given the latitude and longitude?

Thanks!

---

<div class="post-metadata">

**Author:** ![dhomeier](https://dub1.discourse-cdn.com/flex005/user_avatar/community.openastronomy.org/dhomeier/32/65_2.png) [@dhomeier](https://community.openastronomy.org/u/dhomeier)\
**Post date:** [October 31, 2023, 10:45pm UTC](https://community.openastronomy.org/t/missing-height-for-earchlocation/764/2 "2023-10-31T22:45:40Z")

</div>

> [@ljeonjko](#):
>
> `astropy.coordinates.EarthLocation`

`height` always defaults to 0, for scalar or array inputs in coordinates. Are you sure your `lon` and `lat` have compatible shapes in the second case?
