Skip to content

ValueError: operands could not be broadcast together with remapped shapes #539

@randomwalkingg

Description

@randomwalkingg

I am new to Skyfield and have the following question.

import numpy as np
from skyfield.api import load, wgs84

lon = np.array([0, 10, 20, 30])
ts = load.timescale()
time = ts.utc(2020, 1, 1, 0, 0, np.arange(0, 10, 1))

sites = wgs84.latlon(np.zeros_like(lon), lon, np.ones_like(lon) * 1000)
g = sites.at(time)

I got the following error:
ValueError: operands could not be broadcast together with remapped shapes [original->remapped]: (3,3,10)->(3,10,3) (3,4)->(4,3).

It is OK if do g = sites.at(time[0]). Does it mean that I cannot propagate "sites" over a time interval? And is there a way to solve my challenge without looping?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions