Timeline for Batch Extract by Mask, but customize individual output names
Current License: CC BY-SA 3.0
23 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 22, 2018 at 15:00 | history | tweeted | twitter.com/StackGIS/status/1076492704635342850 | ||
Feb 25, 2016 at 0:46 | history | edited | Aaron♦ |
edited tags
|
|
Feb 24, 2016 at 23:50 | history | edited | PolyGeo♦ |
edited tags
|
|
Aug 10, 2015 at 0:01 | vote | accept | spotter | ||
Aug 9, 2015 at 17:31 | answer | added | Aaron♦ | timeline score: 2 | |
Aug 9, 2015 at 16:52 | history | edited | spotter | CC BY-SA 3.0 |
added 48 characters in body
|
Aug 9, 2015 at 16:46 | comment | added | spotter |
arcpy.ListRasters was very helpful, I appreciate your suggestions.
|
|
Aug 9, 2015 at 16:46 | history | edited | spotter | CC BY-SA 3.0 |
added 627 characters in body
|
Aug 9, 2015 at 5:31 | history | edited | spotter | CC BY-SA 3.0 |
added 336 characters in body
|
Aug 9, 2015 at 5:22 | comment | added | PolyGeo♦ |
I think you should insert some print statements into your code to ensure that your variables are set to what you think they are.
|
|
Aug 9, 2015 at 5:16 | comment | added | spotter |
I see what you mean. I modified my post and will look into using arcpy.ListRasters . Thank you.
|
|
Aug 9, 2015 at 5:15 | history | edited | spotter | CC BY-SA 3.0 |
added 28 characters in body
|
Aug 9, 2015 at 5:10 | comment | added | PolyGeo♦ |
You still have 'inraster' (a string) instead of inraster (a variable name that you are creating when iterating your inrasters list). The error looks like it may be out of sync with your posted code. Something you may want to think about is that the code you are using is very un-ArcPythonic. I would be using arcpy.da.Walk (and/or perhaps arcpy.ListRasters ) rather than glob to do something like this.
|
|
Aug 9, 2015 at 5:03 | comment | added | spotter | actually that was a typo, I changed it above but the same error is still returned | |
Aug 9, 2015 at 5:02 | history | edited | spotter | CC BY-SA 3.0 |
deleted 1 character in body
|
Aug 9, 2015 at 4:54 | comment | added | PolyGeo♦ | inraster (variable) not 'inrasters' (string) on offending line | |
Aug 9, 2015 at 4:28 | history | edited | spotter | CC BY-SA 3.0 |
added 1266 characters in body
|
Aug 8, 2015 at 20:28 | history | edited | PolyGeo♦ |
edited tags
|
|
Aug 8, 2015 at 20:17 | vote | accept | spotter | ||
Aug 9, 2015 at 5:36 | |||||
Aug 8, 2015 at 20:02 | answer | added | brokev03 | timeline score: 1 | |
Aug 8, 2015 at 20:00 | comment | added | spotter | for what its worth I ended up just using a python code to rename the new output files based on the file names of the old input names | |
Aug 8, 2015 at 18:03 | review | First posts | |||
Aug 9, 2015 at 4:57 | |||||
Aug 8, 2015 at 17:49 | history | asked | spotter | CC BY-SA 3.0 |