1

I have a numpy array of shape (1964, 3), in the following format:

[ [ 0.3945, 52.700, 0.8 ], [ 0.3788, 52.121, 0.3 ] ] etc.

Each nested array represents a point in the format of [longitude, latitude, value]

I am trying to do a points.reshape() in order to convert this array into an image however am unable to calculate the columns and rows for the image.

It might be that I'm missing something incredibly simple here but can anyone suggest a solution to this issue?

I also have a pickle file of the array I'm working with so I'm happy to send if anyone wants.

  • 1
    Which GIS software are you using? – BERA Jan 27 '17 at 11:46
  • @BERA I am trying to solve all of this in Python – BarneyGordon Jan 27 '17 at 13:20
  • With which libraries? – BERA Jan 27 '17 at 13:21
  • I've been using only numpy currently but I am open to any suggestions – BarneyGordon Jan 27 '17 at 13:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.