geco-bern / FluxDataKit

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

MODIS v6 vs. v6.1 #78

Open stineb opened 8 months ago

stineb commented 8 months ago

MODIS data is downloaded for FDK as:

    product <- "MCD15A2H"
    bands <- c(
      "Lai_500m",
      "LaiStdDev_500m",
      "FparStdDev_500m",
      "Fpar_500m",
      "FparLai_QC"
    )

    df_modis <- try(
      MODISTools::mt_subset(
        site_name = as.character(x['sitename']),
        lat = x['lat'],
        lon = x['lon'],
        product = product,
        band = bands,
        start = "2000-01-01",
        end = format(Sys.time(), "%Y-%m-%d"),
        km_lr = 1,
        km_ab = 1,
        internal = TRUE
      )
    )

Should make sure to download v6.1, not v6 (see here).

This is related to the issue on MODISTools.