I am trying to use inline variable substitution in ModelBuilder to return the name of a raster used in Zonal Statistics as a field in my output table (see model below).
Currently, the model works fine using the
"%Raster Dataset%" to get the field I want, but it returns the FULL file path - e.g.
C/Users/Newton/GIS/Project/RASTER123 instead of just
"RASTER123". Anyone know how to just select the name of the input raster, not the full path?