seasonal water yield error with et directory

Hello,

I am working on the seasonal water yield model, and I am having trouble with the model recognizing my ET0 rasters. I had the files named "pet_1" and the model could not find them at all. I have renamed them "eto1.tif" and the model sends an error" ambiguous set of files found for mont 1"

Has anyone else come across this error? Are there any requirements for formatting these files other than them ending in the  month number?

Thank you!

 Keri

(Ive attached my message log below)

Comments

  • swolnyswolny Member, NatCap Staff
    Hi Keri -

    I've been learning how to use the model too, and have found that *only* .tif files may be in the folders for ETo and Precip. Any others, such as .tfw, .xml etc, may not be there. What I did was make a separate "tif_only" folder and used Windows explorer to move the .tifs into that folder. If you use something like ArcCatalog to move them, it will move things other than the .tifs.

    Hope this helps...

    ~ Stacie
  • Hi Stacie,

    That worked like a charm! Thank you!

    Keri
  • I've run into one more issue, and I wonder if you can help me with that as well..

    I have run the model under current land use land cover, and it worked great. Now I am trying to run it under another land use land cover scenario where everywhere under agricultural landcover types is restored to natural cover, so that by comparing the quick flow between the two scenarios I can identify priorities for restoration.

    I got the following error: "Python int too large to convert to C long" (more of the log pasted below)

    Do you have any ideas of how to trouble shoot this?

    Thanks!
    Keri


    04/18/2016 18:57:42 natcap.invest.seasonal_water_yield.seasonal_water_yield INFO calculate curve number

    04/18/2016 18:57:42 root ERROR ---------------------------------------------------

    04/18/2016 18:57:42 root ERROR ---------------------- ERROR ----------------------

    04/18/2016 18:57:42 root ERROR ---------------------------------------------------

    04/18/2016 18:57:42 root ERROR Error: exception found while running natcap.invest.seasonal_water_yield.seasonal_water_yield

    04/18/2016 18:57:42 root DEBUG

    04/18/2016 18:57:43 root DEBUG Build details

    04/18/2016 18:57:43 root DEBUG Interpreter

    04/18/2016 18:57:43 root DEBUG Current temp dir: E:\GISFiles\MWY\Otter\nopasture_scenario\tmp

    04/18/2016 18:57:43 root DEBUG tempfile.tempdir: E:\GISFiles\MWY\Otter\nopasture_scenario\tmp

    04/18/2016 18:57:43 root DEBUG

    04/18/2016 18:57:43 root DEBUG System

    04/18/2016 18:57:43 root DEBUG OS : Windows-7-6.1.7601-SP1

    04/18/2016 18:57:43 root DEBUG Processor architecture: AMD64

    04/18/2016 18:57:43 root DEBUG FS encoding : mbcs

    04/18/2016 18:57:43 root DEBUG Preferred encoding: cp1252

    04/18/2016 18:57:43 root DEBUG

    04/18/2016 18:57:43 root DEBUG Python

    04/18/2016 18:57:43 root DEBUG Version : 2.7.9

    04/18/2016 18:57:43 root DEBUG Build : ('default', 'Dec 10 2014 12:24:55')

    04/18/2016 18:57:43 root DEBUG Compiler : MSC v.1500 32 bit (Intel)

    04/18/2016 18:57:43 root DEBUG Implementation : CPython

    04/18/2016 18:57:43 root DEBUG Architecture : 32bit

    04/18/2016 18:57:43 root DEBUG Linkage format : WindowsPE

    04/18/2016 18:57:43 root DEBUG

    04/18/2016 18:57:43 root DEBUG Packages

    04/18/2016 18:57:43 root DEBUG Cython : ?

    04/18/2016 18:57:43 root DEBUG Numpy : 1.10.2rc1

    04/18/2016 18:57:43 root DEBUG Scipy : 0.16.0b2

    04/18/2016 18:57:43 root DEBUG OSGEO : 1.11.3

    04/18/2016 18:57:43 root DEBUG Shapely : 1.5.5

    04/18/2016 18:57:43 root DEBUG InVEST : 3.3.0

    04/18/2016 18:57:43 root DEBUG

    04/18/2016 18:57:43 root DEBUG

    04/18/2016 18:57:43 root DEBUG Exception not environment-related

    04/18/2016 18:57:43 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.seasonal_water_yield.seasonal_water_yield", line 158, in execute

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

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

    OverflowError: Python int too large to convert to C long



    04/18/2016 18:57:45 root ERROR Exiting due to failures



  • RichRich Administrator, NatCap Staff
    Hi Keri, any chance you could dropbox me your datastack to richsharp@stanford.edu?  I'll try to run SWY on my end and see if I can recreate your error.
  • Hi Rich,

    I have shared a folder titles "KBW_SWY_ModelInputs" with you on dropbox. 

    Thank you! 
    Keri
  • RichRich Administrator, NatCap Staff
    Okay, I can recreate the error on my end, I have some ideas but it'll take some time.  More soon!
  • RichRich Administrator, NatCap Staff
    Hi Keri, I patched the issue you were having and was able to do a complete run of your data on my end.  (took almost an hour though)

    Here's a link to my fork of that patch if you want to pick it up and try it on your end.  And pending a code review that'll make it into the InVEST nightly build eventually.  http://data.naturalcapitalproject.org/nightly-build/invest-forks/richpsharp/InVEST_richpsharp3.3.0.post22+ne22085ddd85b_x86_Setup.exe

    Let me know if that doesn't work out or I can help you with anything else!
  • Thanks so much!

    Keri
  • Hi Rich,

    This patch worked great for the scenario I was running before, but I just circled back to the NDR model again on a third scenario again, and I actually get a different error for one scenario, but not the others: 

    AttributeError: 'NoneType' object has no attribute 'RasterCount'


    I've attached my log here. 


    Any ideas?


    Thank you!

  • RichRich Administrator, NatCap Staff
    Hi Keri, if I'm reading it right, the log shows you're running version 3.3.0a1... which is an older version than the one I posted above.

    I'm not sure what the error could be, offhand I'd be afraid you ran out of temporary disk space, BUT the version is old enough that I'm not sure.  If you don't mind could you try it again w/ the new verrion OR try the released-today InVEST 3.3.1 http://data.naturalcapitalproject.org/invest-releases/InVEST_3_3_1_x86_Setup.exe

    And if that doesn't work, can you pass me your datastack to richsharp@stanford.edu and I'll try to recreate on my end?
Sign In or Register to comment.