yaizaquintana / fps-urb-rcc

0 stars 0 forks source link

independent urban thresholds #4

Closed jesusff closed 5 months ago

jesusff commented 7 months ago

In the scripts, we should let two independent thresholds: urban_threshold and nonurban_threshold.

mask_urban = sfturf >= urban_threshold
mask_rural = sfturf < nonurban_threshold

This is typical at high resolution, where there are many grid cells to spare and one can afford to drop intermediate urban fraction values. We can make a test plot on this, e.g. with urban_threshold=0.1 and nonurban_threshold=0.05, but for CORDEX-CORE we will need to have both set to the same value:

urban_threshold = 0.1
nonurban_threshold = 0.1
jesusff commented 5 months ago

This was solved in 170befc

https://github.com/yaizaquintana/fps-urb-rcc/blob/170befc715deed9e5014dd92bff82cfdd28d840e/Cities.ipynb#L128-L129