ConservationInternational / cplus-plugin

QGIS plugin for using CPLUS framework in effective land-use planning
https://conservationinternational.github.io/cplus-plugin/
GNU General Public License v3.0
3 stars 6 forks source link

Financial NPV PWL #448

Closed gkahiu closed 4 months ago

gkahiu commented 4 months ago

Addresses UR4 in #320.

See the implementation notes below:

  1. By default, on first time load, the NPV configurations for all activities are disabled:

image

  1. To enable the NPV for an activity, one should check the NPV Priority Weighting Layer group box:

image

  1. The user should specify the number of years and discount, then enter the revenue and cost values for the respective years. The greyed out cells (i.e. Year and Discount Value) indicate that the values are automatically populated.
  2. On updating the discount rate, revenue and cost values, the total NPV is automatically updated.
  3. For an enabled NPV PWL, all revenue and cost values should be specified otherwise an error in the message bar will show which activity(ies) and corresponding years have missing values. This is shown when the user tries to create or update the PWLs.

image

  1. It is recommended to leave the Use computed NPVs check box enabled - which is the default option - so that the minimum and maximum normalization values can be synced and automatically updated when the user input changes. The min/max values will be based on enabled NPV parameters for activities i.e. a disabled NPV (in the group box) will be excluded when computing the min/max normalization values.
  2. When the Remove existing PWLs for disabled activity NPVs check box is enabled, any NPV PWLs that were previously created, will be deleted when updating the NPVs.
  3. On clicking Update, a dialog showing the progress of creating/updating the NPVs will be shown.
  4. On creating NPV PWL rasters, the corresponding PWLs will be created or updated in the list of PWLs. The naming convention is [activity name] NPV Norm:

image

  1. An NPV layer, which is a constant raster containing the normalized value, will be created under the {BASE_DIR}/priority_layers/npv directory. The extents are based on the user extents defined in Step 1:

image

  1. Editing of NPV PWLs is restricted to the description only as the name, layer and corresponding activity are managed through the NPV Manager Dialog:

image

github-actions[bot] commented 4 months ago

badge

Plugin zip package for the changes in this PR has been successfully built!.

Download the plugin zip file here https://github.com/ConservationInternational/cplus-plugin/suites/24504108691/artifacts/1565980135