how do I get a list of rasters in a geodatabase?

2712
2
Jump to solution
02-13-2018 01:31 PM
DanielSchatt
New Contributor III

For ListRasters, there's no geodatabase raster type option in the parameter for setting the raster type, so how do I do this?  Thanks!

Dan

1 Solution

Accepted Solutions
PaulSmith8
New Contributor II

No need to set raster type to list raster in GDB.

arcpy.env.workspace = r"C:\rasters.gdb"
rasterList = arcpy.ListRasters()
print rasterList

View solution in original post

2 Replies
PaulSmith8
New Contributor II

No need to set raster type to list raster in GDB.

arcpy.env.workspace = r"C:\rasters.gdb"
rasterList = arcpy.ListRasters()
print rasterList
DanielSchatt
New Contributor III

thanks Paul

0 Kudos