4

I am running a model in ModelBuilder. The input are raster files in *.tiff format and the output are *.asc format.

I am using iterate raster and there will be 365 input and output files using %name%.asc

e.g input file : LST01011990.tiff --> output file LST01011990.tiff.asc

How I can output the filename to LST01011990.asc (without repeating the *.tiff)?

1 Answer 1

8

Use the model only tool called Parse Path.

  1. Right-click on the ModelBuilder screen > Model Only Tools > Parse Path.
  2. Make sure to select the "NAME" Parse Type, which will pass on "LST01011990" to the next tool
  3. Connect "Value" to the next tool as a precondition, so that the name is parsed before the Raster to ASCII is run
  4. Call the raster name in the raster to ascii tool via %Value%.

enter image description here

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.