Skip to Content.

mget-help - [mget-help] Trouble with Predict GAM from Rasters tool

Please Wait...

Subject: Marine Geospatial Ecology Tools (MGET) help

Text archives


From: Raquel Romero Chaves <>
To:
Subject: [mget-help] Trouble with Predict GAM from Rasters tool
Date: Thu, 25 Jun 2015 15:54:25 -0600
Good Afternoon,

I am using the Marine Geospatial Ecology Tool to create a fish species quantity model the pacific cost of Costa Rica, at depths from -100m to -300m. . I have been following the steps from the webinar given by Jason Roberts, but i get an error while running Predict GAM from Raster. 

This is my data: we have 20 stations distributed along the pacific cost of costa rica, they were sampled once a year by trawl fishing and got the fish data for each trawl made. This was done for only 4 years.

To Fit my Gam, im using as a "response variable" the total count of my individuals, poisson, as "Continuos predictor variables" bathymetry, chlorophyll and SST (all extracted from rasters), as "Continuos predictor Variables" the ONI category from NOAA: Niño, Niña or Normal (depending on the year)  and as a "Offset variable" the  trawling's area.  This GAM was used as an input for the Predict GAM from raster.

The problem comes here, when using Predict GAM from raster for the year 2008.  At the "Constant predictors" box I have to include the Area and ONI with their values.  If i include area first and write down "1" at the value section (like in the webinar by Jaso R, although i dont really know if that is correct) and then add the ONI category with "Normal" (that year had no niño or niña event) i get this response: "UnboundLocalError: local variable 'value' referenced before assignment".  And if i include ONI "Normal" first and Area "1" second, the tool does not recognize the ONI data and it says that ONI was not taken into account for that prediction, and then creates a raster BUT i can not see it and have a single wrong value.

I really need some advice on how to solve this problem. I appreciate any help you can give me. Thanks a lot!
--
Raquel
Archives powered by MHonArc.
Top of Page