oldNaming {gimms}R Documentation

Create Traditional GIMMS NDVI3g File Names

Description

Reformat the names of local NDVI3g.v1 files according to "traditional" NDVI3g.v0 naming convention.

Usage

oldNaming(x, suffix = "")

Arguments

x

character. GIMMS NDVI3g.v1 file names to reformat, see 'Details'.

suffix

character. Optional suffix to append to the resulting file names, e.g. ".tif" for GeoTiff files (see also writeFormats).

Details

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.

Value

A character vector of file names following the "traditional" NDVI3g.v0 naming convention.

References

http://nasanex.s3.amazonaws.com/AVHRR/GIMMS/3G/00READMEgeo.txt (accessed on 2021-04-15).

See Also

nc_open, ncvar_get.

Examples

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'


[Package gimms version 1.2.2 Index]