| 1 | <?xml version="1.0" encoding="utf-8"?> |
|---|
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|---|
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="81help.css?format=raw" /><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Predict GAM From Rasters</title></head><body><table style="margin-top:-1em; margin-bottom:0; padding:0; margin-left:-1em"><tr><td style="background:white"><img width="875" height="70" alt="ArcToolbox banner" src="AHBanner_ArcToolbox.gif?format=raw" /></td></tr></table><h1>Predict GAM From Rasters</h1><p></p><p>Using a fitted generalized additive model (GAM), this tool creates a raster representing the response variable predicted from ArcGIS rasters representing the predictor variables.</p><br /><p><h2><img width="11" height="11" border="0" src="sm_arrow_down.gif?format=raw" /> Command line syntax</h2></p><div Class="expand" id="id103139">GAMPredictFromArcGISRasters_GeoEco <inputModelFile> <inputPredictorRasters;inputPredictorRasters...> <variableNames;variableNames...> <outputResponseRaster> {templateRaster} {resamplingTechniques;resamplingTechniques...} {ignoreOutOfRangeValues} {outputErrorRaster} {outputBinaryResponseRaster} {cutoff} {buildPyramids} <br /><br /><b>Parameters</b><br /><table width="100%" border="0" cellpadding="5"><tbody><tr><th width="40%"><b>Expression</b></th><th width="60%"><b>Explanation</b></th></tr><tr><td class="info"><inputModelFile></td><td class="info" align="left"><p>File that contains the fitted model, generated by the Fit GAM |
|---|
| 4 | tool.</p></td></tr><tr><td class="info"><inputPredictorRasters;inputPredictorRasters...></td><td class="info" align="left"><p>Rasters that represent the predictor variables used in the model.</p><p>This list must include one raster for each predictor variable that |
|---|
| 5 | appears in the model's formula. The list provided for the Model |
|---|
| 6 | Variable Names for Predictor Rasters parameter specifies the predictor |
|---|
| 7 | variable that each raster represents.</p><p>For example, if your model used the formula:</p><dl><dt></dt><dd><pre>Presence ~ SST + Chl + Depth</pre></dd></dl><p>You must specify three rasters, one for each predictor variable. If |
|---|
| 8 | you want to predict Presence for the month of January 1999, you might |
|---|
| 9 | use a static bathymetry raster and SST and chlorophyll rasters for |
|---|
| 10 | that month:</p><dl><dt></dt><dd><pre>C:\Data\etopo2v2 |
|---|
| 11 | C:\Data\SST\sst199901 |
|---|
| 12 | C:\Data\Chlorophyll\chl199901</pre></dd></dl><p>Then, for the Model Variable Names for Predictor Rasters parameter, |
|---|
| 13 | you would specify the predictor variable that each raster represents:</p><dl><dt></dt><dd><pre>Depth |
|---|
| 14 | SST |
|---|
| 15 | Chl</pre></dd></dl><p>You can specify extra predictors that do not appear in the formula. |
|---|
| 16 | They will be ignored. In the example above, you might include the |
|---|
| 17 | variable SSH (sea surface height) and the raster |
|---|
| 18 | C:\Data\SSH\ssh199901. Because this variable does not appear |
|---|
| 19 | in the model formula, it will be ignored.</p><p>All of the predictor rasters must have a coordinate system defined. |
|---|
| 20 | They must all share the same datum. If you also specify the Template |
|---|
| 21 | Raster For Outputs parameter, they must have the datum of the template |
|---|
| 22 | raster. If you do not specify that parameter, the first predictor |
|---|
| 23 | raster will be used as the template raster.</p><p>The predictor rasters need not have the same coordinate system, |
|---|
| 24 | extent, or cell size as the template raster. If these characteristics |
|---|
| 25 | differ from the template raster, this tool will automatically project |
|---|
| 26 | and clip the predictor rasters to conform to the template raster. The |
|---|
| 27 | predictor rasters must be able to be projected to the template |
|---|
| 28 | raster's coordinate system without requiring the specification of a |
|---|
| 29 | geographic transformation. An error will be reported if a geographic |
|---|
| 30 | transformation must be specified. In this case, you must project the |
|---|
| 31 | predictor rasters manually before providing them to this tool.</p><p>By default, floating point predictor rasters will be projected using |
|---|
| 32 | bilinear interpolation and integer predictor rasters will be projected |
|---|
| 33 | using nearest neighbor assignment. Bilinear interpolation is |
|---|
| 34 | appropriate for continuous variables such as sea surface temperature, |
|---|
| 35 | while nearest neighbor is appropriate for categorical variables such |
|---|
| 36 | as bottom substrate type. If these defaults are not appropriate for |
|---|
| 37 | your predictors, specify different algorithms using the Resampling |
|---|
| 38 | Techniques for Predictor Rasters parameter.</p></td></tr><tr><td class="info"><variableNames;variableNames...></td><td class="info" align="left"><p>Model variable names for the input predictor rasters. The variable |
|---|
| 39 | names are case sensitive. Please see the documentation for the Input |
|---|
| 40 | Predictor Rasters parameter for more information.</p></td></tr><tr><td class="info"><outputResponseRaster></td><td class="info" align="left"><p>Output raster representing the response predicted by the model |
|---|
| 41 | from the input predictor rasters.</p><p>If any pixel is NoData in any predictor raster (after it has been |
|---|
| 42 | projected and clipped as needed), the pixel will be NoData in the |
|---|
| 43 | output raster as well. This is because the response variable cannot be |
|---|
| 44 | predicted by the model if any of the predictor variables are |
|---|
| 45 | missing.</p></td></tr><tr><td class="info">{templateRaster}</td><td class="info" align="left"><p>Template raster that defines the coordinate system, extent, and |
|---|
| 46 | cell size of the output rasters produced by this tool.</p><p>If you do not specify a template raster, the first predictor raster |
|---|
| 47 | will be used instead.</p><p>All predictor rasters must share the same datum as the template |
|---|
| 48 | raster. The predictor rasters need not have the same coordinate |
|---|
| 49 | system, extent, or cell size as the template raster. If these |
|---|
| 50 | characteristics differ from the template raster, this tool will |
|---|
| 51 | automatically project and clip the predictor rasters to conform to the |
|---|
| 52 | template raster. Please see the documentation for the Input Predictor |
|---|
| 53 | Rasters parameter for more information.</p></td></tr><tr><td class="info">{resamplingTechniques;resamplingTechniques...}</td><td class="info" align="left"><p>Resampling technique to be used for each input predictor raster if |
|---|
| 54 | that raster needs to be automatically projected, as described in the |
|---|
| 55 | documentation for the Input Predictor Rasters parameter.</p><p>The available resampling techniques are:</p><ul><li><p>NEAREST - Nearest neighbor assignment</p></li></ul><ul><li><p>BILINEAR - Bilinear interpolation</p></li></ul><ul><li><p>CUBIC - Cubic convolution</p></li></ul><p>If you do not specify a resampling technique for a given input |
|---|
| 56 | predictor raster, BILINEAR will be used.</p><p>The ArcGIS 9.2 documentation provides the following information about the |
|---|
| 57 | resampling techniques:</p><ul><li><p>The NEAREST option, which performs a nearest neighbor assignment, is |
|---|
| 58 | the fastest of the interpolation methods. It is primarily used for |
|---|
| 59 | categorical data, such as a land use classification, because it will |
|---|
| 60 | not change the cell values. Do not use NEAREST for continuous data, |
|---|
| 61 | such as elevation surfaces.</p></li></ul><ul><li><p>The BILINEAR option, bilinear interpolation, determines the new |
|---|
| 62 | value of a cell based on a weighted distance average of surrounding |
|---|
| 63 | cells. The CUBIC option, cubic convolution, determines the new cell |
|---|
| 64 | value by fitting a smooth curve through the surrounding points. |
|---|
| 65 | These are most appropriate for continuous data and may cause some |
|---|
| 66 | smoothing; also, cubic convolution may result in the output raster |
|---|
| 67 | containing values outside the range of the input raster. It is not |
|---|
| 68 | recommended that BILINEAR or CUBIC be used with categorical data |
|---|
| 69 | because the cell values may be altered.</p></li></ul></td></tr><tr><td class="info">{ignoreOutOfRangeValues}</td><td class="info" align="left"><p>If True, predictions will not be made where the values of |
|---|
| 70 | predictor rasters fall outside of the range of values used to fit the |
|---|
| 71 | model. These cells will appear as NoData in the output rasters.</p><p>If False, predictions will be attempted regardless of what the |
|---|
| 72 | predictor values are.</p><p>This parameter is set to True by default because many believe that it |
|---|
| 73 | is a bad practice to extrapolate a model beyond the range of values |
|---|
| 74 | used to fit it. But if your model provides a very strong fit, or you |
|---|
| 75 | have some other reason to believe it is very robust, you can set this |
|---|
| 76 | parameter to False to perform the extrapolation.</p></td></tr><tr><td class="info">{outputErrorRaster}</td><td class="info" align="left"><p>Output raster representing the standard errors of the predicted |
|---|
| 77 | response.</p><p>If any pixel is NoData in any predictor raster (after it has been |
|---|
| 78 | projected and clipped as needed), it will be NoData in the output |
|---|
| 79 | raster as well. This is because the response variable cannot be |
|---|
| 80 | predicted by the model if any of the predictor variables are |
|---|
| 81 | missing.</p></td></tr><tr><td class="info">{outputBinaryResponseRaster}</td><td class="info" align="left"><p>Output raster with the predicted response classified into two |
|---|
| 82 | possible values, 0 or 1, according to the cutoff parameter (which you |
|---|
| 83 | must also provide). Predicted response values less than the cutoff |
|---|
| 84 | will be classified as 0; values greater than or equal to the cutoff |
|---|
| 85 | will be classified as 1.</p><p>If any pixel is NoData in any predictor raster (after it has been |
|---|
| 86 | projected and clipped as needed), it will be NoData in the output |
|---|
| 87 | raster as well. This is because the response variable cannot be |
|---|
| 88 | predicted by the model if any of the predictor variables are |
|---|
| 89 | missing.</p><p>You can examine the performance of your model for different cutoff |
|---|
| 90 | values using the Plot ROC of Binary Classification Model tool or the |
|---|
| 91 | Plot Performance of Binary Classification Model tool.</p></td></tr><tr><td class="info">{cutoff}</td><td class="info" align="left"><p>Cutoff for classifying the continous predicted response into a |
|---|
| 92 | binary response. See the documentation for the Output Binary Response |
|---|
| 93 | Raster for more information.</p></td></tr><tr><td class="info">{buildPyramids}</td><td class="info" align="left"><p>If True, pyramids will be built for the output rasters, which will |
|---|
| 94 | improve their display speed in the ArcGIS user interface.</p></td></tr></tbody></table></div><p><h2><img width="11" height="11" border="0" src="sm_arrow_down.gif?format=raw" /> Scripting syntax</h2></p><div Class="expand" id="TEST">GAMPredictFromArcGISRasters_GeoEco (inputModelFile, inputPredictorRasters, variableNames, outputResponseRaster, templateRaster, resamplingTechniques, ignoreOutOfRangeValues, outputErrorRaster, outputBinaryResponseRaster, cutoff, buildPyramids) <br /><br /><b>Parameters</b><br /><table width="100%" border="0" cellpadding="5"><tbody><tr><th width="40%"><b>Expression</b></th><th width="60%"><b>Explanation</b></th></tr><tr><td class="info">Input model file (Required) </td><td class="info" align="left"><p>File that contains the fitted model, generated by the Fit GAM |
|---|
| 95 | tool.</p></td></tr><tr><td class="info">Input predictor rasters (Required) </td><td class="info" align="left"><p>Rasters that represent the predictor variables used in the model.</p><p>This list must include one raster for each predictor variable that |
|---|
| 96 | appears in the model's formula. The list provided for the Model |
|---|
| 97 | Variable Names for Predictor Rasters parameter specifies the predictor |
|---|
| 98 | variable that each raster represents.</p><p>For example, if your model used the formula:</p><dl><dt></dt><dd><pre>Presence ~ SST + Chl + Depth</pre></dd></dl><p>You must specify three rasters, one for each predictor variable. If |
|---|
| 99 | you want to predict Presence for the month of January 1999, you might |
|---|
| 100 | use a static bathymetry raster and SST and chlorophyll rasters for |
|---|
| 101 | that month:</p><dl><dt></dt><dd><pre>C:\Data\etopo2v2 |
|---|
| 102 | C:\Data\SST\sst199901 |
|---|
| 103 | C:\Data\Chlorophyll\chl199901</pre></dd></dl><p>Then, for the Model Variable Names for Predictor Rasters parameter, |
|---|
| 104 | you would specify the predictor variable that each raster represents:</p><dl><dt></dt><dd><pre>Depth |
|---|
| 105 | SST |
|---|
| 106 | Chl</pre></dd></dl><p>You can specify extra predictors that do not appear in the formula. |
|---|
| 107 | They will be ignored. In the example above, you might include the |
|---|
| 108 | variable SSH (sea surface height) and the raster |
|---|
| 109 | C:\Data\SSH\ssh199901. Because this variable does not appear |
|---|
| 110 | in the model formula, it will be ignored.</p><p>All of the predictor rasters must have a coordinate system defined. |
|---|
| 111 | They must all share the same datum. If you also specify the Template |
|---|
| 112 | Raster For Outputs parameter, they must have the datum of the template |
|---|
| 113 | raster. If you do not specify that parameter, the first predictor |
|---|
| 114 | raster will be used as the template raster.</p><p>The predictor rasters need not have the same coordinate system, |
|---|
| 115 | extent, or cell size as the template raster. If these characteristics |
|---|
| 116 | differ from the template raster, this tool will automatically project |
|---|
| 117 | and clip the predictor rasters to conform to the template raster. The |
|---|
| 118 | predictor rasters must be able to be projected to the template |
|---|
| 119 | raster's coordinate system without requiring the specification of a |
|---|
| 120 | geographic transformation. An error will be reported if a geographic |
|---|
| 121 | transformation must be specified. In this case, you must project the |
|---|
| 122 | predictor rasters manually before providing them to this tool.</p><p>By default, floating point predictor rasters will be projected using |
|---|
| 123 | bilinear interpolation and integer predictor rasters will be projected |
|---|
| 124 | using nearest neighbor assignment. Bilinear interpolation is |
|---|
| 125 | appropriate for continuous variables such as sea surface temperature, |
|---|
| 126 | while nearest neighbor is appropriate for categorical variables such |
|---|
| 127 | as bottom substrate type. If these defaults are not appropriate for |
|---|
| 128 | your predictors, specify different algorithms using the Resampling |
|---|
| 129 | Techniques for Predictor Rasters parameter.</p></td></tr><tr><td class="info">Model variable names for predictor rasters (Required) </td><td class="info" align="left"><p>Model variable names for the input predictor rasters. The variable |
|---|
| 130 | names are case sensitive. Please see the documentation for the Input |
|---|
| 131 | Predictor Rasters parameter for more information.</p></td></tr><tr><td class="info">Output response raster (Required) </td><td class="info" align="left"><p>Output raster representing the response predicted by the model |
|---|
| 132 | from the input predictor rasters.</p><p>If any pixel is NoData in any predictor raster (after it has been |
|---|
| 133 | projected and clipped as needed), the pixel will be NoData in the |
|---|
| 134 | output raster as well. This is because the response variable cannot be |
|---|
| 135 | predicted by the model if any of the predictor variables are |
|---|
| 136 | missing.</p></td></tr><tr><td class="info">Template raster for outputs (Optional) </td><td class="info" align="left"><p>Template raster that defines the coordinate system, extent, and |
|---|
| 137 | cell size of the output rasters produced by this tool.</p><p>If you do not specify a template raster, the first predictor raster |
|---|
| 138 | will be used instead.</p><p>All predictor rasters must share the same datum as the template |
|---|
| 139 | raster. The predictor rasters need not have the same coordinate |
|---|
| 140 | system, extent, or cell size as the template raster. If these |
|---|
| 141 | characteristics differ from the template raster, this tool will |
|---|
| 142 | automatically project and clip the predictor rasters to conform to the |
|---|
| 143 | template raster. Please see the documentation for the Input Predictor |
|---|
| 144 | Rasters parameter for more information.</p></td></tr><tr><td class="info">Resampling techniques (Optional) </td><td class="info" align="left"><p>Resampling technique to be used for each input predictor raster if |
|---|
| 145 | that raster needs to be automatically projected, as described in the |
|---|
| 146 | documentation for the Input Predictor Rasters parameter.</p><p>The available resampling techniques are:</p><ul><li><p>NEAREST - Nearest neighbor assignment</p></li></ul><ul><li><p>BILINEAR - Bilinear interpolation</p></li></ul><ul><li><p>CUBIC - Cubic convolution</p></li></ul><p>If you do not specify a resampling technique for a given input |
|---|
| 147 | predictor raster, BILINEAR will be used.</p><p>The ArcGIS 9.2 documentation provides the following information about the |
|---|
| 148 | resampling techniques:</p><ul><li><p>The NEAREST option, which performs a nearest neighbor assignment, is |
|---|
| 149 | the fastest of the interpolation methods. It is primarily used for |
|---|
| 150 | categorical data, such as a land use classification, because it will |
|---|
| 151 | not change the cell values. Do not use NEAREST for continuous data, |
|---|
| 152 | such as elevation surfaces.</p></li></ul><ul><li><p>The BILINEAR option, bilinear interpolation, determines the new |
|---|
| 153 | value of a cell based on a weighted distance average of surrounding |
|---|
| 154 | cells. The CUBIC option, cubic convolution, determines the new cell |
|---|
| 155 | value by fitting a smooth curve through the surrounding points. |
|---|
| 156 | These are most appropriate for continuous data and may cause some |
|---|
| 157 | smoothing; also, cubic convolution may result in the output raster |
|---|
| 158 | containing values outside the range of the input raster. It is not |
|---|
| 159 | recommended that BILINEAR or CUBIC be used with categorical data |
|---|
| 160 | because the cell values may be altered.</p></li></ul></td></tr><tr><td class="info">Ignore raster values outside the modeled range (Optional) </td><td class="info" align="left"><p>If True, predictions will not be made where the values of |
|---|
| 161 | predictor rasters fall outside of the range of values used to fit the |
|---|
| 162 | model. These cells will appear as NoData in the output rasters.</p><p>If False, predictions will be attempted regardless of what the |
|---|
| 163 | predictor values are.</p><p>This parameter is set to True by default because many believe that it |
|---|
| 164 | is a bad practice to extrapolate a model beyond the range of values |
|---|
| 165 | used to fit it. But if your model provides a very strong fit, or you |
|---|
| 166 | have some other reason to believe it is very robust, you can set this |
|---|
| 167 | parameter to False to perform the extrapolation.</p></td></tr><tr><td class="info">Output standard error raster (Optional) </td><td class="info" align="left"><p>Output raster representing the standard errors of the predicted |
|---|
| 168 | response.</p><p>If any pixel is NoData in any predictor raster (after it has been |
|---|
| 169 | projected and clipped as needed), it will be NoData in the output |
|---|
| 170 | raster as well. This is because the response variable cannot be |
|---|
| 171 | predicted by the model if any of the predictor variables are |
|---|
| 172 | missing.</p></td></tr><tr><td class="info">Output binary response raster (Optional) </td><td class="info" align="left"><p>Output raster with the predicted response classified into two |
|---|
| 173 | possible values, 0 or 1, according to the cutoff parameter (which you |
|---|
| 174 | must also provide). Predicted response values less than the cutoff |
|---|
| 175 | will be classified as 0; values greater than or equal to the cutoff |
|---|
| 176 | will be classified as 1.</p><p>If any pixel is NoData in any predictor raster (after it has been |
|---|
| 177 | projected and clipped as needed), it will be NoData in the output |
|---|
| 178 | raster as well. This is because the response variable cannot be |
|---|
| 179 | predicted by the model if any of the predictor variables are |
|---|
| 180 | missing.</p><p>You can examine the performance of your model for different cutoff |
|---|
| 181 | values using the Plot ROC of Binary Classification Model tool or the |
|---|
| 182 | Plot Performance of Binary Classification Model tool.</p></td></tr><tr><td class="info">Cutoff (Optional) </td><td class="info" align="left"><p>Cutoff for classifying the continous predicted response into a |
|---|
| 183 | binary response. See the documentation for the Output Binary Response |
|---|
| 184 | Raster for more information.</p></td></tr><tr><td class="info">Build pyramids (Optional) </td><td class="info" align="left"><p>If True, pyramids will be built for the output rasters, which will |
|---|
| 185 | improve their display speed in the ArcGIS user interface.</p></td></tr></tbody></table></div></body></html> |
|---|