arrays - Create and loop through raster models in python -
hey @ beginning of work python masters thesis , stuck while dealing following task:
i want create 2d raster model columns , rows ranging e.g. -100 100 (0 in centre). thought multidimensional arrays or "normal" lists!?
after having model, goal loop (two for-loops?) through raster , write positions (combinations of col , row values) txt file.
desired result:
row col
-100 -100
-100 -99
-100 -98
........
how can create 200x200 raster model?
how can write possible coordinate combinations list/ text file?
probably enough create 2 lists containing values -x x , calculate permutations list/file?
thx ideas!!
how creating 2 dimentional array ranging 0 200, , subtract 100 when printing
Comments
Post a Comment