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

Error 0

Hello! I was trying to run NDR Model but encountered an error: 

Initializing...

03/12/2017 21:18:43 root DEBUG Loading <module 'natcap.invest.ndr.ndr' from 'C:\INVEST~1.3_X\INVEST~1\natcap\invest\ndr\ndr.pyc'> in frozen environment

Arguments:

biophysical_table_path D:/invest 3.3.3/biotable.csv

calc_n True

calc_p False

dem_path D:/invest 3.3.3/route dem/pit_filled_dem.tif

k_param 2

lulc_path D:/invest 3.3.3/lulc.tif

runoff_proxy_path C:\InVEST_3.3.3_x86\Base_Data\Freshwater\precip

subsurface_critical_length_n 150

subsurface_eff_n 0.8

threshold_flow_accumulation 1000

watersheds_path D:/invest 3.3.3/delineate/watersheds.shx

workspace_dir D:\invest 3.3.3



03/12/2017 21:18:43 root INFO Logging will be saved to natcap.invest.ndr.ndr-log-2017-03-12--21_18_43.txt

03/12/2017 21:18:43 root DEBUG Loaded the model from natcap.invest.ndr.ndr

03/12/2017 21:18:43 root INFO Executing the loaded model

03/12/2017 21:18:43 root INFO Running InVEST version "3.3.3"

03/12/2017 21:18:43 root INFO Python architecture: ('32bit', 'WindowsPE')

03/12/2017 21:18:43 root INFO Disk space remaining for workspace: 256.34 GB

03/12/2017 21:18:43 root INFO Pointing temporary directory at the workspace at D:\invest 3.3.3

03/12/2017 21:18:43 root INFO Starting natcap.invest.ndr.ndr

03/12/2017 21:18:43 root INFO Setting tempfile.tempdir to D:\invest 3.3.3\tmp

03/12/2017 21:18:43 natcap.invest.ndr.ndr INFO calculating flow accumulation

03/12/2017 21:18:48 pygeoprocessing.routing.routing_core INFO labeling flats

03/12/2017 21:18:49 pygeoprocessing.routing.routing_core INFO draining away from higher

03/12/2017 21:18:49 pygeoprocessing.routing.routing_core INFO draining towards lower

03/12/2017 21:18:50 pygeoprocessing.routing DEBUG flats exist, calculating flow direction for them

03/12/2017 21:18:52 pygeoprocessing.routing.routing_core INFO labeling flats

03/12/2017 21:18:52 pygeoprocessing.routing.routing_core INFO draining away from higher

03/12/2017 21:18:52 pygeoprocessing.routing.routing_core INFO draining towards lower

03/12/2017 21:18:52 pygeoprocessing.routing INFO flats exist on second pass, must be flat areas that abut the raster edge

03/12/2017 21:18:52 pygeoprocessing.routing DEBUG starting flow accumulation

03/12/2017 21:18:55 natcap.invest.ndr.ndr INFO Calculating slope

03/12/2017 21:18:57 pygeoprocessing.geoprocessing WARNING These two datasets might not be in the same projection. The different projections are:


'filename: D:/invest 3.3.3/lulc.tif'

PROJCS["WGS 84 / UTM zone 46N",

GEOGCS["WGS 84",

DATUM["WGS_1984",

SPHEROID["WGS 84",6378137,298.257223563,

AUTHORITY["EPSG","7030"]],

AUTHORITY["EPSG","6326"]],

PRIMEM["Greenwich",0],

UNIT["degree",0.0174532925199433],

AUTHORITY["EPSG","4326"]],

PROJECTION["Transverse_Mercator"],

PARAMETER["latitude_of_origin",0],

PARAMETER["central_meridian",93],

PARAMETER["scale_factor",0.9996],

PARAMETER["false_easting",500000],

PARAMETER["false_northing",0],

UNIT["metre",1,

AUTHORITY["EPSG","9001"]],

AUTHORITY["EPSG","32646"]]


and:


'filename:C:\InVEST_3.3.3_x86\Base_Data\Freshwater\precip'

PROJCS["UTM Zone 10, Northern Hemisphere",

GEOGCS["NAD83",

DATUM["North_American_Datum_1983",

SPHEROID["GRS 1980",6378137,298.257222101,

AUTHORITY["EPSG","7019"]],

TOWGS84[0,0,0,0,0,0,0],

AUTHORITY["EPSG","6269"]],

PRIMEM["Greenwich",0,

AUTHORITY["EPSG","8901"]],

UNIT["degree",0.0174532925199433,

AUTHORITY["EPSG","9108"]],

AUTHORITY["EPSG","4269"]],

PROJECTION["Transverse_Mercator"],

PARAMETER["latitude_of_origin",0],

PARAMETER["central_meridian",-123],

PARAMETER["scale_factor",0.9996],

PARAMETER["false_easting",500000],

PARAMETER["false_northing",0],

UNIT["METERS",1]]



03/12/2017 21:18:57 osgeo.gdal ERROR [errno 1] Unable to compute a transformation between pixel/line and georeferenced coordinates for D:/invest 3.3.3/lulc.tif. There is no affine transformation and no GCPs.

03/12/2017 21:18:57 osgeo.gdal ERROR [errno 1] D:\invest 3.3.3\aligned_runoff_proxy.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.

03/12/2017 21:18:58 osgeo.gdal ERROR [errno 1] D:\invest 3.3.3\tmp\tmpaqwv4w.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.

03/12/2017 21:18:58 osgeo.gdal ERROR [errno 1] D:\invest 3.3.3\tmp\tmpaqu3oo.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.

03/12/2017 21:19:10 osgeo.gdal ERROR [errno 1] D:\invest 3.3.3\tmp\tmpbq_uif.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.

03/12/2017 21:19:10 osgeo.gdal ERROR [errno 1] D:\invest 3.3.3\intermediate_outputs\runoff_proxy_index.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.

03/12/2017 21:19:10 natcap.invest.ndr.ndr INFO Classifying streams from flow accumulation raster

03/12/2017 21:19:10 root ERROR ---------------------------------------------------

03/12/2017 21:19:10 root ERROR ---------------------- ERROR ----------------------

03/12/2017 21:19:10 root ERROR ---------------------------------------------------

03/12/2017 21:19:10 root ERROR Error: exception found while running natcap.invest.ndr.ndr

03/12/2017 21:19:10 root DEBUG

03/12/2017 21:19:10 root DEBUG Build details

03/12/2017 21:19:10 root DEBUG Interpreter

03/12/2017 21:19:10 root DEBUG Current temp dir: D:\invest 3.3.3\tmp

03/12/2017 21:19:10 root DEBUG tempfile.tempdir: D:\invest 3.3.3\tmp

03/12/2017 21:19:10 root DEBUG

03/12/2017 21:19:10 root DEBUG System

03/12/2017 21:19:10 root DEBUG OS : Windows-7-6.1.7601-SP1

03/12/2017 21:19:10 root DEBUG Processor architecture: AMD64

03/12/2017 21:19:10 root DEBUG FS encoding : mbcs

03/12/2017 21:19:10 root DEBUG Preferred encoding: cp949

03/12/2017 21:19:10 root DEBUG

03/12/2017 21:19:10 root DEBUG Python

03/12/2017 21:19:10 root DEBUG Version : 2.7.9

03/12/2017 21:19:10 root DEBUG Build : ('default', 'Dec 10 2014 12:24:55')

03/12/2017 21:19:10 root DEBUG Compiler : MSC v.1500 32 bit (Intel)

03/12/2017 21:19:10 root DEBUG Implementation : CPython

03/12/2017 21:19:10 root DEBUG Architecture : 32bit

03/12/2017 21:19:10 root DEBUG Linkage format : WindowsPE

03/12/2017 21:19:10 root DEBUG

03/12/2017 21:19:10 root DEBUG Packages

03/12/2017 21:19:10 root DEBUG Cython : ?

03/12/2017 21:19:10 root DEBUG Numpy : 1.11.2

03/12/2017 21:19:10 root DEBUG Scipy : 0.16.1

03/12/2017 21:19:10 root DEBUG OSGEO : 1.11.3

03/12/2017 21:19:10 root DEBUG Shapely : 1.5.5

03/12/2017 21:19:10 root DEBUG InVEST : 3.3.3

03/12/2017 21:19:10 root DEBUG

03/12/2017 21:19:10 root DEBUG

03/12/2017 21:19:10 root DEBUG Exception not environment-related

03/12/2017 21:19:10 root DEBUG Printing traceback

Traceback (most recent call last):

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.iui.executor", line 620, in runModel

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.ndr.ndr", line 385, in execute

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\pygeoprocessing.geoprocessing", line 2389, in vectorize_datasets

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.ndr.ndr", line 297, in map_load

KeyError: 0



03/12/2017 21:19:10 root ERROR Exiting due to failures


Here is the Dropbox link: https://www.dropbox.com/sh/pvuz22l1ktm6iu3/AADE-xBno4WKGDtEss6GxZOGa?dl=0 ;


Thank You very much!:)

Comments

  • RichRich Administrator, NatCap Staff
    Hi, at the very least it looks like your landcover and precipitation rasters are in different projections.  The error may be related to the coordinate systems not overlapping.  Can you ensure your data are all in the same projection and see if that fixes your issue?
  • GohalyaGohalya Member
    edited March 2017

    Post edited by Gohalya on
  • Hello, Rich. Yes, Projections are all the same. I thought maybe watershed shapefile was causing error, edited that and run NRD again, but thereis an error again: 

    Initializing...

    03/13/2017 16:51:28 root DEBUG Loading <module 'natcap.invest.ndr.ndr' from 'C:\INVEST~1.3_X\INVEST~1\natcap\invest\ndr\ndr.pyc'> in frozen environment

    Arguments:

    biophysical_table_path D:/invest 3.3.3/biotable.csv

    calc_n True

    calc_p False

    dem_path D:/invest 3.3.3/route dem/pit_filled_dem.tif

    k_param 2

    lulc_path D:/invest 3.3.3/landcover/lulc.tif

    runoff_proxy_path D:/invest 3.3.3/nutrient_runoff(precip)/precipit.tif

    subsurface_critical_length_n 150

    subsurface_eff_n 0.8

    threshold_flow_accumulation 1000

    watersheds_path D:/invest 3.3.3/delineate/watersheds.shp

    workspace_dir D:\invest 3.3.3



    03/13/2017 16:51:28 root INFO Logging will be saved to natcap.invest.ndr.ndr-log-2017-03-13--16_51_28.txt

    03/13/2017 16:51:28 root DEBUG Loaded the model from natcap.invest.ndr.ndr

    03/13/2017 16:51:28 root INFO Executing the loaded model

    03/13/2017 16:51:28 root INFO Running InVEST version "3.3.3"

    03/13/2017 16:51:28 root INFO Python architecture: ('32bit', 'WindowsPE')

    03/13/2017 16:51:28 root INFO Disk space remaining for workspace: 256.25 GB

    03/13/2017 16:51:28 root INFO Pointing temporary directory at the workspace at D:\invest 3.3.3

    03/13/2017 16:51:28 root INFO Starting natcap.invest.ndr.ndr

    03/13/2017 16:51:28 root INFO Setting tempfile.tempdir to D:\invest 3.3.3\tmp

    03/13/2017 16:51:29 natcap.invest.ndr.ndr INFO calculating flow accumulation

    03/13/2017 16:51:33 pygeoprocessing.routing.routing_core INFO labeling flats

    03/13/2017 16:51:34 pygeoprocessing.routing.routing_core INFO draining away from higher

    03/13/2017 16:51:34 pygeoprocessing.routing.routing_core INFO draining towards lower

    03/13/2017 16:51:35 pygeoprocessing.routing DEBUG flats exist, calculating flow direction for them

    03/13/2017 16:51:37 pygeoprocessing.routing.routing_core INFO labeling flats

    03/13/2017 16:51:37 pygeoprocessing.routing.routing_core INFO draining away from higher

    03/13/2017 16:51:37 pygeoprocessing.routing.routing_core INFO draining towards lower

    03/13/2017 16:51:37 pygeoprocessing.routing INFO flats exist on second pass, must be flat areas that abut the raster edge

    03/13/2017 16:51:37 pygeoprocessing.routing DEBUG starting flow accumulation

    03/13/2017 16:51:40 natcap.invest.ndr.ndr INFO Calculating slope

    03/13/2017 16:51:41 osgeo.gdal ERROR [errno 1] Unable to compute a transformation between pixel/line and georeferenced coordinates for D:/invest 3.3.3/landcover/lulc.tif. There is no affine transformation and no GCPs.

    03/13/2017 16:51:41 osgeo.gdal ERROR [errno 1] Unable to compute a transformation between pixel/line and georeferenced coordinates for D:/invest 3.3.3/nutrient_runoff(precip)/precipit.tif. There is no affine transformation and no GCPs.

    03/13/2017 16:51:55 osgeo.gdal ERROR [errno 1] D:\invest 3.3.3\intermediate_outputs\runoff_proxy_index.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.

    03/13/2017 16:51:55 natcap.invest.ndr.ndr INFO Classifying streams from flow accumulation raster

    03/13/2017 16:51:56 root ERROR ---------------------------------------------------

    03/13/2017 16:51:56 root ERROR ---------------------- ERROR ----------------------

    03/13/2017 16:51:56 root ERROR ---------------------------------------------------

    03/13/2017 16:51:56 root ERROR Error: exception found while running natcap.invest.ndr.ndr

    03/13/2017 16:51:56 root DEBUG

    03/13/2017 16:51:56 root DEBUG Build details

    03/13/2017 16:51:56 root DEBUG Interpreter

    03/13/2017 16:51:56 root DEBUG Current temp dir: D:\invest 3.3.3\tmp

    03/13/2017 16:51:56 root DEBUG tempfile.tempdir: D:\invest 3.3.3\tmp

    03/13/2017 16:51:56 root DEBUG

    03/13/2017 16:51:56 root DEBUG System

    03/13/2017 16:51:56 root DEBUG OS : Windows-7-6.1.7601-SP1

    03/13/2017 16:51:56 root DEBUG Processor architecture: AMD64

    03/13/2017 16:51:56 root DEBUG FS encoding : mbcs

    03/13/2017 16:51:56 root DEBUG Preferred encoding: cp949

    03/13/2017 16:51:56 root DEBUG

    03/13/2017 16:51:56 root DEBUG Python

    03/13/2017 16:51:56 root DEBUG Version : 2.7.9

    03/13/2017 16:51:56 root DEBUG Build : ('default', 'Dec 10 2014 12:24:55')

    03/13/2017 16:51:56 root DEBUG Compiler : MSC v.1500 32 bit (Intel)

    03/13/2017 16:51:56 root DEBUG Implementation : CPython

    03/13/2017 16:51:56 root DEBUG Architecture : 32bit

    03/13/2017 16:51:56 root DEBUG Linkage format : WindowsPE

    03/13/2017 16:51:56 root DEBUG

    03/13/2017 16:51:56 root DEBUG Packages

    03/13/2017 16:51:56 root DEBUG Cython : ?

    03/13/2017 16:51:56 root DEBUG Numpy : 1.11.2

    03/13/2017 16:51:56 root DEBUG Scipy : 0.16.1

    03/13/2017 16:51:56 root DEBUG OSGEO : 1.11.3

    03/13/2017 16:51:56 root DEBUG Shapely : 1.5.5

    03/13/2017 16:51:56 root DEBUG InVEST : 3.3.3

    03/13/2017 16:51:56 root DEBUG

    03/13/2017 16:51:56 root DEBUG

    03/13/2017 16:51:56 root DEBUG Exception not environment-related

    03/13/2017 16:51:56 root DEBUG Printing traceback

    Traceback (most recent call last):

    File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.iui.executor", line 620, in runModel

    File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.ndr.ndr", line 385, in execute

    File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\pygeoprocessing.geoprocessing", line 2389, in vectorize_datasets

    File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.ndr.ndr", line 297, in map_load

    KeyError: 0



    03/13/2017 16:51:56 root ERROR Exiting due to failures


    the dorpbox link: https://www.dropbox.com/sh/pvuz22l1ktm6iu3/AADE-xBno4WKGDtEss6GxZOGa?dl=0 ;


  • RichRich Administrator, NatCap Staff
    Hi, I think the error's coming from a lack of overlap between the raster data and watershed geometry.  But it seems more complicated than that...  The projection is stated to be UTM46N, but the coordinate systems for the rasters extend 0,1800,0,-1800.  The projected bounds of UTM46N are 166021.4431, 0.0000, 833978.5569, 9329005.1825 which means you'd expect your raster to also be within those bounds somewhere.

    You can also plot your watersheds.shp file on top and see that it's north of all the rasters, like the y coordinate got flipped which may be your actual error. 

    Aside from all of this, the pixel size seems to be "1" which, if the model ran, would affect the results significantly assuming the pixel sizes aren't really 1m X 1m.

    See a screenshot of all of this (the tiny blip in the upper left hand corner is the watershed geometry) http://i.imgur.com/He9bVQk.jpg

    Can you fix the georeference for your raster/vector geometry and try again?

  • Hello, Rich. I've tried to plot my watershed file on top of other rasters, as you've suggested, but they do  overlap fro me (i attached screenshot). I've corrected my precipitation map, run NDR model again and got this error:

    Arguments:
    biophysical_table_path       D:/invest 3.3.3/biotable.csv
    calc_n                       True
    calc_p                       False
    dem_path                     D:/invest 3.3.3/utm46n/route dem/pit_filled_dem.tif
    k_param                      2
    lulc_path                    D:/invest 3.3.3/utm46n/landcover/lulc.tif
    runoff_proxy_path            D:/invest 3.3.3/utm46n/nutrient_runoff(precip)/clipprecip.tif
    subsurface_critical_length_n 150
    subsurface_eff_n             0.8
    threshold_flow_accumulation  1000
    watersheds_path              D:/invest 3.3.3/utm46n/delineate/watersheds.shx
    workspace_dir                D:\invest 3.3.3\utm46n


    03/20/2017 00:06:52  root               INFO     Logging will be saved to natcap.invest.ndr.ndr-log-2017-03-20--00_06_52.txt
    03/20/2017 00:06:52  root               DEBUG    Loaded the model from natcap.invest.ndr.ndr
    03/20/2017 00:06:52  root               INFO     Executing the loaded model
    03/20/2017 00:06:52  root               INFO     Running InVEST version "3.3.3"
    03/20/2017 00:06:52  root               INFO     Python architecture: ('32bit', 'WindowsPE')
    03/20/2017 00:06:52  root               INFO     Disk space remaining for workspace: 256.89 GB
    03/20/2017 00:06:52  root               INFO     Pointing temporary directory at the workspace at D:\invest 3.3.3\utm46n
    03/20/2017 00:06:52  root               INFO     Starting natcap.invest.ndr.ndr
    03/20/2017 00:06:52  root               INFO     Setting tempfile.tempdir to D:\invest 3.3.3\utm46n\tmp
    03/20/2017 00:06:53  natcap.invest.ndr.ndr INFO     calculating flow accumulation
    03/20/2017 00:06:58  pygeoprocessing.routing.routing_core INFO     labeling flats
    03/20/2017 00:06:58  pygeoprocessing.routing.routing_core INFO     draining away from higher
    03/20/2017 00:06:59  pygeoprocessing.routing.routing_core INFO     draining towards lower
    03/20/2017 00:07:00  pygeoprocessing.routing DEBUG    flats exist, calculating flow direction for them
    03/20/2017 00:07:01  pygeoprocessing.routing.routing_core INFO     labeling flats
    03/20/2017 00:07:01  pygeoprocessing.routing.routing_core INFO     draining away from higher
    03/20/2017 00:07:01  pygeoprocessing.routing.routing_core INFO     draining towards lower
    03/20/2017 00:07:02  pygeoprocessing.routing INFO     flats exist on second pass, must be flat areas that abut the raster edge
    03/20/2017 00:07:02  pygeoprocessing.routing DEBUG    starting flow accumulation
    03/20/2017 00:07:05  natcap.invest.ndr.ndr INFO     Calculating slope
    03/20/2017 00:07:06  pygeoprocessing.geoprocessing WARNING  These two datasets might not be in the same projection. The different projections are:

    'filename: D:/invest 3.3.3/utm46n/landcover/lulc.tif'
    PROJCS["WGS 84 / UTM zone 46N",
        GEOGCS["WGS 84",
            DATUM["WGS_1984",
                SPHEROID["WGS 84",6378137,298.257223563,
                    AUTHORITY["EPSG","7030"]],
                AUTHORITY["EPSG","6326"]],
            PRIMEM["Greenwich",0],
            UNIT["degree",0.0174532925199433],
            AUTHORITY["EPSG","4326"]],
        PROJECTION["Transverse_Mercator"],
        PARAMETER["latitude_of_origin",0],
        PARAMETER["central_meridian",93],
        PARAMETER["scale_factor",0.9996],
        PARAMETER["false_easting",500000],
        PARAMETER["false_northing",0],
        UNIT["metre",1,
            AUTHORITY["EPSG","9001"]],
        AUTHORITY["EPSG","32646"]]

    and:

    'filename:D:/invest 3.3.3/utm46n/nutrient_runoff(precip)/clipprecip.tif'
    PROJCS["WGS_1984_UTM_Zone_42N",
        GEOGCS["WGS 84",
            DATUM["WGS_1984",
                SPHEROID["WGS 84",6378137,298.257223563,
                    AUTHORITY["EPSG","7030"]],
                AUTHORITY["EPSG","6326"]],
            PRIMEM["Greenwich",0],
            UNIT["degree",0.0174532925199433],
            AUTHORITY["EPSG","4326"]],
        PROJECTION["Transverse_Mercator"],
        PARAMETER["latitude_of_origin",0],
        PARAMETER["central_meridian",69],
        PARAMETER["scale_factor",0.9996],
        PARAMETER["false_easting",500000],
        PARAMETER["false_northing",0],
        UNIT["metre",1,
            AUTHORITY["EPSG","9001"]],
        AUTHORITY["EPSG","32642"]]


    03/20/2017 00:07:07  osgeo.gdal         ERROR    [errno 1] Unable to compute a transformation between pixel/line and georeferenced coordinates for D:/invest 3.3.3/utm46n/landcover/lulc.tif. There is no affine transformation and no GCPs.
    03/20/2017 00:07:07  osgeo.gdal         ERROR    [errno 1] D:\invest 3.3.3\utm46n\aligned_runoff_proxy.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.
    03/20/2017 00:07:08  osgeo.gdal         ERROR    [errno 1] D:\invest 3.3.3\utm46n\tmp\tmpy9vlk0.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.
    03/20/2017 00:07:09  osgeo.gdal         ERROR    [errno 1] D:\invest 3.3.3\utm46n\tmp\tmpz4dmpg.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.
    03/20/2017 00:07:21  osgeo.gdal         ERROR    [errno 1] D:\invest 3.3.3\utm46n\tmp\tmpmrbdwn.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.
    03/20/2017 00:07:21  natcap.invest.ndr.ndr INFO     Classifying streams from flow accumulation raster
    03/20/2017 00:07:22  root               ERROR    ---------------------------------------------------
    03/20/2017 00:07:22  root               ERROR    ---------------------- ERROR ----------------------
    03/20/2017 00:07:22  root               ERROR    ---------------------------------------------------
    03/20/2017 00:07:22  root               ERROR    Error: exception found while running natcap.invest.ndr.ndr
    03/20/2017 00:07:22  root               DEBUG    
    03/20/2017 00:07:22  root               DEBUG    Build details
    03/20/2017 00:07:22  root               DEBUG    Interpreter
    03/20/2017 00:07:22  root               DEBUG    Current temp dir: D:\invest 3.3.3\utm46n\tmp
    03/20/2017 00:07:22  root               DEBUG    tempfile.tempdir: D:\invest 3.3.3\utm46n\tmp
    03/20/2017 00:07:22  root               DEBUG    
    03/20/2017 00:07:22  root               DEBUG    System
    03/20/2017 00:07:22  root               DEBUG    OS              : Windows-7-6.1.7601-SP1
    03/20/2017 00:07:22  root               DEBUG    Processor architecture: AMD64
    03/20/2017 00:07:22  root               DEBUG    FS encoding     : mbcs
    03/20/2017 00:07:22  root               DEBUG    Preferred encoding: cp949
    03/20/2017 00:07:22  root               DEBUG    
    03/20/2017 00:07:22  root               DEBUG    Python
    03/20/2017 00:07:22  root               DEBUG    Version         : 2.7.9
    03/20/2017 00:07:22  root               DEBUG    Build           : ('default', 'Dec 10 2014 12:24:55')
    03/20/2017 00:07:22  root               DEBUG    Compiler        : MSC v.1500 32 bit (Intel)
    03/20/2017 00:07:22  root               DEBUG    Implementation  : CPython
    03/20/2017 00:07:22  root               DEBUG    Architecture    : 32bit
    03/20/2017 00:07:22  root               DEBUG    Linkage format  : WindowsPE
    03/20/2017 00:07:22  root               DEBUG    
    03/20/2017 00:07:22  root               DEBUG    Packages
    03/20/2017 00:07:22  root               DEBUG    Cython          : ?
    03/20/2017 00:07:22  root               DEBUG    Numpy           : 1.11.2
    03/20/2017 00:07:22  root               DEBUG    Scipy           : 0.16.1
    03/20/2017 00:07:22  root               DEBUG    OSGEO           : 1.11.3
    03/20/2017 00:07:22  root               DEBUG    Shapely         : 1.5.5
    03/20/2017 00:07:22  root               DEBUG    InVEST          : 3.3.3
    03/20/2017 00:07:22  root               DEBUG    
    03/20/2017 00:07:22  root               DEBUG    
    03/20/2017 00:07:22  root               DEBUG    Exception not environment-related
    03/20/2017 00:07:22  root               DEBUG    Printing traceback
    Traceback (most recent call last):
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.iui.executor", line 620, in runModel
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.ndr.ndr", line 385, in execute
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\pygeoprocessing.geoprocessing", line 2389, in vectorize_datasets
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.ndr.ndr", line 297, in map_load
    KeyError: 0

    DROPBOX: 
    1206 x 554 - 83K
  • swolnyswolny Member, NatCap Staff
    The model output indicates that one of your inputs is projected in UTM zone 42N and the other one is in UTM zone 46N, which will not overlap (see this page for a map of UTM zones.) Are you using ArcGIS or QGIS for viewing the rasters? If you're using ArcGIS, it does "on the fly" projection to try and cause layers to overlap visually. This makes it *look* like they overlap, when sometimes they really don't. 

    I'm not sure if UTM zone 46N or 42N is appropriate for your area of interest, but pick one of them and reproject all of your input layers to exactly match that projection, then try running the model again.

    ~ Stacie
  • Thank You, Stacie. 
    And, I was wondering, if area of my interest covers several UTM zones (41N-42n-42n) (it is syrdarya river basin in central asia), can I choose the one in the middle? 
  • GohalyaGohalya Member
    edited March 2017

    Post edited by Gohalya on
  • RichRich Administrator, NatCap Staff
    Sure, for most cases if you're on the border of a UTM zone, it's fine to pick the one that lies in the middle.
  • Thank You, Rich:) 
Sign In or Register to comment.