LTER-LIFE / VeluweProtoDT

Veluwe proto-DT: a digital mini twin of tree phenology and climate scenarios
0 stars 0 forks source link

Match trees to temperature grid cells #12

Closed CherineJ closed 10 months ago

CherineJ commented 10 months ago

The temperature data is gridded and provides different temperature values across the Hoge Veluwe. In the climate models, each tree shall be modelled with the temperature from the grid cell that is closest to it. Individual trees therefore need to be matched to the respective grid cells of the temperature data.

CherineJ commented 10 months ago

If the Open API of KNMI is used (#2), the coordinates of the temperature data first has to be converted to EPSG:4326. The shortest geographic distance between longitude and latitude of a tree and all grid cells of the temperature data can then be calculated and temperature values assigned to the trees.

An R pipeline for this exists but needs to be adapted to the final form of the temperature data.

CherineJ commented 10 months ago

As we chose the EDR API of KNMI, we don't have to convert the coordinate systems, as temperature data already comes with decimal longitude and latitude.

The existing script is now adapted to the final temperature data and each tree matched to one of its 6 grid cells.