Select to view content in your preferred language

Issue calculating name from calculate value tool in model builder

1173
2
Jump to solution
08-04-2021 08:21 AM
SAV
by
Emerging Contributor

I am trying to transform several ASCII files into RASTER files using the ASCII to Raster tool. For that purpose, I have created the following model builder (see Captura). The names of the ASCII files are higher than 13 digits, then I try to shorten the name of the file to save the raster. Looking at some posts, I have tried to use the Calculate Value with the expression shown in Captura2 where I want to keep only from the 24 to the 27 digits of the ASCII name. I am not able to make it work and my questions are:

How is possible to define the calculate value as precondition for the ASCII to Raster tool? and

how can I use the output of calculate value as an inline variable to give the name to my rasters?

 

0 Kudos
1 Solution

Accepted Solutions
DanPatterson
MVP Esteemed Contributor

save the raster to a *.tif to avoid esri grid limitations


... sort of retired...

View solution in original post

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

save the raster to a *.tif to avoid esri grid limitations


... sort of retired...
0 Kudos
SAV
by
Emerging Contributor

Thank you, it works! I have not thought about that option, thanks!

0 Kudos