I am trying to standardise a raster file which I have reprojected and intend to combine with multiple other rasters. I create a raster object in order to do this, but when I use the variable for this raster object in the subsequent equation I get the error message:
AttributeError: 'Raster' object has no attribute 'min'
Is this an issue with the file or is this an error I made further back in the code?
Here is my script, all necessary modules were previously imported:
if raster == "ROS.tif":
ros_BNG = "ROS".strip(".tif") + "_BNG.tif"
arcpy.management.ProjectRaster(raster, ros_BNG, BNG)
print("Reprojected " + raster)
ros1 = Raster(ros_BNG)
ros_std = (ros1 - ros1.min())/(ros1.max()- ros1.min())
print("Standardised " + ros_BNG + " into " + ros_std)