Name output using input base name (minus extension)

Discussion created by deleted-user-XuRyPg9pv1OY on Aug 15, 2011
Latest reply on Aug 20, 2011 by deleted-user-XuRyPg9pv1OY
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  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, 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