Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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)?

share|improve this question

1 Answer 1

up vote 7 down vote accepted

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

share|improve this answer
1  
Thank you very much Aaron! It works. –  Eddie May 21 '13 at 16:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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