geco-bern / FluxDataKit

LEMONTREE flux data kit
https://geco-bern.github.io/FluxDataKit
2 stars 11 forks source link

Inconsistent IGBP types #69

Closed jaideep777 closed 8 months ago

jaideep777 commented 10 months ago

The IGBP_veg_short field has inconsistent info, i.e., it sometimes has full forms fo the vegetation type and sometimes short forms.

Proposed fix:

Use the following code (or something to that effect) to remap the full-forms while generating the NetCDF files

IGBP_veg_short = dplyr::case_match(IGBP_veg_short,
                                 "Woody Savannas" ~ "WSA",
                                 "Savannas" ~ "SAV",
                                 "Permanent Wetlands" ~ "WET",
                                 "Open Shrublands" ~ "OSH",
                                 "Closed Shrublands" ~ "CSH",
                                 "Grasslands" ~ "GRA",
                                 "Evergreen Needleleaf Forest" ~ "ENF",
                                 "Evergreen Broadleaf Forest" ~ "EBF",
                                 "Deciduous Broadleaf Forest" ~ "DBF",
                                 "Mixed Forest" ~ "MF",
                                 "Croplands" ~ "CRO",
                                 "Cropland/Natural Vegetation Mosaic" ~ "MF",
                                 "Urban and Built-Up" ~ NA,
                                 .default = IGBP_veg_short)
stineb commented 10 months ago

We have code in ingestr for preparing site-level meta data here. This may be adopted to solve this issue. It takes information from {amerifluxr} and from Falge et al.. We don't need all of these meta info, but I recommend the following:

We will need more info for the following points. Ask Yanghui Kang (yanghuikang@berkeley.edu) and Trevor Keenan (trevorkeenan@berkeley.edu). They collected more. What do they have? We definitely need:

khufkens commented 10 months ago
stineb commented 8 months ago

Resolved by https://github.com/geco-bern/FluxDataKit/pull/72