Hello
Doas somebody knows maybe why script below does not work? I want to collect all rasters into one image but unfortunetelly it does not work Thank you for answers
Solved! Go to Solution.
Agata Kochanowska can you move this to the Python space and convert it to a Question. If you can, I'll tag Michelle Mathias and see if she can.
Questions tend to get more views and responses. For additinal tips, check out https://community.esri.com/community/help-and-feedback/blog/2016/08/15/community-news-and-tips-how-t...
but to also help answer, spacing is very important in Python. When in the softwares window, you do not need to import python (that is needed if not in ArcMap or Catalog). But as a start, have each of you import statements on one line, e.g.
import arcpy
import env
each command should be on a separate line.
Agata Kochanowska can you move this to the Python space and convert it to a Question. If you can, I'll tag Michelle Mathias and see if she can.
Questions tend to get more views and responses. For additinal tips, check out https://community.esri.com/community/help-and-feedback/blog/2016/08/15/community-news-and-tips-how-t...
but to also help answer, spacing is very important in Python. When in the softwares window, you do not need to import python (that is needed if not in ArcMap or Catalog). But as a start, have each of you import statements on one line, e.g.
import arcpy
import env
each command should be on a separate line.
Hi Rebecca, I converted it to a question and moved it to Python. Thanks!
Hi Agata,
You'll need to put each line of code on it's own line. You have them all on one right now which won't work.
Micah
Although we can point you in the right direction and help you create the python script, I wonder if you really need to script this, since you can also simply use the tool Composite Bands—Help | ArcGIS Desktop directly for this purpose.
In case you want to do this for several Landsat images it might we worthwhile to script this. If that is the case it would be good to provide more info on how your data is structured (paths for instance) and any other relevant information so that the solutions provided will help you to process the specific requirements you have.
Thank you All for respond!
Problem solved: I just put those data line by line, not in the row and is perfect! I am greatful for your help.