matplotlib basemap – Python,IndexError: arrays used as indices must be of integer (or boolean) type

matplotlib basemap – Python,IndexError: arrays used as indices must be of integer (or boolean) type

76451218-591f0d80-638c-11ea-976f-a7bae067df4e

the problem was solved just by converting the float array into int array:

lats = data[:,0].astype(int)
lons = data[:,1].astype(int)
codg_tec = data[:,2].astype(int)

matplotlib basemap – Python,IndexError: arrays used as indices must be of integer (or boolean) type

Leave a Reply

Your email address will not be published.