This forum is shutting down! Please post new discussions at community.naturalcapitalproject.org

Recreation Model - Error message: Error on server: 0 cells is too few for the grid.

I'm working with data from http://www.diva-gis.org/gdata, specifically for the country of Georgia. I'm using the Georgia admin areas as the AOI, one of the files is admin0 which is the national border. I'm also using the roads shapefile as a predictor for now. I've converted both into UTM Zone 38N. I'm running the model with a hexagonal grid, 10000m. I'm getting the error message in the title. Log below:

Initializing...

01/11/2016 11:31:35 root DEBUG PATH: ['C:\\InVEST_3_2_0_x86\\invest-3-x86\\.']

01/11/2016 11:31:35 root DEBUG Loading recreation_client from PATH

Arguments:

aoi_file_name C:/GIS/georgia/border/export/georgia.shp

cell_size 10000.0

comments

data_dir C:\GIS\georgia\data\roads

download False

global_data False

grid True

grid_type 1

mode initial

workspace_dir C:\GIS\georgia\workspace



01/11/2016 11:31:35 root INFO Logging will be saved to recreation_client-log-2016-01-11--11_31_35.txt

01/11/2016 11:31:35 root DEBUG Loaded the model from invest_natcap.recreation.recreation_client

01/11/2016 11:31:35 root INFO Executing the loaded model

01/11/2016 11:31:35 root INFO Running InVEST version "3.2.0"

01/11/2016 11:31:35 root INFO Python architecture: ('32bit', 'WindowsPE')

01/11/2016 11:31:35 root INFO Disk space remaining for workspace: 120.14 GB

01/11/2016 11:31:36 root INFO Pointing temporary directory at the workspace at C:\GIS\georgia\workspace

01/11/2016 11:31:36 root INFO Updating os.environ["TMP"]=C:\GIS\georgia\workspace\tmp to C:\GIS\georgia\workspace

01/11/2016 11:31:36 root INFO Updating os.environ["TEMP"]=C:\GIS\georgia\workspace\tmp to C:\GIS\georgia\workspace

01/11/2016 11:31:36 root INFO Updating os.environ["TMPDIR"]=C:\GIS\georgia\workspace\tmp to C:\GIS\georgia\workspace

01/11/2016 11:31:36 root INFO Setting tempfile.tempdir to C:\GIS\georgia\workspace\tmp

01/11/2016 11:31:36 root INFO Starting recreation_client

01/11/2016 11:31:36 invest_natcap.recreation.client_init INFO URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_version.php.

01/11/2016 11:31:36 invest_natcap.recreation.client_init INFO Trying URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_version.php.

01/11/2016 11:31:36 invest_natcap.recreation.client_init INFO Assigned server session id epm4chf2armv86nf7g5de4a873.

01/11/2016 11:31:36 invest_natcap.recreation.client_init INFO Checking version.

01/11/2016 11:31:36 invest_natcap.recreation.client_init INFO You have a compatible version.

01/11/2016 11:31:36 invest_natcap.recreation.client_init INFO Finished checking version.

01/11/2016 11:31:36 invest_natcap.recreation.client_init INFO Validating AOI.

01/11/2016 11:31:36 invest_natcap.recreation.client_init INFO Processing predictors.

01/11/2016 11:31:36 invest_natcap.recreation.client_init INFO Found GEO_roads predictor.

01/11/2016 11:31:36 invest_natcap.recreation.client_init INFO Opening predictors for uploading.

01/11/2016 11:31:36 invest_natcap.recreation.client_init INFO Trying URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_predictors.php.

01/11/2016 11:31:38 invest_natcap.recreation.client_init INFO You have uploaded 1 files.

01/11/2016 11:31:38 invest_natcap.recreation.client_init INFO Your upload size is 81675.

01/11/2016 11:31:38 invest_natcap.recreation.client_init INFO The max upload size is 104857600.

01/11/2016 11:31:38 invest_natcap.recreation.client_init INFO Running server side processing.

01/11/2016 11:31:38 invest_natcap.recreation.client_init INFO URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_initial.php.

01/11/2016 11:31:38 invest_natcap.recreation.client_init INFO Trying URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_initial.php.

01/11/2016 11:31:40 invest_natcap.recreation.client_init INFO Model running.

01/11/2016 11:31:41 invest_natcap.recreation.client_init INFO Executing recreation Python script.

01/11/2016 11:31:41 invest_natcap.recreation.client_init INFO Running server side model with user provided parameters.

01/11/2016 11:31:41 invest_natcap.recreation.client_init INFO The map unit coversion to meters is 1||0.

01/11/2016 11:31:41 invest_natcap.recreation.client_init INFO Found GEO_roads predictor.

01/11/2016 11:31:41 invest_natcap.recreation.client_init INFO Checking for custom categorization for standard predictors.

01/11/2016 11:31:41 invest_natcap.recreation.client_init INFO Only user provided simple predictors found.

01/11/2016 11:31:41 invest_natcap.recreation.client_init INFO Importing AOI /usr/local/public_html/data/epm4chf2armv86nf7g5de4a873/aoi.shp.

01/11/2016 11:31:41 invest_natcap.recreation.client_init INFO Imported AOI.

01/11/2016 11:31:41 invest_natcap.recreation.client_init INFO Importing user supplied predictor variables.

01/11/2016 11:31:41 invest_natcap.recreation.client_init INFO Importing user supplied compound variables.

01/11/2016 11:31:41 invest_natcap.recreation.client_init INFO Merging AOI if multiple parts.

01/11/2016 11:31:41 invest_natcap.recreation.client_init INFO Transforming AOI to Latitude and Longitude.

01/11/2016 11:31:41 invest_natcap.recreation.client_init INFO Please wait.

01/11/2016 11:31:57 invest_natcap.recreation.client_init WARNING The AOI intersects 5 and is covered by 5 administrative area(s).

01/11/2016 11:31:57 invest_natcap.recreation.client_init INFO Creating hexagonal grid prj_grid from aoi_union using cell size 10000.0.

01/11/2016 11:31:57 invest_natcap.recreation.client_init ERROR 0 cells is too few for the grid.

01/11/2016 11:31:57 root ERROR ---------------------------------------------------

01/11/2016 11:31:57 root ERROR ---------------------- ERROR ----------------------

01/11/2016 11:31:57 root ERROR ---------------------------------------------------

01/11/2016 11:31:57 root ERROR Error: exception found while running recreation_client

01/11/2016 11:31:57 root DEBUG

01/11/2016 11:31:57 root DEBUG Build details

01/11/2016 11:31:57 root DEBUG Interpreter

01/11/2016 11:31:57 root DEBUG Current temp dir: C:\GIS\georgia\workspace\tmp

01/11/2016 11:31:57 root DEBUG tempfile.tempdir: C:\GIS\georgia\workspace\tmp

01/11/2016 11:31:57 root DEBUG

01/11/2016 11:31:57 root DEBUG System

01/11/2016 11:31:57 root DEBUG OS : Windows-7-6.1.7601-SP1

01/11/2016 11:31:57 root DEBUG Processor architecture: x86

01/11/2016 11:31:57 root DEBUG FS encoding : mbcs

01/11/2016 11:31:57 root DEBUG Preferred encoding: cp1252

01/11/2016 11:31:57 root DEBUG

01/11/2016 11:31:57 root DEBUG Python

01/11/2016 11:31:57 root DEBUG Version : 2.7.9

01/11/2016 11:31:57 root DEBUG Build : ('default', 'Dec 10 2014 12:24:55')

01/11/2016 11:31:57 root DEBUG Compiler : MSC v.1500 32 bit (Intel)

01/11/2016 11:31:57 root DEBUG Implementation : CPython

01/11/2016 11:31:57 root DEBUG Architecture : 32bit

01/11/2016 11:31:57 root DEBUG Linkage format : WindowsPE

01/11/2016 11:31:57 root DEBUG

01/11/2016 11:31:57 root DEBUG Packages

01/11/2016 11:31:57 root DEBUG Cython : ?

01/11/2016 11:31:57 root DEBUG Numpy : 1.8.1

01/11/2016 11:31:57 root DEBUG Scipy : 0.15.1

01/11/2016 11:31:57 root DEBUG OSGEO : 1.10.1

01/11/2016 11:31:57 root DEBUG Shapely : 1.5.5

01/11/2016 11:31:57 root DEBUG InVEST : 3.2.0

01/11/2016 11:31:57 root DEBUG

01/11/2016 11:31:57 root DEBUG

01/11/2016 11:31:57 root DEBUG error <type 'exceptions.IOError'> number None

01/11/2016 11:31:57 root DEBUG Error message: Error on server: 0 cells is too few for the grid.

01/11/2016 11:31:57 root DEBUG Exception not disk-space related

01/11/2016 11:31:57 root DEBUG Printing traceback

Traceback (most recent call last):

File "invest_natcap\iui\executor.pyc", line 555, in runModel

File "invest_natcap\recreation\recreation_client.pyc", line 546, in execute

File "invest_natcap\recreation\recreation_client.pyc", line 125, in log_check

File "invest_natcap\recreation\recreation_client.pyc", line 82, in relogger

IOError: Error on server: 0 cells is too few for the grid.

None


01/11/2016 11:31:57 root ERROR Exiting due to failures

Comments

  • DaveDave Member, Administrator, NatCap Staff
    @chris89, It sounds like the model was not able to fit any grid cells of that size within the AOI polygon. I would double check your AOI projection and confirm that it is in UTM and uses meters as the linear unit. For example, if by chance it is still in decimal degree units, then it would be trying to make cells with 10,000 degree sides, and it obviously wouldn't be able to fit any inside the AOI.

    If you've double-checked that and still get this error, you can send me your AOI and I'll take a look.

    Thanks,
    Dave
  • Thanks Dave!

    I swapped out my AOI shapefile for another one from a different source and it's all set. I had to reproject the first one and must have made an error doing it and keeping everything in meters.
  • DaveDave Member, Administrator, NatCap Staff
    Glad to hear it!
This discussion has been closed.