(I have been trying to see if this type of problem had already been resolved in the forum, but I can't find an existing thread about it. Please feel free to redirect me if this issue has been answered many times before.)
I am using Model Builder in ArcGIS Desktop 10.
In order to convert HDFs into ArcGIS rasters, I need to finish my model with a conversion from 16-bit integers to values in Celsius degrees. The equation for that is: float("raster_name") * 0.075 - 3 I have used this equation in RasterCalculator for single HDF files before but now I would like to integrate the RasterCalculator tool into my model.
However, I can't figure out how to link the output raster from the previous tool to RasterCalculator. So far my model looks like: Input raster -> PrepareSSTData (tool) -> Output Raster -> ? -> RasterCalculator (with MAexpression) -> Output raster(2)
Is there a way to do that in Model Builder ? or should I find another way ?
I do see the Raster Output in the pick-list but the tool does not work. Here is what I do : In Model Builder, I'm connecting Output Raster to the Raster Calculator tool using the "Precondition" connection. I use this kind of connection because the only other options for the connection are "Map algebra expression" which is not right or the "Environments" kind of connections, which is not what want I want either. Once I have Output Raster and Raster Calculator connected (it uses a dashed line), I can see Output raster in the Calculator pick-list. I use it to write my expression. However, when I want to use the model, just after I click the OK button I get an error pop-up window even before the model starts running : "The value is empty. ERROR 000735: ArcGIS raster: Value is required." which, I think, is referring to the Output Raster.
Any clue about that ?
PS: I attached a screenshot of the model as I have it. On top is a previous step that converts the HDF file to a raster. This part works fine by itself. [ATTACH=CONFIG]23299[/ATTACH]
Yeah, that how it looks for me too. On your picture, you don't connect the Raster Dataset to Raster Calculator tool. Is that the way it should be ? or is it just because you wanted to show me the pick-list and you didn't need to connected them properly ?
If the data type of "Output raster" is Raster Dataset or Raster Layer, the next thing I'd check is its content. You may have to modify your script so it will return a value (raster dataset pathname?) that tools can recognize. (Note that since Make Raster layer did not work either, this isn't a problem with the Raster Calculator tool; it's with the value or type of Output raster.
Yeah, sorry, the tool I use is from the MGET toolbox. I'm trying the most recent version now, but I seem to have a problem with it too. I think I'll contact them to see if they have any idea of what could be wrong.