Skip to content

Financial NPV PWL#448

Merged
Samweli merged 24 commits intoConservationInternational:mainfrom
gkahiu:financial_pwl
Jun 5, 2024
Merged

Financial NPV PWL#448
Samweli merged 24 commits intoConservationInternational:mainfrom
gkahiu:financial_pwl

Conversation

@gkahiu
Copy link
Copy Markdown
Collaborator

@gkahiu gkahiu commented May 31, 2024

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

@gkahiu gkahiu added this to the Deliverable 1 milestone May 31, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 31, 2024

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

@gkahiu gkahiu requested a review from Samweli June 4, 2024 07:53
@gkahiu gkahiu added the Future Enhancement New feature or request label Jun 4, 2024
@gkahiu gkahiu marked this pull request as ready for review June 4, 2024 09:09
@Samweli Samweli merged commit c897830 into ConservationInternational:main Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Future Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants