This question follows up on Crianopa's answer https://gis.stackexchange.com/a/107687/126329 - I am attempting to do just this, but my model fails at the Calculate value stage. Using the expression from Crianopa "%value%"[0:6] I still get error message:
File "<expression>", line 1, in <module> ERROR 000539: Error running expression: LT05_L1GS_099072_20050106_20161127_01_T2_sr_band7 Traceback (most recent call last): NameError: name 'LT05_L1GS_099072_20050106_20161127_01_T2_sr_band7' is not defined
Would anyone know where I am going wrong? I'm in 10.4.1.
I'm not familiar with python so I seek a ModelBuilder solution.