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

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

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. Required fields are marked *