I am trying to access the database using a list in order to put it in a loop but I can't make it work. I want to replace the months with a list variable.
This is the hard core example:
arcpy.GACreateGeostatisticalLayer_ga(in_ga_model_source="Areal Interpolation",in_datasets="London X=London.Shape Y=London.Shape F1=London.february",out_layer="february_interpolation")I have list with the months witch is:
myMonths =['january', 'february', 'march','april','may','june','july', 'august', 'september', 'october', 'november', 'december']I am trying to find a way to change the months within a loop. I tried the following but i am sure that it doesn't work.
arcpy.GACreateGeostatisticalLayer_ga(in_ga_model_source="Areal Interpolation",in_datasets="London X=London.Shape Y=London.Shape F1=London.%d" %myMonths[1],out_layer=myMonths[1]+"_interpolation")I tried to find the answer but i think I count't search properly.
أكثر...
This is the hard core example:
arcpy.GACreateGeostatisticalLayer_ga(in_ga_model_source="Areal Interpolation",in_datasets="London X=London.Shape Y=London.Shape F1=London.february",out_layer="february_interpolation")I have list with the months witch is:
myMonths =['january', 'february', 'march','april','may','june','july', 'august', 'september', 'october', 'november', 'december']I am trying to find a way to change the months within a loop. I tried the following but i am sure that it doesn't work.
arcpy.GACreateGeostatisticalLayer_ga(in_ga_model_source="Areal Interpolation",in_datasets="London X=London.Shape Y=London.Shape F1=London.%d" %myMonths[1],out_layer=myMonths[1]+"_interpolation")I tried to find the answer but i think I count't search properly.
أكثر...