POST
|
I have a model that has preconditions and if some of those preconditions aren't chosen, it is not a bad thing. But I get a yellow exclamation warning in the results window when a precondition boolean is false. Is there any way to make that warning not appear for a false precondition? Thanks anyone for help!
... View more
08-14-2012
12:20 PM
|
0
|
0
|
548
|
POST
|
With some massaging of the parameters, Workspace to Raster Dataset worked out just fine.
... View more
08-09-2012
01:45 PM
|
0
|
0
|
159
|
POST
|
Try to calculate statistics for the .tif file. Might be why it can't find a "table." *Attribute I mean not table
... View more
07-24-2012
09:52 AM
|
0
|
0
|
1022
|
POST
|
Try to calculate statistics for the .tif file. Might be why it can't find a "table."
... View more
07-24-2012
09:51 AM
|
0
|
0
|
1022
|
POST
|
Use the same exact NDVI equation in raster calculator as you have now, but instead of the band 3 and band 4 .tif you are currently using from landsat, replace them with the output after converting them to a float. You can convert them in raster calculator with the expression i.e. Float ("%Band 3.tif%") and repeat for band 4. Or you can use the Float tool in the toolbox Spatial Analyst -> Math. I recommend converting them to GRID files as well when converting to the float. Simply enough, just don't add the .tif extension when you name the output raster. Good luck.
... View more
07-24-2012
09:07 AM
|
0
|
0
|
1022
|
POST
|
Thank you for any insight on this issue. I have a semi-complicated model of python script tools and geoprocessing functions where I am trying to combine several raster datasets into one dataset. Seems easy enough? The issue is that I need to combine rasters from a workspace, not as indivual raster datasets. I potentially have 64 output raster datasets, of which any combination of 2 or all 64 may need to be combined. This makes it impossible to hard line the raster datasets into some type of mosaic tool or spatial analyst math tool. The model cannot rely on any specific file to be there. Currently, a boolean precondition is set to decide which of the rasters will be created, where they are then added to the model only Collect Values tool. This tool is exactly what I need because if the raster is created, it is in a workspace and if not, nothing is dependent on it. The only mosaic or combine type tool that I have had success with is creating a mosaic dataset and then adding the collection of rasters to the mosaic dataset. Unfortunately, I am not having success with the attribute table of the MD showing the values of each raster dataset specifically. Preferably, I would like all raster datasets to be combined into one. I have exhausted what I believe are all of the tools to do this. Mosaic to New Raster should work but with the way my model is structured, I get errors on the number of bands between input and output rasters. This is my million dollar question that I have not figured out, Does the Raster Calculator have a mechanism to merge or combine all rasters within a workspace? Such as, instead of Merge (Raster 1, Raster 2, Raster 3, etc) can it look to the Collect Value tool in the model with an expression similar to Merge (CollectedValues)? I know this was a long post, but any insight is appreciated! INCLUDING ALTERNATIVES. I have searched and tried but have just not come up with an answer yet. THANK YOU!
... View more
07-24-2012
08:04 AM
|
0
|
1
|
782
|
POST
|
You must first convert your .TIF bands from an integer to a float. The integer using an 8 bit pixel type for DN values from 0 - 255 in whole numbers. The float (32 bit) allows for decimals. The map algebra is Float ("%file.tif%")
... View more
07-24-2012
07:42 AM
|
0
|
0
|
1022
|
POST
|
Check out the example on this page called "Setting a Boolean Variable as a Precondition". That is EXACTLY what I needed! (FOR NOW I HOPE) HUGE THANK YOU!
... View more
02-03-2012
11:17 AM
|
0
|
0
|
503
|
POST
|
An even easier method to my solution would be: Can I make a precondition to the initial tool (starting the model) that the input parameter effecting it is not equal to 0? *NOTE* These individual models will all be combined into one large model so it would be ideal that the models with a 0 as their input parameter would be overlooked entriely, where the others >0 would execute.
... View more
02-03-2012
11:10 AM
|
0
|
0
|
503
|
POST
|
Thank you for your response Bruce, I was wondering however if an alternative is possible. Is there any type of parameter I can set in the very beginning of a model that will skip the entire thing. For instance, can I make a true or false domain that if the user selects false, none of the following functions will run?
... View more
02-03-2012
11:01 AM
|
0
|
0
|
503
|
POST
|
All help here is very much appreciated. I am wondering if a model or python script can skip or bypass certain specified geoprocessing functions if the models parameters are empty. I have a model that calculates a numerical output for a single polygon where the user must input 3 parameters. There has been a desire for a single model to combine that final calculation of many polygons. My first thought was simple, I would just copy and paste the processes within the model for each possible polygon and set the parameters so the user would input the 3 for each possible polygon. The issue is that although the user wants to have an option to calculate this value for every polygon (and combine them after the processing), there will be cases in which some of the polygons do not need analysis, and unfortunately leaving a default "0" will crash the model immediately. So therefore, I was wondering if I continued on my initial path, is it possible that by leaving a parameter empty, can it bypass its functions all together? Thank you very much for your time and assistance.
... View more
02-01-2012
09:38 AM
|
0
|
5
|
1155
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|