Route DEM

Hello everyone! I was trying to use Route DEM tool to generate an input DEM file to NRD. However it displays an error : "The datasets intersection is empty". I am new to GIS, but the projection seems to be right. 

Comments

  • RichRich Administrator, NatCap Staff
    Surprising too since RouteDEM only takes one input!    Can you paste or attach the entire log output here so we can figure out what's going on?
  • GohalyaGohalya Member

    Sure, here it is:)


    Initializing...

    03/06/2017 09:43:10 root DEBUG Loading <module 'natcap.invest.routing.routedem' from 'C:\INVEST~1.2_X\INVEST~1\natcap\invest\routing\routedem.pyc'> in frozen environment

    Arguments:

    calculate_downstream_distance True

    calculate_slope True

    dem_uri D:/InVEST NRD/DEM/dem/reprojdem.tif.ovr

    downstream_distance_filename downstream_distance.tif

    flow_accumulation_filename flow_accumulation.tif

    flow_direction_filename flow_direction.tif

    multiple_stream_thresholds True

    pit_filled_filename pit_filled_dem.tif

    slope_filename slope.tif

    threshold_flow_accumulation 1000

    threshold_flow_accumulation_stepsize 100

    threshold_flow_accumulation_upper 2000

    workspace_dir D:\InVEST NRD



    03/06/2017 09:43:11 root INFO Logging will be saved to natcap.invest.routing.routedem-log-2017-03-06--09_43_11.txt

    03/06/2017 09:43:11 root DEBUG Loaded the model from natcap.invest.routing.routedem

    03/06/2017 09:43:11 root INFO Executing the loaded model

    03/06/2017 09:43:11 root INFO Running InVEST version "3.3.2"

    03/06/2017 09:43:11 root INFO Python architecture: ('32bit', 'WindowsPE')

    03/06/2017 09:43:11 root INFO Disk space remaining for workspace: 258.92 GB

    03/06/2017 09:43:11 root INFO Pointing temporary directory at the workspace at D:\InVEST NRD

    03/06/2017 09:43:11 root INFO Updating os.environ["TMP"]=D:\InVEST NRD\tmp to D:\InVEST NRD

    03/06/2017 09:43:11 root INFO Updating os.environ["TEMP"]=D:\InVEST NRD\tmp to D:\InVEST NRD

    03/06/2017 09:43:11 root INFO Updating os.environ["TMPDIR"]=D:\InVEST NRD\tmp to D:\InVEST NRD

    03/06/2017 09:43:11 root INFO Setting tempfile.tempdir to D:\InVEST NRD\tmp

    03/06/2017 09:43:11 root INFO Starting natcap.invest.routing.routedem

    03/06/2017 09:43:11 natcap.invest.routing.routedem INFO creating directory D:\InVEST NRD

    03/06/2017 09:43:11 natcap.invest.routing.routedem INFO resolving filling pits

    03/06/2017 09:43:11 root ERROR ---------------------------------------------------

    03/06/2017 09:43:11 root ERROR ---------------------- ERROR ----------------------

    03/06/2017 09:43:11 root ERROR ---------------------------------------------------

    03/06/2017 09:43:12 root ERROR Error: exception found while running natcap.invest.routing.routedem

    03/06/2017 09:43:12 root DEBUG

    03/06/2017 09:43:12 root DEBUG Build details

    03/06/2017 09:43:12 root DEBUG Interpreter

    03/06/2017 09:43:12 root DEBUG Current temp dir: D:\InVEST NRD\tmp

    03/06/2017 09:43:12 root DEBUG tempfile.tempdir: D:\InVEST NRD\tmp

    03/06/2017 09:43:12 root DEBUG

    03/06/2017 09:43:12 root DEBUG System

    03/06/2017 09:43:12 root DEBUG OS : Windows-7-6.1.7601-SP1

    03/06/2017 09:43:12 root DEBUG Processor architecture: AMD64

    03/06/2017 09:43:12 root DEBUG FS encoding : mbcs

    03/06/2017 09:43:12 root DEBUG Preferred encoding: cp949

    03/06/2017 09:43:12 root DEBUG

    03/06/2017 09:43:12 root DEBUG Python

    03/06/2017 09:43:12 root DEBUG Version : 2.7.9

    03/06/2017 09:43:12 root DEBUG Build : ('default', 'Dec 10 2014 12:24:55')

    03/06/2017 09:43:12 root DEBUG Compiler : MSC v.1500 32 bit (Intel)

    03/06/2017 09:43:12 root DEBUG Implementation : CPython

    03/06/2017 09:43:12 root DEBUG Architecture : 32bit

    03/06/2017 09:43:12 root DEBUG Linkage format : WindowsPE

    03/06/2017 09:43:12 root DEBUG

    03/06/2017 09:43:12 root DEBUG Packages

    03/06/2017 09:43:12 root DEBUG Cython : ?

    03/06/2017 09:43:12 root DEBUG Numpy : 1.11.2rc1

    03/06/2017 09:43:12 root DEBUG Scipy : 0.16.1

    03/06/2017 09:43:12 root DEBUG OSGEO : 1.11.3

    03/06/2017 09:43:12 root DEBUG Shapely : 1.5.5

    03/06/2017 09:43:12 root DEBUG InVEST : 3.3.2

    03/06/2017 09:43:12 root DEBUG

    03/06/2017 09:43:12 root DEBUG

    03/06/2017 09:43:12 root DEBUG Exception not environment-related

    03/06/2017 09:43:12 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 560, in runModel

    File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.routing.routedem", line 68, 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 3258, in tile_dataset_uri

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

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

    Exception: The datasets' intersection is empty (i.e., not all the datasets touch each other).



    03/06/2017 09:43:12 root ERROR Exiting due to failures

  • RichRich Administrator, NatCap Staff
    Hmm, I can't tell what the issue might be from the log.  Could you dropbox me your datastack to richsharp@stanford.edu and I'll try to recreate the issue on my end?
  • Hi everyone!
     Im having the same problem witht the SDR model and I cannot tell what is it. I have checked the projections and the biophisycal table, and I just don´t see it.  Here is the log: 

    Arguments:
    biophysical_table_path      C:/Users/Daniela/Desktop/sdr/biophys_table_CP.csv
    dem_path                    C:/Users/Daniela/Desktop/sdr/demfil1
    drainage_path               
    erodibility_path            C:/Users/Daniela/Desktop/sdr/erodability
    erosivity_path              C:/Users/Daniela/Desktop/sdr/erosivity
    ic_0_param                  0.5
    k_param                     2
    lulc_path                   C:/Users/Daniela/Desktop/sdr/lu14
    sdr_max                     0.8
    threshold_flow_accumulation 143
    watersheds_path             C:/Users/Daniela/Desktop/sdr/cuenc4SDR.shp
    workspace_dir               C:\Users\Daniela\Desktop\sdr\WF


    04/17/2017 16:14:41  root               INFO     Logging will be saved to natcap.invest.sdr-log-2017-04-17--16_14_41.txt
    04/17/2017 16:14:41  root               DEBUG    Loaded the model from natcap.invest.sdr
    04/17/2017 16:14:41  root               INFO     Executing the loaded model
    04/17/2017 16:14:41  root               INFO     Running InVEST version "3.3.2"
    04/17/2017 16:14:41  root               INFO     Python architecture: ('32bit', 'WindowsPE')
    04/17/2017 16:14:41  root               INFO     Disk space remaining for workspace: 108.36 GB
    04/17/2017 16:14:41  root               INFO     Pointing temporary directory at the workspace at C:\Users\Daniela\Desktop\sdr\WF
    04/17/2017 16:14:41  root               INFO     Updating os.environ["TMP"]=C:\Users\Daniela\AppData\Local\Temp to C:\Users\Daniela\Desktop\sdr\WF
    04/17/2017 16:14:41  root               INFO     Updating os.environ["TEMP"]=C:\Users\Daniela\AppData\Local\Temp to C:\Users\Daniela\Desktop\sdr\WF
    04/17/2017 16:14:41  root               INFO     Setting os.environ["TMPDIR"]=C:\Users\Daniela\Desktop\sdr\WF
    04/17/2017 16:14:41  root               INFO     Setting tempfile.tempdir to C:\Users\Daniela\Desktop\sdr\WF\tmp
    04/17/2017 16:14:41  root               INFO     Starting natcap.invest.sdr
    04/17/2017 16:14:42  root               ERROR    ---------------------------------------------------
    04/17/2017 16:14:42  root               ERROR    ---------------------- ERROR ----------------------
    04/17/2017 16:14:42  root               ERROR    ---------------------------------------------------
    04/17/2017 16:14:42  root               ERROR    Error: exception found while running natcap.invest.sdr
    04/17/2017 16:14:42  root               DEBUG    
    04/17/2017 16:14:42  root               DEBUG    Build details
    04/17/2017 16:14:42  root               DEBUG    Interpreter
    04/17/2017 16:14:42  root               DEBUG    Current temp dir: C:\Users\Daniela\Desktop\sdr\WF\tmp
    04/17/2017 16:14:42  root               DEBUG    tempfile.tempdir: C:\Users\Daniela\Desktop\sdr\WF\tmp
    04/17/2017 16:14:42  root               DEBUG    
    04/17/2017 16:14:42  root               DEBUG    System
    04/17/2017 16:14:42  root               DEBUG    OS              : Windows-8-6.2.9200
    04/17/2017 16:14:42  root               DEBUG    Processor architecture: AMD64
    04/17/2017 16:14:42  root               DEBUG    FS encoding     : mbcs
    04/17/2017 16:14:42  root               DEBUG    Preferred encoding: cp1252
    04/17/2017 16:14:42  root               DEBUG    
    04/17/2017 16:14:42  root               DEBUG    Python
    04/17/2017 16:14:42  root               DEBUG    Version         : 2.7.9
    04/17/2017 16:14:42  root               DEBUG    Build           : ('default', 'Dec 10 2014 12:24:55')
    04/17/2017 16:14:42  root               DEBUG    Compiler        : MSC v.1500 32 bit (Intel)
    04/17/2017 16:14:42  root               DEBUG    Implementation  : CPython
    04/17/2017 16:14:42  root               DEBUG    Architecture    : 32bit
    04/17/2017 16:14:42  root               DEBUG    Linkage format  : WindowsPE
    04/17/2017 16:14:42  root               DEBUG    
    04/17/2017 16:14:42  root               DEBUG    Packages
    04/17/2017 16:14:42  root               DEBUG    Cython          : ?
    04/17/2017 16:14:42  root               DEBUG    Numpy           : 1.11.2rc1
    04/17/2017 16:14:42  root               DEBUG    Scipy           : 0.16.1
    04/17/2017 16:14:42  root               DEBUG    OSGEO           : 1.11.3
    04/17/2017 16:14:42  root               DEBUG    Shapely         : 1.5.5
    04/17/2017 16:14:42  root               DEBUG    InVEST          : 3.3.2
    04/17/2017 16:14:42  root               DEBUG    
    04/17/2017 16:14:42  root               DEBUG    
    04/17/2017 16:14:42  root               DEBUG    Exception not environment-related
    04/17/2017 16:14:42  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 560, in runModel
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.sdr", line 159, 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 2057, in align_dataset_list
    Exception: The datasets' intersection is empty (i.e., not all the datasets touch each other).


    04/17/2017 16:14:42  root               ERROR    Exiting due to failures
    04/17/2017 16:14:42  root               INFO     Elapsed time: 0.11s

  • RichRich Administrator, NatCap Staff
    Hi, usually we suspect a projection issue when we see this error, but if the data are all in the same projection it would imply that all the raster/vector inputs weren't overlapping.  If that's not helpful, could you dropbox me your datastack to richsharp@stanford.edu and I can take a look?
Sign In or Register to comment.