Extract values by attribute

Discussion created by alriks on Apr 30, 2014
Latest reply on May 1, 2014 by mdenil
I have a large USDA raster file from which I would like to extract subsets.
The input file has attributes such as 'Alfalfa' or 'Almonds'. I set up a model
which iterates through the values of the source raster. But, I am bedeviled
as to how to get the model to write out the attribute files with their value
in the name.

Such that:

Cycle 1       Select by attribute 'Alfalfa'         Write out "Alfalfa2013'
Cycle 2       Select by attribute 'Almond'        Write out 'Almond2013'

I can get it to cycle the selection of attributes from the source, but cannot
figure out how to pass that variable to the file that gets written out. What
ends up happening is that I get a single file at the end that has the last
value, say 'Watermelon'. Can this be done with model builder or do I need
a new approach?

Thank you in advance for any assistance!