Hi All,
In modelbuilder, I need to use the base name from an input file to name an output later in the process. For example, I have NetCDF files named like A12_G01_X00_ABCABC10.nc. I want to clip the features and name the output using the same name, minus the ".nc" extension.
I can easily use the input filename as an inline variable using %InputFile%.shp, but that produces A12_G01_X00_ABCABC10.nc.shp, which contains an extra period and therefore creates an illegal character.
Is it possible to use an inline variable to drop the extension ".nc" and replace it with ".shp".
Thank you!
Matt Ruch
GIS Analyst
Brown & Caldwell