The function interpolates the irregular gridded data of infile using grid information
of auxfile. The intention of this function is to remap CLAAS level-2 data onto a
regular gridded lon / lat grid.
By default, a nearest neighbor interpolation provided by
get.knnx
is used.
map_regular(
var,
infile,
auxfile,
outfile,
dxy = 0.05,
dxy_factor = 1,
min_lon = -80,
max_lon = 80,
min_lat = -80,
max_lat = 80,
method = "nearest",
nc34 = 4,
overwrite = FALSE,
verbose = FALSE,
nc = NULL
)
A NetCDF file including the interpolated data of infile on a regular lon / lat grid with a spatial resolution of dxy.
Name of NetCDF variable (character).
Filename of input NetCDF file (irregular gridded). This may include the directory (character). The data of infile are interpolated.
Filename auxiliary file. This may include the directory (character).
Filename of output NetCDF file. This may include the directory (character).
Grid resolution of the regular output grid in degrees (numeric). Default is 0.05°.
In case of nearest neighbor all grid points with distance > (dxy * dxy_factor) are set to NA (numeric). Default is 1.
Minimum longitude
Maximum longitude
Minimum latitude
Maximum latitude
Method used for remapping (character). Default and so far the only option is "nearest" for nearest-neighbor interpolation.
NetCDF version of output file. If nc34 = 3
the output file will be
in NetCDFv3 format (numeric). Default output is NetCDFv4.
logical; should existing output file be overwritten?
logical; if TRUE, progress messages are shown
Alternatively to infile
you can specify the input as an
object of class ncdf4
(as returned from ncdf4::nc_open
).
Other data manipulation functions:
acsaf_box_mergetime()
,
add_grid_info()
,
box_mergetime()
,
cmsaf.transform.coordinate.system()
,
levbox_mergetime()
,
remap()