SDR MODEL ERROR (v: 3.2.0)

Hi.

Running InVEST SDR 3.2.0, I get the following message:

invest_natcap.sdr.sdr INFO     calculate sediment retention
TypeError: Can only aggreggate by integer based fields, requested field is of type Real


Could someone help me?

Thanks again.

Comments

  • jdouglassjdouglass Administrator, NatCap Staff
    Hi @brunopz,

    It looks like your watersheds shapefile (Baciainvest.shp) has a ws_id column that has a type of Real. If you change that column to be a column of integers, the model should aggregate correctly.

    Could you try this out and let us know how it goes?
    James
  • Hi jdouglass

    That was the issue.

    Worked correctly.

    Thanks
  • jdouglassjdouglass Administrator, NatCap Staff
    Great!  I'm glad it worked.
This discussion has been closed.