LabSid-USP / RUBEM

The Rainfall rUnoff Balance Enhanced Model (RUBEM) distributed hydrological model
https://labsid.poli.usp.br/softwares/rubem-hydrological/
GNU General Public License v3.0
7 stars 1 forks source link

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

Closed soaressgabriel closed 5 months ago

soaressgabriel commented 8 months ago

Description

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)

Additional context

Acknowledgements

github-actions[bot] commented 7 months ago

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

github-actions[bot] commented 6 months ago

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

github-actions[bot] commented 5 months ago

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