Select to view content in your preferred language

Geotif file

1063
4
Jump to solution
08-05-2021 02:12 PM
aaditya2000
Emerging Contributor

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.

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
DavidPike
MVP Frequent Contributor
out = arcpy.GetRasterProperties_management(r"path to your raster", "BANDCOUNT")
print(out.getOutput(0))

View solution in original post

0 Kudos
4 Replies
DavidPike
MVP Frequent Contributor
aaditya2000
Emerging Contributor

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

0 Kudos
DavidPike
MVP Frequent Contributor
out = arcpy.GetRasterProperties_management(r"path to your raster", "BANDCOUNT")
print(out.getOutput(0))
0 Kudos
aaditya2000
Emerging Contributor

Let me try & will update soon, thanks again for your help.

0 Kudos