acsaf_box_mergetime {cmsafops}R Documentation

Function to combine ACSAF NetCDF files and simultaneously cut a region.

Description

This function selects a region (and optionally a level) from a bunch of AC SAF NetCDF files that match the same pattern of the filename, and writes the output to a new file.

Usage

acsaf_box_mergetime(
  path,
  pattern,
  outfile,
  lon1 = -180,
  lon2 = 180,
  lat1 = -90,
  lat2 = 90,
  nc34 = 3
)

Arguments

path

The directory of input NetCDF files without / at the end (character).

pattern

A part of the filename, which is the same for all desired input files (character). The pattern has to be a character string containing a regular expression.

outfile

Filename of output NetCDF file. This may include the directory (character).

lon1

Longitude of lower left corner (numeric).

lon2

Longitude of upper right left corner (numeric).

lat1

Latitude of lower left corner (numeric).

lat2

Latitude of upper right corner (numeric). Longitude of upper right corner (numeric).

nc34

NetCDF version of output file. If nc34 = 3 the output file will be in NetCDFv3 format (numeric). Default output is NetCDFv4.

Value

A NetCDF file including the merged time series of the selected region is written.

See Also

Other data manipulation functions: add_grid_info(), box_mergetime(), cmsaf.transform.coordinate.system(), levbox_mergetime(), remap()


[Package cmsafops version 1.3.0 Index]