inst/tinytest/test-minorFuns.R

### . getExtension ----

xtn0 = Map(
  MODIS:::getExtension
  , c("GTiff", "HDF4Image", "ENVI", "raw binary")
)

expect_true(
  all(
    unlist(xtn0) == c(".tif", ".hdf", "", ".hdr")
  )
  , info = "important format extensions are correct"
)

Try the MODIS package in your browser

Any scripts or data that you put into this service are public.

MODIS documentation built on Jan. 6, 2023, 5:10 p.m.