I am new to py and simplekml and trying to make a scripts which create grid points for a ETA model.
I have this error: AttributeError: 'int' object has no attribute 'count' and AttributeError 48 ## Saving ---> 49 kml.save("ETAPoints.kml")
if __name__ == '__main__':
grid = 0.166
maxlat = 57.5
minlat = 47.5
maxlon = 15.5
minlon = 5.5
## define latitude for points for ETA Domain for EUROPE
latitude = tuple(np.arange(30.00, 70.00, grid))
## define longitude for points for ETA Domain for EUROPE
longitude = tuple(np.arange(-20.00, 20.00, grid))
## Select the points in the area of interest
#c0 = lat > minlat
#c1 = lat < maxlat
#latitude = lat[c0 & c1]
#c2 = lon > minlon
#c3 = lon < maxlon
#longitude = lon[c2 & c3]
## Made some points
points = range(len(latitude))
## open=1 just opens the document in the TOC (table of contents). Not a necessary step.
kml = Kml(name="ETAPoints", open=1)
## A simple Point
for k in range(len(points)):
kml.newpoint(name=points[k],
coords=[(longitude[k],latitude[k])])
## Saving
kml.save("ETAPoints.kml")
print "DONE"