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

........

  1. how can create 200x200 raster model?

  2. how can write possible coordinate combinations list/ text file?

  3. 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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -