I am trying to set up a csv file with two columns for lat and lng for arcgis. Then for lat, the sheet to generate number between 42,84 and for lng between -142,-52. Basically creating a grid that goes across Canada with the ability to change intervals to change size of the grid squares.
The code I wrote below I think is on the right track, it has a csv file being created, numpy being used for interval and rows being created.
However, I have tried the code and gotten a range of errors in my attempts, from 'too many value to unpack' to just syntax error.
I have the lat and long ranges working, just need to move data into csv using pandas or csv.
import csv
import numpy as np
lat_lng = [(lat,long) for lat,long in zip(np.arange(42,84,0.01),np.arange(-142,-52,0.01))]
for latitude,longitude in lat_lng:
print (latitude,longitude)