rspatial / luna

satellite remote sensing tools
GNU General Public License v3.0
28 stars 4 forks source link

getModis not respecting version = "006" #28

Open DavidDHofmann opened 1 year ago

DavidDHofmann commented 1 year ago

Hi

I'm trying to access data for MOD44B, but only version 006. However, the getModis()function does not respect the version argument, such that also version 061 gets returned. I think this is coming from the fact that the argument is not being passed on to the .searchGranules() function.

getModis(
    product    = "MOD44B"
  , start_date = "2011-01-01"
  , end_date   = "2012-01-01"
  , aoi        = extent(c(20, 28, -22, -16))
  , server     = "LPDAAC_ECS"
  , version    = "006" # doesn't do anything
)
elweiser commented 7 months ago

I'm also having this issue with getNASA in luna_0.3-6 (installed today). It downloads 061 even when I specify version='006'.