Hello:
My question is, let say I have Geotif file and but i don't' have rest of the any details. Programmatically or using Python\ArcGIS API. I want to find out how many layers does this one GeoTif file has and how I can extract each layer from that one file.
Is it possible? Is it someone in community might have come across similar situation and how it was resolved.
Any pointer or link is greatly appreciated.
Thanking in advance.
Solved! Go to Solution.
out = arcpy.GetRasterProperties_management(r"path to your raster", "BANDCOUNT")
print(out.getOutput(0))
posssibly https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/get-raster-properties.htm
property - BAND_COUNT
Hello David:
Thanks for your reply & helping me, I appreciate you.
One more request, is there publicly available code that can educate me more in detail.
Thanks
out = arcpy.GetRasterProperties_management(r"path to your raster", "BANDCOUNT")
print(out.getOutput(0))
Let me try & will update soon, thanks again for your help.