Learn R Programming

cmsafops (version 1.4.2)

Tools for CM SAF NetCDF Data

Description

The Satellite Application Facility on Climate Monitoring (CM SAF) is a ground segment of the European Organization for the Exploitation of Meteorological Satellites (EUMETSAT) and one of EUMETSATs Satellite Application Facilities. The CM SAF contributes to the sustainable monitoring of the climate system by providing essential climate variables related to the energy and water cycle of the atmosphere (). It is a joint cooperation of eight National Meteorological and Hydrological Services. The 'cmsafops' R-package provides a collection of R-operators for the analysis and manipulation of CM SAF NetCDF formatted data. Other CF conform NetCDF data with time, longitude and latitude dimension should be applicable, but there is no guarantee for an error-free application. CM SAF climate data records are provided for free via (). Detailed information and test data are provided on the CM SAF webpage ().

Copy Link

Version

Install

install.packages('cmsafops')

Monthly Downloads

566

Version

1.4.2

License

GPL (>= 3)

Maintainer

Steffen Kothe

Last Published

October 22nd, 2025

Functions in cmsafops (1.4.2)

cmsaf.cat

Concatenate datasets of several NetCDF input files.
cmsaf.div

Divide the fields of two input NetCDF files.
cmsaf.addc

Add a constant to a dataset.
cmsaf.detrend

Linear detrending of time series
cmsaf.regres

Estimate regression parameter
cmsaf.adjust.two.files

Routine to adjust the time dimensions and coordinates in two files.
cmsaf.mulc

Multiply data with a constant.
cmsaf.divc

Divide data by a constant.
cmsaf.mul

Multiply the fields of two input NetCDF files.
cmsaf.mk.test

Apply Mann-Kendall trend test.
cmsafops-package

cmsafops: A package for analyzing and manipulating CM SAF NetCDF formatted data.
cmsaf.sub

Subtract the fields of two input NetCDF files.
cmsaf.transform.coordinate.system

Transform the coordinate system to -180 to 180 longitude of an infile
daymax

Determine daily maxima
cmsaf.stats

Calculates the rmse, mae, bias, correlation in grid space of two NetCDF files. Designed for the CM SAF R Toolbox.
dayavg

Determine daily averages
cmsaf.subc

Subtract a constant from a dataset.
cmsaf.stats.station.data

Calculates the rmse, mae, bias, correlation over time of a NetCDF file and a dataframe (station data). Designed for the CM SAF R Toolbox.
cmsaf.sub.rel

Subtract the fields of two input NetCDF files (relative). Designed for the CM SAF R Toolbox.
daymean

Determine daily means
daymin

Determine daily minima
daysum

Determine daily sums
dayrange

This function determines the diurnal range.
daypctl

Determine daily percentiles
dayvar

Determine daily variances
daysd

Determine daily standard deviations
fldcor

Determine correlations in grid space.
extract.period

Remove a time period.
extract.level

Extract levels from 4-dimensional NetCDF files.
divdpm

Divide by days per month.
fldmean

Determine the spatial mean
fldmin

Determine the spatial minimum.
get_basename

Determine the basename of a NetCDF file
fldsum

Determine the spatial sum
fldsd

Determine the spatial standard deviation
fldrange

Determine the spatial range
gridboxmax

Determine maxima of selected grid boxes
gridboxmean

Determine means of selected grid boxes
get_date_time

Get dates and times from NetCDF type date format.
get_time_info

Designed for the CM SAF R Toolbox.
get_dimensions

Designed for the CM SAF R Toolbox.
gridboxmin

Determine minima of selected grid boxes
gridboxrange

Determine ranges of selected grid boxes
get_time

Convert time steps to POSIXct.
get_nc_version

Designed for the CM SAF R Toolbox.
get_processing_time_string

Get processing time string
fldmax

Determine the spatial maximum
gridboxsum

Determine sums of selected grid boxes
fldcovar

Determine covariances in grid space.
gridboxsd

Determine standard deviations of selected grid boxes
mon_num_above

Number of timesteps per month above a threshold.
mon.anomaly

Determine monthly anomalies
hoursum

Determine hourly sums
levbox_mergetime

Function to combine NetCDF files and simultaneously cut a region and level.
gridboxvar

Determine variances of selected grid boxes
hourmean

Determine hourly means
map_regular

Grid interpolation.
mermean

Determine meridional means
mon.anomaly.climatology

Designed for the CM SAF R Toolbox.
mon_num_below

Number of timesteps per month below a threshold.
monsum

Determine monthly sums
monsd

Determine monthly standard deviations
monpctl

Determine monthly percentiles
monvar

Determine monthly variance
mon_num_equal

Number of timesteps per month equal a threshold.
monavg

Determine monthly averages
monmin

Determine monthly minima
monmean

Determine monthly means
mondaymean

Determine mean monthly daily variations
monmax

Determine monthly maxima.
num_above

Number of timesteps above a threshold.
read_ncvar

Read NetCDF variable.
num_equal

Number of timesteps equal a threshold.
muldpm

Multiply by days per month.
read_file

Designed for the CM SAF R Toolbox.
multimonmean

Determine multi-monthly means
num_below

Number of timesteps below a threshold.
remap

Grid interpolation.
multimonsum

Determine multi-monthly sums
ncinfo

Get information about the content of a NetCDF file.
runmean

Determine running means
runmax

Determine running maxima
runsum

Determine running sums
runsd

Determine running standard deviation
runmin

Determine running minima
runrange

Determine running range
seassum

Determine seasonal sums
seassd

Determine seasonal standard deviations
timavg

Determine all-time average.
selpoint

Extract data at a given point.
selpoint.multi

Extract data at multiple points.
seasvar

Determine seasonal variances
selmon

Extract a list of months.
selperiod

Extract a list of dates.
seltime

Extract specific timestep.
selyear

Extract a list of years.
seas.anomaly

Determine seasonal anomalies.
seasmean

Determine seasonal means
sellonlatbox

Select a region by longitude and latitude.
timcor

Determine correlations over time.
timsum

Determine all-time sum.
timselsum

Determine time selection sums
timcovar

Determine covariances over time.
timcumsum

Accumulate data of NetCDF file.
timmax

Determine all-time maxima.
timmean

Determine all-time mean.
timsd

Determine all-time standard deviations.
timselmean

Determine time selection means
ydaymin

Determine multi-year daily minima
wfldmean

Determine the weighted spatial mean.
ydayrange

Determine multi-year daily range
ydaymean

Determine multi-year daily means.
ydaysum

Determine multi-year daily sums
ydaymax

Determine multi-year daily maxima
trend

Determine linear trends.
timpctl

Determine percentile over all timesteps.
timmin

Determine all-time minima.
ydaysd

Determine multi-year daily standard deviations
trend_advanced

Determine multiple linear trends.
ydrunmean

Determine multi-year daily running means.
yearmax

Determine annual maxima
year.anomaly

Determine annual anomalies.
yearmean

Determine annual means
yearrange

Determine annual range
yearmin

Determine annual minima
yearsum

Determine annual sums
ydrunsum

Determine multi-year daily running sums
ydrunsd

Determine multi-year daily running standard deviations
yearvar

Determine annual variance
yearsd

Determine annual standard deviation
yseasmin

Determine multi-year seasonal minima.
ymonsd

Determine multi-year monthly standard deviations.
ymonmax

Determine multi-year monthly maxima.
yseasmax

Determine multi-year seasonal maxima.
yseassd

Determine multi-year seasonal standard deviations.
ymonmedian

Determine multi-year monthly medians.
ymonmin

Determine multi-year monthly minima.
ymonsum

Determine multi-year monthly sums.
zonmean

Determine zonal means
yseasmean

Determine multi-year seasonal means.
zonsum

Determine zonal sums
ymonmean

Determine multi-year monthly means.
calc_overlapping_time

Routine to calculate overlapping time periods in two files.
change_att

Change attributes of a NetCDF variable.
cmsaf.abs

Determine absolute values
box_mergetime

Function to combine NetCDF files and simultaneously cut a region (and level).
cmsaf.add

Add the fields of two input NetCDF files.
calc_allDatesNc

Designed for the CM SAF R Toolbox.
acsaf_box_mergetime

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

Add grid info
calc_timestepNc

Designed for the CM SAF R Toolbox.
check.coordinate.system

Designed for the CM SAF R Toolbox.