05-04-2018 08:07 AM
Hi. I'm very new to IMAGINE, and trying to teach myself how to use Spatial Modeler (with some experience with ArcGIS Model Builder). I'm trying to create a model which will prompt me for both input files (Landsat Bands) to build a Layer stack, and then subset it, AND an output location/filenamefor the subset raster.
I've got the input Port prompts working, and have tried both Port Output and Raster Output operators, but still can't get it to prompt me for a filename. My model runs successfully, up to a Preview, but not the output file name prompt. I have looked at numerous Spatial Modeler tutorials and helpf files for every operator, but can't find the solution.
I will appreciate any advice or pointers to the answer elsewhere.
THanks in advance,
Solved! Go to Solution.
05-04-2018 09:00 AM
What does your Model look like? Does it look like this?
Remember - this is NOT a task for the Port Output operator. You are wanting to input the name of the output file. So you use a Port Input connected to the FilenameIn port of the Raster Output operator.
About the only time I ever use a Port Output operator is inside Iterators (and other sub-models) to pass information out of the Iterator.
If you're still having problems please post a screenshot of what you have.
BTW - did you review this eTraining video? It does go through the process of setting up prompts for both inputs and outputs:
05-04-2018 09:09 AM
There's also various examples of Layer Stacking Landsat scenes in the Spatial Recipes section of the Community. Here's one example:
That one automatically names the output (rather than prompting). But most of the examples in Spatial Recipes have prompts for output filenames.
05-06-2018 06:40 AM
Thanks! exactly the error I had made, and the solution I needed. Thanks also for the other links and the example that uses the string to select the other bands needed for my stack which will greatly simplify/make more elegant! my model!
I appreciate the help!