Attempting to create a new stack with the following command syntax:
MAKESTACK testStack LIST [grid1] [grid2] [grid3]Fails with the following error message:
"Output stack must be in same workspace as its inputs"
All grids necessary to generate a stack must be in the current workspace. The default location for your working directory is your system's temporary directory, usually C:\TEMP.
Solution or Workaround
Ensure that the path to your working directory is the same path as the input grids.
There are two options for specifying your working directory.
- Before you perform any analysis, specify a location on disk for your results using the Analysis Options dialog box. This way, all your analysis results will go to this directory.
1. Click the Spatial Analyst dropdown arrow and click Options.
2. Click the General tab.
3. Type a location on disk for your analysis results or use the Browse button to navigate to a directory.
4. Click OK.
- Specify a location on disk each time you perform analysis in each of the function dialog boxes.
When performing any function, type a location on disk and a name for the output.
Alternatively, use the Browse button to navigate to a folder on disk. By specifying a location and a name, the results will be permanent.