I have an array like this (in which the first row correspond to the latitudes and the second to the longitudes of some points):
array([[53.6 , 53.6 , 53.6 , ..., 52.9, 52.9, 52.9],
[8.7, 8.7, 8.7, ..., 12.1 , 10.0 , 10.7]])
I need to, for each coordinate of lat and lon create an array for the latitudes and another for the longitudes, in which the array has a fixed length (let's say 100) that looks like this:
array([[53.6, 53.6, 53.6, ..., 53.6, 53.6, 53.6]])
array([[8.7, 8.7, 8.7, ..., 8.7, 8.7, 8.7]])
I'm not 100% sure of how to achieve this for all the coordinates. I have tried to create an empty array and fill it with as such:
for i in estimate: #(estimate is the name of the first array presented above)
lat = np.empty(100)
lat = lat.fill(point_a[0])
But it's returning
ValueError: Input object to FillWithScalar is not a scalar
Any ideas on how I could do this?