i-RIC / prepost-gui

iRIC Pre-processor and post-processor GUI
MIT License
9 stars 11 forks source link

Improve function to import GeoTIFF into integer value grid attribute #348

Open kskinoue0612 opened 6 years ago

kskinoue0612 commented 6 years ago

Currently, iRIC is implemented with the assumption that GeoTIFF are imported for grid attributes with real value type, like elevation or rainfall.

But sometimes we want to import GeoTiff into integer value like:

or,

In such cases, it often happens that GeoTiff stores integer values at each cells, but the value table is not the same with the definition in solver definition file. For example, GeoTIFF stores ground surface usage as values 0 to 10 (ex. 0 = undefined, 1 = city, 2 = river or ocean, 3 = vegetation, ...), and use it for "vegetation" attribute.

To import GeoTiff data as geographic data like this, we need to specify mapping about GeoTIFF values and grid attribute values. like:

or

We add the function to specify mapping when importing GeoTIFF to such grid attributes.

kazutake commented 4 months ago

Has this function implemented, yet?