Subject: Marine Geospatial Ecology Tools (MGET) help
Text archives
From: | "Jason Roberts" <> |
---|---|
To: | "'Liza Hoos'" <> |
Cc: | <> |
Subject: | RE: [mget-help] glm, predict glm from table |
Date: | Tue, 25 Sep 2012 18:56:32 -0400 |
Liza, Yes, the variable names are case sensitive. Ultimately, this is imposed by R. I think you are having trouble with a subtle aspect of the ArcGIS geoprocessing system. If you change a parameter value but only change its case, ArcGIS concludes that the parameter value was NOT changed, so it uses the original case. This causes problems when you simply need to change the case of some parameter’s value. To do that, you first have to change the parameter’s value in some OTHER way, click OK, then change it AGAIN, this time to the case you want. So if the value is currently “month_1” and you want it to be “Month_1”, first change it to “asdf”, then click OK, then open the tool again and change it to “Month_1”, then click OK. Now it should be “Month_1”. If you do not change it to something else first (“asdf”) and try to change directly from “month_1” to “Month_1”, it ignores your change and keeps it at “month_1”. Make sense? Let me know if that helps… Jason From: Liza Hoos [mailto:] Hi Jason, On Tue, Sep 25, 2012 at 1:45 PM, Jason Roberts <> wrote: Liza, The screenshot did not come through, but again the verbose output contains what I needed to see what you meant. If I understand you correctly, you’ve almost got the parameters right. You fitted a model that included Month_1 as a categorical predictor and now you want to predict a raster. To do that, you have to provide a value for Month_1 to be used during the prediction. You have two choices. 1) Provide a raster for that predictor. This is a clunky solution because it will be the same value everywhere. But in older versions of MGET, it was your only option. Now you can 2) provide a constant value as a parameter to the tool. To do that, enter Month_1 for the Constant Predictor Variables parameter and the desired integer value (e.g. 1) for the Constant Values parameter. In the verbose output, it appears that you entered factor(Month_1) for the Constant Predictor Variables. It should work if you just enter Month_1. Let me know if that works. Best, Jason From: Liza Hoos [mailto:] Sent: Tuesday, September 25, 2012 12:28 PM Subject: Re: [mget-help] glm, predict glm from table Hi Jason, On Fri, Sep 21, 2012 at 6:15 PM, Jason Roberts <> wrote: Liza, That is a bug in MGET that we also recently encountered. I’m sorry you hit it. Thank you for the debug report with verbose logging. That allows me to very quickly confirm it is the same problem. A patched file is attached. To apply it to your system: 1. Make sure you have MGET 0.8a43 installed. (You do—I can see this in the verbose logging—but others reading this message might not.) 2. Shut down all ArcGIS programs. 3. Save the attached file one of the following directories, depending on your version of ArcGIS and Python, overwriting the file that is already there: a. Arc 9.2 - C:\Python24\Lib\site-packages\GeoEco\Statistics b. Arc 9.3 - C:\Python25\Lib\site-packages\GeoEco\Statistics c. Arc 10.0 - C:\Python26\ArcGIS10.0\Lib\site-packages\GeoEco\Statistics d. Arc 10.1 - C:\Python27\ArcGIS10.1\Lib\site-packages\GeoEco\Statistics Then try again. Please let me know if it works. Best, Jason From: Liza Hoos [mailto:] Hello, |