oldNaming | R Documentation |
Reformat the names of local NDVI3g.v1 files according to "traditional" NDVI3g.v0 naming convention.
oldNaming(x, suffix = "")
x |
|
suffix |
|
The satellite number, which was an essential constituent of the NDVI3g.v0
file naming convention (see 'References'), has been removed from NDVI3g.v1
file names. However, it can easily be accessed via ncvar_get
given that the file has previously been downloaded. If an NDVI3g.v1 file
specified to 'x' is not available locally, by contrast, the satellite number
is retrieved from the built-in NDVI3g.v0 file inventory (until end 2013; see
'Examples') and newer files are tagged with "XX"
indicating missing
information.
A character
vector of file names following the "traditional" NDVI3g.v0
naming convention.
http://nasanex.s3.amazonaws.com/AVHRR/GIMMS/3G/00READMEgeo.txt (accessed on 2021-04-15).
nc_open
, ncvar_get
.
fls <- system.file("extdata", "inventory_ecv1.rds", package = "gimms")
fls <- basename(readRDS(fls))
oldNaming(fls[64:65], suffix = ".tif") # adds .tif extension
oldNaming(fls[65:66]) # tags newer files with 'XX'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.