ufunc 'multiply' did not contain a loop with signature matching types

Hello! I'm afraid it's me again :C 
I got this error running NDR model and can't figure out what's wrong... 

Arguments:
biophysical_table_path       D:/invest 3.3.3/NDRthree/biotable.csv
calc_n                       True
calc_p                       False
dem_path                     D:/invest 3.3.3/NDRthree/route dem/pit_filled_dem.tif
k_param                      2
lulc_path                    D:/invest 3.3.3/NDRthree/landcover/lulc42.tif
runoff_proxy_path            D:/invest 3.3.3/NDRthree/precip/precip42.tif
subsurface_critical_length_n 150
subsurface_eff_n             0.8
threshold_flow_accumulation  1000
watersheds_path              D:/invest 3.3.3/NDRthree/delineate/watersheds.shp
workspace_dir                D:\invest 3.3.3\NDRthree


03/20/2017 18:20:23  root               INFO     Logging will be saved to natcap.invest.ndr.ndr-log-2017-03-20--18_20_23.txt
03/20/2017 18:20:23  root               DEBUG    Loaded the model from natcap.invest.ndr.ndr
03/20/2017 18:20:23  root               INFO     Executing the loaded model
03/20/2017 18:20:23  root               INFO     Running InVEST version "3.3.3"
03/20/2017 18:20:23  root               INFO     Python architecture: ('32bit', 'WindowsPE')
03/20/2017 18:20:23  root               INFO     Disk space remaining for workspace: 256.78 GB
03/20/2017 18:20:23  root               INFO     Pointing temporary directory at the workspace at D:\invest 3.3.3\NDRthree
03/20/2017 18:20:23  root               INFO     Starting natcap.invest.ndr.ndr
03/20/2017 18:20:23  root               INFO     Setting tempfile.tempdir to D:\invest 3.3.3\NDRthree\tmp
03/20/2017 18:20:24  natcap.invest.ndr.ndr INFO     calculating flow accumulation
03/20/2017 18:20:24  pygeoprocessing.routing.routing_core INFO     labeling flats
03/20/2017 18:20:24  pygeoprocessing.routing.routing_core INFO     draining away from higher
03/20/2017 18:20:25  pygeoprocessing.routing.routing_core INFO     draining towards lower
03/20/2017 18:20:25  pygeoprocessing.routing DEBUG    flats exist, calculating flow direction for them
03/20/2017 18:20:25  pygeoprocessing.routing.routing_core INFO     labeling flats
03/20/2017 18:20:26  pygeoprocessing.routing.routing_core INFO     draining away from higher
03/20/2017 18:20:26  pygeoprocessing.routing.routing_core INFO     draining towards lower
03/20/2017 18:20:26  pygeoprocessing.routing INFO     flats exist on second pass, must be flat areas that abut the raster edge
03/20/2017 18:20:26  pygeoprocessing.routing DEBUG    starting flow accumulation
03/20/2017 18:20:28  natcap.invest.ndr.ndr INFO     Calculating slope
03/20/2017 18:20:29  osgeo.gdal         ERROR    [errno 1] D:\invest 3.3.3\NDRthree\aligned_lulc.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.
03/20/2017 18:20:29  osgeo.gdal         ERROR    [errno 1] D:\invest 3.3.3\NDRthree\aligned_runoff_proxy.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.
03/20/2017 18:20:29  osgeo.gdal         ERROR    [errno 1] D:\invest 3.3.3\NDRthree\tmp\tmp1kqsu7.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.
03/20/2017 18:20:30  osgeo.gdal         ERROR    [errno 1] D:\invest 3.3.3\NDRthree\tmp\tmpodfd4y.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.
03/20/2017 18:20:32  osgeo.gdal         ERROR    [errno 1] D:\invest 3.3.3\NDRthree\tmp\tmpez6fl6.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.
03/20/2017 18:20:32  natcap.invest.ndr.ndr INFO     Classifying streams from flow accumulation raster
03/20/2017 18:20:33  osgeo.gdal         ERROR    [errno 1] D:\invest 3.3.3\NDRthree\tmp\tmphwltfi.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.
03/20/2017 18:20:33  osgeo.gdal         ERROR    [errno 1] D:\invest 3.3.3\NDRthree\intermediate_outputs\load_n.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.
03/20/2017 18:20:33  osgeo.gdal         ERROR    [errno 1] D:\invest 3.3.3\NDRthree\tmp\tmpfovzqf.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.
03/20/2017 18:20:33  osgeo.gdal         ERROR    [errno 1] D:\invest 3.3.3\NDRthree\intermediate_outputs\modified_load_n.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.
03/20/2017 18:20:34  osgeo.gdal         ERROR    [errno 1] D:\invest 3.3.3\NDRthree\tmp\tmpbcw4tp.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.
03/20/2017 18:20:34  root               ERROR    ---------------------------------------------------
03/20/2017 18:20:34  root               ERROR    ---------------------- ERROR ----------------------
03/20/2017 18:20:34  root               ERROR    ---------------------------------------------------
03/20/2017 18:20:34  root               ERROR    Error: exception found while running natcap.invest.ndr.ndr
03/20/2017 18:20:34  root               DEBUG    
03/20/2017 18:20:34  root               DEBUG    Build details
03/20/2017 18:20:34  root               DEBUG    Interpreter
03/20/2017 18:20:34  root               DEBUG    Current temp dir: D:\invest 3.3.3\NDRthree\tmp
03/20/2017 18:20:34  root               DEBUG    tempfile.tempdir: D:\invest 3.3.3\NDRthree\tmp
03/20/2017 18:20:34  root               DEBUG    
03/20/2017 18:20:34  root               DEBUG    System
03/20/2017 18:20:34  root               DEBUG    OS              : Windows-7-6.1.7601-SP1
03/20/2017 18:20:34  root               DEBUG    Processor architecture: AMD64
03/20/2017 18:20:34  root               DEBUG    FS encoding     : mbcs
03/20/2017 18:20:34  root               DEBUG    Preferred encoding: cp949
03/20/2017 18:20:34  root               DEBUG    
03/20/2017 18:20:34  root               DEBUG    Python
03/20/2017 18:20:34  root               DEBUG    Version         : 2.7.9
03/20/2017 18:20:34  root               DEBUG    Build           : ('default', 'Dec 10 2014 12:24:55')
03/20/2017 18:20:34  root               DEBUG    Compiler        : MSC v.1500 32 bit (Intel)
03/20/2017 18:20:34  root               DEBUG    Implementation  : CPython
03/20/2017 18:20:34  root               DEBUG    Architecture    : 32bit
03/20/2017 18:20:34  root               DEBUG    Linkage format  : WindowsPE
03/20/2017 18:20:34  root               DEBUG    
03/20/2017 18:20:34  root               DEBUG    Packages
03/20/2017 18:20:34  root               DEBUG    Cython          : ?
03/20/2017 18:20:34  root               DEBUG    Numpy           : 1.11.2
03/20/2017 18:20:34  root               DEBUG    Scipy           : 0.16.1
03/20/2017 18:20:34  root               DEBUG    OSGEO           : 1.11.3
03/20/2017 18:20:34  root               DEBUG    Shapely         : 1.5.5
03/20/2017 18:20:34  root               DEBUG    InVEST          : 3.3.3
03/20/2017 18:20:34  root               DEBUG    
03/20/2017 18:20:34  root               DEBUG    
03/20/2017 18:20:34  root               DEBUG    Exception not environment-related
03/20/2017 18:20:34  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 409, 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 339, in map_load
TypeError: ufunc 'multiply' did not contain a loop with signature matching types dtype('<U11') dtype('<U11') dtype('<U11')
 
DROPBOX: https://www.dropbox.com/sh/p3up1odafajzg80/AAC6rmMYWNBUK_h6dhC9CaMOa?dl=0 ;

Comments

  • Dear NatCap team! I am getting this error (TypeError: ufunc 'multiply' did not contain a loop with signature matching types dtype('<U11') dtype('<U11') dtype('<U11')) again and again! Please help me fix it... 
  • RichRich Administrator, NatCap Staff
    Sorry for the delay, we had our annual meeting at Stanford this week and all our staff were very busy.

    Offhand it looks like your biophysical table may have some non-standard characters in it, or be malformed in some way.  I tried accessing the dropbox link you posted here but it was no longer active.  Could you directly dropbox your data with me at richsharp@stanford.edu?
  • jdouglassjdouglass Administrator, NatCap Staff
    Hi @Rich and @Gohialya, not sure if this is still in the queue, but I've encountered this issue when trying to miultiply all values in a numpy array by a string.

    Example:
    >>> import numpy
    >>> numpy.array([1], dtype=numpy.int32) * '2.0'
Sign In or Register to comment.