ValueError: could not convert string to float:

Any ideas on what might be causing this error? 


Thanks for your help! 


sim


Traceback (most recent call last):

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

File "C:\Program Files\RIOS 1.0.0b12 x86\rios_data\.\rios\rios.py", line 28, in execute

File "C:\Program Files\RIOS 1.0.0b12 x86\rios_data\.\rios\rios.py", line 202, in execute_30

File "C:\Program Files\RIOS 1.0.0b12 x86\rios_data\.\rios\rios.py", line 1223, in _normalize_rasters

File "C:\Program Files\RIOS 1.0.0b12 x86\rios_data\.\rios\rios.py", line 1344, in _map_raster_to_table

ValueError: could not convert string to float: Woody Wetlands

None


02/10/2015 15:33:35 root ERROR Exiting due to failures

Comments

  • RichRich Administrator, NatCap Staff
    Looks like it's trying to convert something in the landcover table maybe that is supposed to have a floating point value in it, but instead has the description "Woody Wetlands".  Is it possible your table is off by a column or something?

    Sorry I can only address these things in a bursty way as I try to overhaul another huge issue in InVEST.  If you can send me your table i can take a look, but I might not be able to get back to it immediately, otherwise hopefully by tomorrow afternoon again.

  • Rich, thanks so much for your response. I appreciate your time. 
    I don't think this is the issue - but I would love for it to be it, so I can move on... 
    I would have attached my tables here, but it does not allow me to upload a CSV. You can see my tables and the log in the following link https://www.dropbox.com/sh/5igzjb9wp2kn139/AAB_uD5DC5zzbN4NLyJS37cba?dl=0 ;
    Thanks so much!
    simcha

  • jdouglassjdouglass Administrator, NatCap Staff
    Hi slevental,

    I just took a look at the general_lulc_coefficients CSV in your dropbox folder, and I think the issue is that your "lulc_general" column currently contains labels of landcover classes.  For RIOS to work, this column will need to contain integer landcover codes.

    Let us know how this goes!
    James
  • Hi folks,
    I am running seasonal water yield model and am getting this error " ValueError: could not convert string to float"

    Anyone can help to overcome this?



    Initializing...

    Showing messages with level INFO and higher

    01/21/2019 11:09:11 natcap.invest.utils INFO Writing log messages to C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\InVEST-Seasonal-Water-Yield-log-2019-01-21--11_09_11.txt

    01/21/2019 11:09:11 natcap.invest.ui.model Level 100 Starting model with parameters:

    Arguments for InVEST natcap.invest.seasonal_water_yield.seasonal_water_yield 3.5.0:

    alpha_m 1/12

    aoi_path C:/Users/rukundo1/Desktop/Biophysical_tables/Districts.shp

    beta_i 1

    biophysical_table_path C:/Users/rukundo1/Desktop/Biophysical_tables/biophysical_table1.csv

    climate_zone_raster_path C:/Users/rukundo1/Desktop/Biophysical_tables/ecorigion.tif

    climate_zone_table_path C:/Users/rukundo1/Desktop/Biophysical_tables/climate_zone_events1.csv

    dem_raster_path C:/Users/rukundo1/Desktop/Biophysical_tables/Elevation.tif

    et0_dir C:\Users\rukundo1\Desktop\Biophysical_tables\eto_dir

    gamma 1

    lulc_raster_path C:/Users/rukundo1/Desktop/Biophysical_tables/LULC15int.tif

    monthly_alpha True

    monthly_alpha_path C:/Users/rukundo1/Desktop/Biophysical_tables/monthly_alpha1.csv

    precip_dir C:\Users\rukundo1\Desktop\Biophysical_tables\precip_dir

    rain_events_table_path C:/Users/rukundo1/Desktop/Biophysical_tables/rain_events_table1.csv

    results_suffix 2015_CN

    soil_group_path C:/Users/rukundo1/Desktop/Biophysical_tables/Soil_Group1.tif

    threshold_flow_accumulation 1111

    user_defined_climate_zones True

    user_defined_local_recharge False

    workspace_dir C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015


    01/21/2019 11:09:13 natcap.invest.seasonal_water_yield.seasonal_water_yield INFO prepare and test inputs for common errors

    01/21/2019 11:09:13 natcap.invest.seasonal_water_yield.seasonal_water_yield INFO Building file registry

    01/21/2019 11:09:13 natcap.invest.seasonal_water_yield.seasonal_water_yield INFO Checking that the AOI is not the output aggregate vector

    01/21/2019 11:09:13 natcap.invest.seasonal_water_yield.seasonal_water_yield INFO Aligning and clipping dataset list

    01/21/2019 11:09:14 pygeoprocessing.geoprocessing INFO n_workers == 1 so a threadpool is sufficient

    01/21/2019 11:09:23 pygeoprocessing.geoprocessing INFO 1 of 28 aligned: prcp_a0_2015_CN.tif

    01/21/2019 11:09:26 pygeoprocessing.geoprocessing INFO 2 of 28 aligned: prcp_a1_2015_CN.tif

    01/21/2019 11:09:31 pygeoprocessing.geoprocessing INFO 3 of 28 aligned: prcp_a2_2015_CN.tif

    01/21/2019 11:09:35 pygeoprocessing.geoprocessing INFO 4 of 28 aligned: prcp_a3_2015_CN.tif

    01/21/2019 11:09:40 pygeoprocessing.geoprocessing INFO 5 of 28 aligned: prcp_a4_2015_CN.tif

    01/21/2019 11:09:46 pygeoprocessing.geoprocessing INFO 6 of 28 aligned: prcp_a5_2015_CN.tif

    01/21/2019 11:09:51 pygeoprocessing.geoprocessing INFO 7 of 28 aligned: prcp_a6_2015_CN.tif

    01/21/2019 11:09:56 pygeoprocessing.geoprocessing INFO 8 of 28 aligned: prcp_a7_2015_CN.tif

    01/21/2019 11:10:03 pygeoprocessing.geoprocessing INFO 9 of 28 aligned: prcp_a8_2015_CN.tif

    01/21/2019 11:10:07 pygeoprocessing.geoprocessing INFO 10 of 28 aligned: prcp_a9_2015_CN.tif

    01/21/2019 11:10:12 pygeoprocessing.geoprocessing INFO 11 of 28 aligned: prcp_a10_2015_CN.tif

    01/21/2019 11:10:17 pygeoprocessing.geoprocessing INFO 12 of 28 aligned: prcp_a11_2015_CN.tif

    01/21/2019 11:10:23 pygeoprocessing.geoprocessing INFO 13 of 28 aligned: soil_group_aligned_2015_CN.tif

    01/21/2019 11:10:30 pygeoprocessing.geoprocessing INFO Warp 50.0% complete C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\et0_a0_2015_CN.tif

    01/21/2019 11:10:35 pygeoprocessing.geoprocessing INFO Warp 88.0% complete C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\et0_a0_2015_CN.tif

    01/21/2019 11:10:36 pygeoprocessing.geoprocessing INFO Warp 100.0% complete C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\et0_a0_2015_CN.tif

    01/21/2019 11:10:37 pygeoprocessing.geoprocessing INFO 14 of 28 aligned: et0_a0_2015_CN.tif

    01/21/2019 11:10:42 pygeoprocessing.geoprocessing INFO 15 of 28 aligned: et0_a1_2015_CN.tif

    01/21/2019 11:10:48 pygeoprocessing.geoprocessing INFO Warp 90.0% complete C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\et0_a2_2015_CN.tif

    01/21/2019 11:10:48 pygeoprocessing.geoprocessing INFO Warp 100.0% complete C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\et0_a2_2015_CN.tif

    01/21/2019 11:10:49 pygeoprocessing.geoprocessing INFO 16 of 28 aligned: et0_a2_2015_CN.tif

    01/21/2019 11:10:55 pygeoprocessing.geoprocessing INFO 17 of 28 aligned: et0_a3_2015_CN.tif

    01/21/2019 11:11:02 pygeoprocessing.geoprocessing INFO Warp 50.0% complete C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\et0_a4_2015_CN.tif

    01/21/2019 11:11:07 pygeoprocessing.geoprocessing INFO Warp 91.0% complete C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\et0_a4_2015_CN.tif

    01/21/2019 11:11:08 pygeoprocessing.geoprocessing INFO Warp 100.0% complete C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\et0_a4_2015_CN.tif

    01/21/2019 11:11:09 pygeoprocessing.geoprocessing INFO 18 of 28 aligned: et0_a4_2015_CN.tif

    01/21/2019 11:11:15 pygeoprocessing.geoprocessing INFO Warp 25.0% complete C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\et0_a5_2015_CN.tif

    01/21/2019 11:11:20 pygeoprocessing.geoprocessing INFO Warp 63.0% complete C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\et0_a5_2015_CN.tif

    01/21/2019 11:11:24 pygeoprocessing.geoprocessing INFO Warp 100.0% complete C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\et0_a5_2015_CN.tif

    01/21/2019 11:11:25 pygeoprocessing.geoprocessing INFO 19 of 28 aligned: et0_a5_2015_CN.tif

    01/21/2019 11:11:31 pygeoprocessing.geoprocessing INFO Warp 41.0% complete C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\et0_a6_2015_CN.tif

    01/21/2019 11:11:36 pygeoprocessing.geoprocessing INFO Warp 78.0% complete C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\et0_a6_2015_CN.tif

    01/21/2019 11:11:38 pygeoprocessing.geoprocessing INFO Warp 100.0% complete C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\et0_a6_2015_CN.tif

    01/21/2019 11:11:39 pygeoprocessing.geoprocessing INFO 20 of 28 aligned: et0_a6_2015_CN.tif

    01/21/2019 11:11:47 pygeoprocessing.geoprocessing INFO Warp 50.0% complete C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\et0_a7_2015_CN.tif

    01/21/2019 11:11:52 pygeoprocessing.geoprocessing INFO Warp 93.0% complete C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\et0_a7_2015_CN.tif

    01/21/2019 11:11:52 pygeoprocessing.geoprocessing INFO Warp 100.0% complete C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\et0_a7_2015_CN.tif

    01/21/2019 11:11:53 pygeoprocessing.geoprocessing INFO 21 of 28 aligned: et0_a7_2015_CN.tif

    01/21/2019 11:12:00 pygeoprocessing.geoprocessing INFO 22 of 28 aligned: et0_a8_2015_CN.tif

    01/21/2019 11:12:04 pygeoprocessing.geoprocessing INFO 23 of 28 aligned: et0_a9_2015_CN.tif

    01/21/2019 11:12:10 pygeoprocessing.geoprocessing INFO 24 of 28 aligned: et0_a10_2015_CN.tif

    01/21/2019 11:12:19 pygeoprocessing.geoprocessing INFO Warp 48.0% complete C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\et0_a11_2015_CN.tif

    01/21/2019 11:12:24 pygeoprocessing.geoprocessing INFO Warp 75.0% complete C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\et0_a11_2015_CN.tif

    01/21/2019 11:12:26 pygeoprocessing.geoprocessing INFO Warp 100.0% complete C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\et0_a11_2015_CN.tif

    01/21/2019 11:12:27 pygeoprocessing.geoprocessing INFO 25 of 28 aligned: et0_a11_2015_CN.tif

    01/21/2019 11:12:32 pygeoprocessing.geoprocessing INFO 26 of 28 aligned: lulc_aligned_2015_CN.tif

    01/21/2019 11:12:39 pygeoprocessing.geoprocessing INFO Warp 50.0% complete C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\dem_aligned_2015_CN.tif

    01/21/2019 11:12:45 pygeoprocessing.geoprocessing INFO Warp 88.0% complete C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\dem_aligned_2015_CN.tif

    01/21/2019 11:12:45 pygeoprocessing.geoprocessing INFO Warp 100.0% complete C:\Users\rukundo1\Documents\seasonal_water_yield_workspace\2015\dem_aligned_2015_CN.tif

    01/21/2019 11:12:46 pygeoprocessing.geoprocessing INFO 27 of 28 aligned: dem_aligned_2015_CN.tif

    01/21/2019 11:12:51 pygeoprocessing.geoprocessing INFO 28 of 28 aligned: cz_aligned_2015_CN.tif

    01/21/2019 11:12:52 pygeoprocessing.geoprocessing INFO aligned all 28 rasters.

    01/21/2019 11:12:52 natcap.invest.seasonal_water_yield.seasonal_water_yield INFO flow direction

    01/21/2019 11:13:06 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO flow_direction_inf 3.9% complete

    01/21/2019 11:13:13 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO flow_direction_inf 23.2% complete

    01/21/2019 11:13:20 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO flow_direction_inf 30.9% complete

    01/21/2019 11:13:28 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO flow_direction_inf 38.6% complete

    01/21/2019 11:13:37 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO flow_direction_inf 46.4% complete

    01/21/2019 11:13:45 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO flow_direction_inf 54.1% complete

    01/21/2019 11:13:54 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO flow_direction_inf 61.8% complete

    01/21/2019 11:14:03 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO flow_direction_inf 69.6% complete

    01/21/2019 11:14:11 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO flow_direction_inf 77.3% complete

    01/21/2019 11:14:19 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO flow_direction_inf 88.9% complete

    01/21/2019 11:14:32 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO flat_edges 34.8% complete

    01/21/2019 11:14:39 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO flat_edges 58.0% complete

    01/21/2019 11:14:45 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO flat_edges 81.1% complete

    01/21/2019 11:14:48 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO labeling flats

    01/21/2019 11:14:54 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO label_flats 93.7% complete

    01/21/2019 11:14:55 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO draining away from higher

    01/21/2019 11:15:05 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO away_from_higher, work queue size: 4299771 complete

    01/21/2019 11:15:09 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO draining towards lower

    01/21/2019 11:15:15 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO toward_lower work queue size: 915093

    01/21/2019 11:15:21 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO toward_lower work queue size: 267025

    01/21/2019 11:15:27 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO toward_lower work queue size: 122254

    01/21/2019 11:15:33 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO toward_lower work queue size: 69713

    01/21/2019 11:15:39 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO toward_lower work queue size: 35439

    01/21/2019 11:15:49 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO flow_direction_inf 58.0% complete

    01/21/2019 11:16:03 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO flat_edges 34.8% complete

    01/21/2019 11:16:09 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO flat_edges 54.1% complete

    01/21/2019 11:16:15 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO flat_edges 73.4% complete

    01/21/2019 11:16:20 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO labeling flats

    01/21/2019 11:16:22 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO draining away from higher

    01/21/2019 11:16:32 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO draining towards lower

    01/21/2019 11:16:35 natcap.invest.pygeoprocessing_0_3_3.routing INFO flats exist on second pass, must be flat areas that abut the raster edge

    01/21/2019 11:16:41 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO flow_direction_inf 73.4% complete

    01/21/2019 11:16:45 natcap.invest.seasonal_water_yield.seasonal_water_yield INFO flow weights

    01/21/2019 11:16:46 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING no flow direction found for 0 6

    01/21/2019 11:16:46 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING no flow direction found for 0 6

    01/21/2019 11:16:46 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING no flow direction found for 0 6

    01/21/2019 11:16:51 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO calculate_flow_weights 77.3% complete

    01/21/2019 11:16:57 natcap.invest.seasonal_water_yield.seasonal_water_yield INFO flow accumulation

    01/21/2019 11:17:16 natcap.invest.pygeoprocessing_0_3_3.geoprocessing INFO ReprojectImage 88.0% complete c:\users\rukundo1\appdata\local\temp\tmpu4bd88.tif, psz_message

    01/21/2019 11:17:17 natcap.invest.pygeoprocessing_0_3_3.geoprocessing INFO ReprojectImage 100.0% complete c:\users\rukundo1\appdata\local\temp\tmpu4bd88.tif, psz_message

    01/21/2019 11:17:24 natcap.invest.pygeoprocessing_0_3_3.geoprocessing INFO align_dataset_list aligning dataset 1 of 4

    01/21/2019 11:17:29 natcap.invest.pygeoprocessing_0_3_3.geoprocessing INFO ReprojectImage 78.0% complete c:\users\rukundo1\appdata\local\temp\tmpc7ve2c.tif, psz_message

    01/21/2019 11:17:30 natcap.invest.pygeoprocessing_0_3_3.geoprocessing INFO ReprojectImage 100.0% complete c:\users\rukundo1\appdata\local\temp\tmpc7ve2c.tif, psz_message

    01/21/2019 11:17:33 natcap.invest.pygeoprocessing_0_3_3.geoprocessing INFO align_dataset_list aligning dataset 2 of 4

    01/21/2019 11:17:39 natcap.invest.pygeoprocessing_0_3_3.geoprocessing INFO ReprojectImage 50.0% complete c:\users\rukundo1\appdata\local\temp\tmpghnn9o.tif, psz_message

    01/21/2019 11:17:43 natcap.invest.pygeoprocessing_0_3_3.geoprocessing INFO ReprojectImage 100.0% complete c:\users\rukundo1\appdata\local\temp\tmpghnn9o.tif, psz_message

    01/21/2019 11:17:47 natcap.invest.pygeoprocessing_0_3_3.geoprocessing INFO align_dataset_list aligning dataset 3 of 4

    01/21/2019 11:17:52 natcap.invest.pygeoprocessing_0_3_3.geoprocessing INFO ReprojectImage 98.0% complete c:\users\rukundo1\appdata\local\temp\tmpxjdj4x.tif, psz_message

    01/21/2019 11:17:52 natcap.invest.pygeoprocessing_0_3_3.geoprocessing INFO ReprojectImage 100.0% complete c:\users\rukundo1\appdata\local\temp\tmpxjdj4x.tif, psz_message

    01/21/2019 11:18:02 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO find outlet percent complete = 13.21, outlet_deque size = 672

    01/21/2019 11:18:08 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO find outlet percent complete = 27.85, outlet_deque size = 1535

    01/21/2019 11:18:14 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO find outlet percent complete = 42.73, outlet_deque size = 2172

    01/21/2019 11:18:20 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO find outlet percent complete = 57.80, outlet_deque size = 2950

    01/21/2019 11:18:26 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO find outlet percent complete = 72.80, outlet_deque size = 4321

    01/21/2019 11:18:32 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO find outlet percent complete = 87.74, outlet_deque size = 7213

    01/21/2019 11:18:37 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING no flow direction found for 0 6

    01/21/2019 11:18:37 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING no flow direction found for 0 6

    01/21/2019 11:18:37 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING no flow direction found for 0 6

    01/21/2019 11:18:43 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO calculate_flow_weights 85.0% complete

    01/21/2019 11:18:57 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO calculate transport cells_to_process.size() = 7590

    01/21/2019 11:19:03 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO calculate transport cells_to_process.size() = 6388

    01/21/2019 11:19:09 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO calculate transport cells_to_process.size() = 7782

    01/21/2019 11:19:15 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO calculate transport cells_to_process.size() = 11503

    01/21/2019 11:19:21 natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO calculate transport cells_to_process.size() = 3049

    01/21/2019 11:19:34 natcap.invest.seasonal_water_yield.seasonal_water_yield INFO stream thresholding

    01/21/2019 11:19:47 natcap.invest.seasonal_water_yield.seasonal_water_yield INFO quick flow

    01/21/2019 11:19:47 natcap.invest.seasonal_water_yield.seasonal_water_yield INFO loading number of monthly events

    01/21/2019 11:19:47 pygeoprocessing.geoprocessing INFO starting stats_worker

    01/21/2019 11:19:47 pygeoprocessing.geoprocessing INFO started stats_worker <Thread(Thread-7, started daemon 6340)>

    01/21/2019 11:19:52 pygeoprocessing.geoprocessing INFO 93.7% complete

    01/21/2019 11:19:52 pygeoprocessing.geoprocessing INFO 100.0%% complete

    01/21/2019 11:19:52 pygeoprocessing.geoprocessing INFO signaling stats worker to terminate

    01/21/2019 11:19:52 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.

    01/21/2019 11:19:53 pygeoprocessing.geoprocessing INFO starting stats_worker

    01/21/2019 11:19:53 pygeoprocessing.geoprocessing INFO started stats_worker <Thread(Thread-8, started daemon 9088)>

    01/21/2019 11:19:58 pygeoprocessing.geoprocessing INFO 100.0%% complete

    01/21/2019 11:19:58 pygeoprocessing.geoprocessing INFO signaling stats worker to terminate

    01/21/2019 11:19:58 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.

    01/21/2019 11:19:59 pygeoprocessing.geoprocessing INFO starting stats_worker

    01/21/2019 11:19:59 pygeoprocessing.geoprocessing INFO started stats_worker <Thread(Thread-9, started daemon 6884)>

    01/21/2019 11:20:04 pygeoprocessing.geoprocessing INFO 99.4% complete

    01/21/2019 11:20:04 pygeoprocessing.geoprocessing INFO 100.0%% complete

    01/21/2019 11:20:04 pygeoprocessing.geoprocessing INFO signaling stats worker to terminate

    01/21/2019 11:20:04 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.

    01/21/2019 11:20:05 pygeoprocessing.geoprocessing INFO starting stats_worker

    01/21/2019 11:20:05 pygeoprocessing.geoprocessing INFO started stats_worker <Thread(Thread-10, started daemon 10280)>

    01/21/2019 11:20:10 pygeoprocessing.geoprocessing INFO 99.9% complete

    01/21/2019 11:20:10 pygeoprocessing.geoprocessing INFO 100.0%% complete

    01/21/2019 11:20:10 pygeoprocessing.geoprocessing INFO signaling stats worker to terminate

    01/21/2019 11:20:10 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.

    01/21/2019 11:20:12 pygeoprocessing.geoprocessing INFO starting stats_worker

    01/21/2019 11:20:12 pygeoprocessing.geoprocessing INFO started stats_worker <Thread(Thread-11, started daemon 11028)>

    01/21/2019 11:20:17 pygeoprocessing.geoprocessing INFO 100.0%% complete

    01/21/2019 11:20:17 pygeoprocessing.geoprocessing INFO signaling stats worker to terminate

    01/21/2019 11:20:17 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.

    01/21/2019 11:20:18 pygeoprocessing.geoprocessing INFO starting stats_worker

    01/21/2019 11:20:18 pygeoprocessing.geoprocessing INFO started stats_worker <Thread(Thread-12, started daemon 8320)>

    01/21/2019 11:20:23 pygeoprocessing.geoprocessing INFO 99.5% complete

    01/21/2019 11:20:23 pygeoprocessing.geoprocessing INFO 100.0%% complete

    01/21/2019 11:20:23 pygeoprocessing.geoprocessing INFO signaling stats worker to terminate

    01/21/2019 11:20:23 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.

    01/21/2019 11:20:24 pygeoprocessing.geoprocessing INFO starting stats_worker

    01/21/2019 11:20:24 pygeoprocessing.geoprocessing INFO started stats_worker <Thread(Thread-13, started daemon 6544)>

    01/21/2019 11:20:29 pygeoprocessing.geoprocessing INFO 100.0%% complete

    01/21/2019 11:20:29 pygeoprocessing.geoprocessing INFO signaling stats worker to terminate

    01/21/2019 11:20:29 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.

    01/21/2019 11:20:30 pygeoprocessing.geoprocessing INFO starting stats_worker

    01/21/2019 11:20:30 pygeoprocessing.geoprocessing INFO started stats_worker <Thread(Thread-14, started daemon 9100)>

    01/21/2019 11:20:35 pygeoprocessing.geoprocessing INFO 100.0%% complete

    01/21/2019 11:20:35 pygeoprocessing.geoprocessing INFO signaling stats worker to terminate

    01/21/2019 11:20:35 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.

    01/21/2019 11:20:36 pygeoprocessing.geoprocessing INFO starting stats_worker

    01/21/2019 11:20:36 pygeoprocessing.geoprocessing INFO started stats_worker <Thread(Thread-15, started daemon 10760)>

    01/21/2019 11:20:41 pygeoprocessing.geoprocessing INFO 100.0%% complete

    01/21/2019 11:20:41 pygeoprocessing.geoprocessing INFO signaling stats worker to terminate

    01/21/2019 11:20:41 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.

    01/21/2019 11:20:42 pygeoprocessing.geoprocessing INFO starting stats_worker

    01/21/2019 11:20:42 pygeoprocessing.geoprocessing INFO started stats_worker <Thread(Thread-16, started daemon 11168)>

    01/21/2019 11:20:47 pygeoprocessing.geoprocessing INFO 99.1% complete

    01/21/2019 11:20:47 pygeoprocessing.geoprocessing INFO 100.0%% complete

    01/21/2019 11:20:47 pygeoprocessing.geoprocessing INFO signaling stats worker to terminate

    01/21/2019 11:20:47 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.

    01/21/2019 11:20:48 pygeoprocessing.geoprocessing INFO starting stats_worker

    01/21/2019 11:20:48 pygeoprocessing.geoprocessing INFO started stats_worker <Thread(Thread-17, started daemon 5992)>

    01/21/2019 11:20:53 pygeoprocessing.geoprocessing INFO 100.0%% complete

    01/21/2019 11:20:53 pygeoprocessing.geoprocessing INFO signaling stats worker to terminate

    01/21/2019 11:20:53 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.

    01/21/2019 11:20:54 pygeoprocessing.geoprocessing INFO starting stats_worker

    01/21/2019 11:20:54 pygeoprocessing.geoprocessing INFO started stats_worker <Thread(Thread-18, started daemon 11216)>

    01/21/2019 11:20:59 pygeoprocessing.geoprocessing INFO 99.3% complete

    01/21/2019 11:20:59 pygeoprocessing.geoprocessing INFO 100.0%% complete

    01/21/2019 11:20:59 pygeoprocessing.geoprocessing INFO signaling stats worker to terminate

    01/21/2019 11:20:59 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.

    01/21/2019 11:21:00 natcap.invest.seasonal_water_yield.seasonal_water_yield INFO calculate curve number

    01/21/2019 11:21:00 natcap.invest.ui.model ERROR Exception while executing <function execute at 0x0EAD3330>

    Traceback (most recent call last):

    File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\ui\model.py", line 1541, in _logged_target

    File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\seasonal_water_yield\seasonal_water_yield.py", line 162, in execute

    File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\seasonal_water_yield\seasonal_water_yield.py", line 354, in _execute

    File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\seasonal_water_yield\seasonal_water_yield.py", line 691, in _calculate_curve_number_raster

    ValueError: could not convert string to float:

    01/21/2019 11:21:00 natcap.invest.ui.model INFO Execution finished

    01/21/2019 11:21:00 natcap.invest.utils INFO Elapsed time: 11m 49.08s

    01/21/2019 11:21:01 natcap.invest.ui.execution ERROR Target <function _logged_target at 0x0EAD39B0> failed with exception

    Traceback (most recent call last):

    File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\ui\execution.py", line 68, in run

    File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\ui\model.py", line 1541, in _logged_target

    File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\seasonal_water_yield\seasonal_water_yield.py", line 162, in execute

    File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\seasonal_water_yield\seasonal_water_yield.py", line 354, in _execute

    File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\seasonal_water_yield\seasonal_water_yield.py", line 691, in _calculate_curve_number_raster

    ValueError: could not convert string to float:

    01/21/2019 11:21:01 natcap.invest.ui.execution INFO Execution finished



    Here is my Biophysical table 





































































































































































































































































































































    lucode Description CN_A CN_B CN_C CN_D Kc_1 Kc_2 Kc_3 Kc_4 Kc_5 Kc_6 Kc_7 Kc_8 Kc_9 Kc_10 Kc_11 Kc_12
    0 Nodata 1 68 79 84 0.6900 0.6850 0.6970 0.8510 0.8330 0.6530 0.4840 0.3990 0.4320 0.4780 0.6810 0.6700
    1 Dense Forest 1 55 70 77 0.8370 0.8910 0.8330 0.8870 0.8810 0.8560 0.8460 0.8130 0.8050 0.7830 0.7980 0.8990
    2 Moderate Forest 1 55 70 77 0.7200 0.7590 0.7420 0.8610 0.8590 0.7710 0.6750 0.5860 0.5950 0.6070 0.6840 0.7460
    3 Sparse forest 1 55 70 77 0.7070 0.7230 0.7110 0.8490 0.8610 0.7570 0.6060 0.4850 0.4990 0.5480 0.6750 0.7060
    4 Woodland 1 58 72 79 0.7070 0.7230 0.7110 0.8490 0.8610 0.7570 0.6060 0.4850 0.4990 0.5480 0.6750 0.7060
    5 Closed grassland 1 69 79 84 0.6880 0.6760 0.7110 0.8350 0.8450 0.7040 0.5850 0.4880 0.5030 0.5450 0.6170 0.6710
    6 Open grassland 1 69 79 84 0.6920 0.6690 0.6880 0.8310 0.8240 0.6310 0.4340 0.3610 0.4210 0.4920 0.7120 0.6570
    7 Closed shurbland 1 68 79 84 0.6640 0.6580 0.6820 0.8440 0.7880 0.5610 0.4020 0.3410 0.3790 0.4110 0.6110 0.5910
    8 Open shurbland 1 68 79 84 0.6900 0.6850 0.6970 0.8510 0.8330 0.6530 0.4840 0.3990 0.4320 0.4780 0.6810 0.6710
    9 Perenial crop 1 78 85 89 0.6650 0.6930 0.6610 0.7710 0.8190 0.7410 0.6210 0.5010 0.5260 0.5910 0.6510 0.6540
    10 Annual crop  1 78 85 89 0.6680 0.6750 0.6780 0.8360 0.8370 0.7070 0.5430 0.4280 0.4560 0.5110 0.6510 0.6650
    11 Wetland 1 98 98 98 0.7300 0.7220 0.7330 0.8860 0.8580 0.7330 0.5790 0.4690 0.5090 0.5490 0.7010 0.6970
    12 waterbody 1 98 98 98 1.0300 1.0280 1.0310 1.0990 1.0910 1.0350 0.9720 0.9240 0.9350 0.9540 1.0120 1.0160
    13 Settlement 1 91 91 91 0.7600 0.7280 0.7470 0.9240 0.8860 0.7480 0.5910 0.5010 0.5240 0.5610 0.7310 0.7040
    14 Otherland 1 78 85 89 0.6650 0.6930 0.6610 0.7710 0.8190 0.7410 0.6210 0.5010 0.5260 0.5900 0.6510 0.6540


  • jdouglassjdouglass Administrator, NatCap Staff
    Could you send your inputs to jdouglass@stanford.edu so I can take a closer look?  I'll be easier to debug that way.

    Thanks,
    James
  • Dear James
    I have already sent the model inputs

    Thanks
  • jdouglassjdouglass Administrator, NatCap Staff
    Hi rukundo,

    It looks like the issue is in the Biophysical table, where an extra row of entirely-blank fields was somehow added.  The model should be able to handle this (and it will in a forthcoming release), but for the time being this biophysical table (download link here: https://drive.google.com/file/d/10R046jqZ7UwhK0mfcxZnX37sMH2mz6BK/view?usp=sharing) should do the trick.

    Let us know how this goes!
    James
  • Ok James thanks for your time
    Let me check

  • Thanks a lot James

    Its working now

    Regards

    Emmanuel
This discussion has been closed.