I'm using ArcGIS Pro 3.0, though I only updated from 2.7.3 yesterday. I have ArcPy code to split large rasters into 4 equal corners: a top left, a top right, a bottom left, and a bottom right. Up until I updated, this code worked perfectly, but since the update, the tool has ignored the parameter to split the raster into columns and rows, and instead just splits it into columns.
Here is my original code:
#names and folders
nulltif2016 = r"G:\My Drive\work\Northern Animal Ecology Lab\sentineltif\evi2016null"
listnulltif2016 = glob.glob(nulltif2016 + r"\*.tif")
foldersplitcorners2016 = r"G:\My Drive\work\Northern Animal Ecology Lab\sentineltif\evi2016split"
#create name
for fp in listnulltif2016:
fn = os.path.basename(fp)[:-4]
date = fn[-8:]
namesplitcorners2016 = "split" + date + "c"
#apply splitraster
arcpy.management.SplitRaster(fp, foldersplitcorners2016, namesplitcorners2016, "NUMBER_OF_TILES", "TIFF", "", "2 2")
After the update, this produced 2 columns and 1 row, like a book. The code produced the same result when it was "2 4", which leads me to believe that it isn't reading the row parameter anymore.
Any advice on how this could be fixed would be greatly appreciated.