Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Simple Python, Textpad, and Results Window Tips...

Simple Python, Textpad, and Results Window Tips to Increase ArcGIS Efficiency

Presented by Nick Jones and Jim Kilnoski

More Decks by Texas Natural Resources Information System

Other Decks in Technology

Transcript

  1. Easy-­‐to-­‐Use  Tools         —  Background  Processing  

    —  Results  Window   —  Textpad   —  Python  Snippets   —  Batch  Window   —  Microsoft  Batch  Files  (.bat)  
  2. Results  Window/Background   Processing   —  Add  Results  Window  to

     display   —  Turn  on  background  processing   —  Benefits:   —  Can  set  up  multiple  processes   —  Can  continue  to  work  in  ArcMap  while  processes  are   running   —  Can  repeat  finished  processes  with/without      changes   —  Background  Processing  Movie  
  3. Using  Textpad  for  Batch   Geoprocessing   — Use  both  for

     increased  efficiency  to  batch   processing   —  Working  with  large  numbers  of  files   —  QA/tracking  purposes   —  Bandwidth  considerations   — General  process:   —  Use  Textpad  to  receive  and  develop  scripts     —  Run  processes  
  4. Tips  to  Edit  in  Textpad   —  Turn  on  line

     numbers  and  block  select  mode   —  Block  select  allows  you  to  select  columns   —  Looking  at  the  line  number  is  a  good  way  to  check  if   you  have  the  right  number  of  rows   —  Always  start  from  the  end  of  the  line  and  work  back   to  the  beginning   —  Find/Replace  is  hugely  helpful   —  Bookmark  Lines  allow  for  easy  tracking  also  for   deletion  or  copying   —  Have  a  list  of  the  files  you  want  to  process  handy  
  5. Copy  Text  for  Use  in  Textpad   —  Copy  by

     Python  Snippet   —  Space-­‐delimited.    Python-­‐formatted   —  Via  previously  ran  process  in  Results  Window   —  Via  Tool  Help  in  ArcMap   —  Use  Python  Snippet  to  Repeat  Movie        
  6. Copy  Text  for  Use  in  Textpad   (cont.)   — 

    Copy  by  Filling  in  Batch  Window   —  Tab-­‐delimited.  Batch  Window-­‐formatted   —  Use  Browse  and  Fill  functions  in  Batch  Window   —  Copy-­‐paste  to  Textpad,  fix  up,  then  paste  back  into   Batch  Window  and  run   —  Use  Batch  Window  with  Textpad  Movie    
  7. Copy  Text  for  Use  in  Textpad   (cont.)   — 

    Copy  by  Field  Calculator  and  Summarizing   —  Flexible.    All  you  need  is  1  record  per  process   —  Create  fields  and  Field  Calculate  processing  scripts   —  Use  Field  Calculator  to  Create  Python  Snippet   —  Use  Field  Calculator  with  Textpad  and  Microsoft  .bat   files  to  copy  files   —  This  can  be  scheduled!