Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add result of average tables in user-defined sub-areas #117

Closed
soaressgabriel opened this issue Feb 15, 2024 · 3 comments
Closed

Add result of average tables in user-defined sub-areas #117

soaressgabriel opened this issue Feb 15, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request stale

Comments

@soaressgabriel
Copy link
Collaborator

soaressgabriel commented Feb 15, 2024

Description

  • The user can access average values of parcels in specific areas (sub-basins, land cover, soils).

Solution

  # Create sub-basins (demand zones) using `LDD` and `samples` (done once - you can go in `initial`)
  self.subcatchment = pcr.subcatchment(self.ldd_file, self.sampleLocs# Transforms into nominal to be used in the average function (done once - can go in `initial`)
  self.areas= pcr.nominal(self.subcatchment# Generate the average of the variable in each zone (here `Etr` as an example, include precipitation) `dynamic`
  self.mean = pcr.areaaverage(self.ETr, self.areas)   # Use the export function for PCRaster TSS to generate the files

Alternative solution(s)

  • N/A

Additional context

  • N/A

Acknowledgements

@soaressgabriel soaressgabriel added the enhancement New feature or request label Feb 15, 2024
@soaressgabriel soaressgabriel self-assigned this Feb 15, 2024
@LINAMARIAOSORIO LINAMARIAOSORIO changed the title Add result of average plots in demand zones Add result of average plots in user-defined sub-basins Feb 19, 2024
@LINAMARIAOSORIO LINAMARIAOSORIO changed the title Add result of average plots in user-defined sub-basins Add result of average plots in user-defined sub-areas Feb 19, 2024
@soaressgabriel soaressgabriel changed the title Add result of average plots in user-defined sub-areas Add result of average tables in user-defined sub-areas Feb 22, 2024
Copy link

This issue is stale because it has been open for 30 days with no activity.

Copy link

github-actions bot commented May 3, 2024

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label May 3, 2024
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

No branches or pull requests

1 participant