emf-creaf / forestables

Read and uniformize forest inventories data from the FIA (USA forest inventory), FFI (France forest inventory) and IFN (Spain forest inventory) from R
https://emf-creaf.github.io/forestables/
Other
8 stars 1 forks source link

IFN unique id for plots doesn't take into account the plot subclass #7

Closed MalditoBarbudo closed 6 months ago

MalditoBarbudo commented 10 months ago

This is a problem because in some cases the unique code created is identical for plots with diffferent subclass. This, along with the IFN3 and IFN4 join to get the coordinates generate plots with missing coordinates.

MalditoBarbudo commented 10 months ago

Ok, the source problem here is the inexistent capability of identifying plots in the IFN. This is all a mess between classes and subclasses in the different IFNs, making almost impossible to trace a plot in different versions.

Here there are several options:

  1. Include a way of really identifying in a unique way, along the IFN versions, the plots. As IFN data is static, this can be done once in data-raw to create a dictionary and then using it in each table processes. This is done in some capability for the NFIapp, so maybe we can replicate the process for all the IFN
  2. Leave the work to the user, return a mostly unique ID, but also return original codes, class and subclass for the user to be able to do the tracing

I'm mostly inclined to do 1

MalditoBarbudo commented 6 months ago

A comprehensive dictionary for plots have been added to the internal data of the package. Now IFN plots have traceability