Closed stineb closed 1 year ago
read.table("data/flux_data_kit_site-info.csv", header = TRUE, sep = ",") |> head()
readRDS("flux_data_kit_site-info.rds") |> head()
returns:
sitename lat lon elv date_start date_end product koeppen_code year_end year_start koeppen_code_beck whc igbp_land_use data_path
1 SE-Nor 60.08650 17.479504 45.00 2014-01-01 2020-12-31 icos Dfb 2020 2014 Dfb 295.939 Evergreen Needleleaf Forest data-raw/flux_data
2 BE-Bra 51.30761 4.519840 16.00 1996-01-01 2020-12-31 icos Cfb 2020 1996 Cfb 425.603 Mixed Forest data-raw/flux_data
3 BE-Lcr 51.11218 3.850430 6.25 2019-01-01 2020-12-31 icos Cfb 2020 2019 Cfb 321.835 Croplands data-raw/flux_data
4 BE-Lon 50.55162 4.746234 170.00 2004-01-01 2020-12-31 icos Cfb 2020 2004 Cfb 441.086 Croplands data-raw/flux_data
or
read.table("data/flux_data_kit_site-info.csv", header = TRUE, sep = ",") |> dplyr::as_tibble()
reads
# A tibble: 306 × 14
sitename lat lon elv date_start date_end product koeppen_code year_end year_start koeppen_code_beck whc igbp_land_use data_path
<chr> <dbl> <dbl> <dbl> <chr> <chr> <chr> <chr> <int> <int> <chr> <dbl> <chr> <chr>
1 SE-Nor 60.1 17.5 45 2014-01-01 2020-12-31 icos Dfb 2020 2014 Dfb 296. Evergreen Needleleaf Forest data-raw/flux_data/
2 BE-Bra 51.3 4.52 16 1996-01-01 2020-12-31 icos Cfb 2020 1996 Cfb 426. Mixed Forest data-raw/flux_data/
3 BE-Lcr 51.1 3.85 6.25 2019-01-01 2020-12-31 icos Cfb 2020 2019 Cfb 322. Croplands data-raw/flux_data/
not reproducible, closing
library(FluxDataKit)
`flux_data_kit_site-info`
returns:
sitename.lat.lon.elv.date_start.date_end.product.koeppen_code.year_end.year_start.koeppen_code_beck.whc.igbp_land_use.data_path
1 SE-Nor,60.0865,17.479504,45,2014-01-01,2020-12-31,icos,Dfb,2020,2014,Dfb,295.938995361328,Evergreen Needleleaf Forest,data-raw/flux_data/
2 BE-Bra,51.30761,4.51984,16,1996-01-01,2020-12-31,icos,Cfb,2020,1996,Cfb,425.602996826172,Mixed Forest,data-raw/flux_data/
3 BE-Lcr,51.11218,3.85043,6.25,2019-01-01,2020-12-31,icos,Cfb,2020,2019,Cfb,321.834991455078,Croplands,data-raw/flux_data/
...
It would be nice to make a data frame object fdk_siteinfo
available through the package (like ingestr:siteinfo_fluxnet2015
, which I use a ton!).
This is not how it is supposed to be used. Although I ignore the data
directory in .RBuildIgnore
, LazyData: true overrides this it seems. Fixed as per: https://github.com/computationales/FluxDataKit/commit/ef561529430dcdc61b9e1692d119ab3305563d83
Could the object flux_data_kit_site-info
be made available upon loading the package? I'm using the equivalent ingestr::siteinfo_fluxnet2015
all the time.
Integrated as fdk_site_info will be updated on a release basis. Not my way of doing things but so is most of the package.
The object
flux_data_kit_site-info
comes in a shape that doesn't look as expected:Should be separated into multiple columns. Suggestion: the object could be named
fdk_sites
.