Learn R Programming

cmsafops (version 1.4.3)

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.3

License

GPL (>= 3)

Maintainer

Steffen Kothe

Last Published

October 27th, 2025

Functions in cmsafops (1.4.3)

cmsaf.cat

Concatenate datasets of several NetCDF input files.
cmsaf.regres

Estimate regression parameter
cmsaf.mk.test

Apply Mann-Kendall trend test.
cmsaf.divc

Divide data by a constant.
cmsaf.mul

Multiply the fields of two input NetCDF files.
cmsaf.div

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

Multiply data with a constant.
cmsaf.addc

Add a constant to a dataset.
cmsaf.detrend

Linear detrending of time series
cmsaf.adjust.two.files

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

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

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

Determine daily maxima
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

Subtract the fields of two input NetCDF files.
cmsaf.subc

Subtract a constant from a dataset.
cmsaf.transform.coordinate.system

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

Determine daily means
cmsafops-package

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

Determine daily minima
fldcor

Determine correlations in grid space.
daypctl

Determine daily percentiles
divdpm

Divide by days per month.
daysum

Determine daily sums
extract.period

Remove a time period.
dayvar

Determine daily variances
dayavg

Determine daily averages
daysd

Determine daily standard deviations
dayrange

This function determines the diurnal range.
fldsum

Determine the spatial sum
extract.level

Extract levels from 4-dimensional NetCDF files.
fldcovar

Determine covariances in grid space.
fldmax

Determine the spatial maximum
get_basename

Determine the basename of a NetCDF file
gridboxmax

Determine maxima of selected grid boxes
gridboxmean

Determine means of selected grid boxes
gridboxsd

Determine standard deviations of selected grid boxes
gridboxsum

Determine sums of selected grid boxes
get_date_time

Get dates and times from NetCDF type date format.
get_dimensions

Designed for the CM SAF R Toolbox.
map_regular

Grid interpolation.
gridboxmin

Determine minima of selected grid boxes
gridboxrange

Determine ranges of selected grid boxes
hoursum

Determine hourly sums
fldrange

Determine the spatial range
fldsd

Determine the spatial standard deviation
mermean

Determine meridional means
fldmin

Determine the spatial minimum.
get_time_info

Designed for the CM SAF R Toolbox.
hourmean

Determine hourly means
gridboxvar

Determine variances of selected grid boxes
fldmean

Determine the spatial mean
get_time

Convert time steps to POSIXct.
levbox_mergetime

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

Designed for the CM SAF R Toolbox.
mon_num_below

Number of timesteps per month below a threshold.
get_processing_time_string

Get processing time string
mon_num_above

Number of timesteps per month above a threshold.
monsum

Determine monthly sums
mondaymean

Determine mean monthly daily variations
monmax

Determine monthly maxima.
num_above

Number of timesteps above a threshold.
mon_num_equal

Number of timesteps per month equal a threshold.
monavg

Determine monthly averages
num_equal

Number of timesteps equal a threshold.
num_below

Number of timesteps below a threshold.
multimonmean

Determine multi-monthly means
muldpm

Multiply by days per month.
monsd

Determine monthly standard deviations
mon.anomaly.climatology

Designed for the CM SAF R Toolbox.
monmean

Determine monthly means
monmin

Determine monthly minima
read_ncvar

Read NetCDF variable.
mon.anomaly

Determine monthly anomalies
monpctl

Determine monthly percentiles
remap

Grid interpolation.
seassd

Determine seasonal standard deviations
seas.anomaly

Determine seasonal anomalies.
seassum

Determine seasonal sums
seasmean

Determine seasonal means
read_file

Designed for the CM SAF R Toolbox.
runmin

Determine running minima
monvar

Determine monthly variance
runrange

Determine running range
multimonsum

Determine multi-monthly sums
ncinfo

Get information about the content of a NetCDF file.
runmax

Determine running maxima
seasvar

Determine seasonal variances
seltime

Extract specific timestep.
selyear

Extract a list of years.
runmean

Determine running means
sellonlatbox

Select a region by longitude and latitude.
selpoint

Extract data at a given point.
timsum

Determine all-time sum.
selpoint.multi

Extract data at multiple points.
timselsum

Determine time selection sums
timavg

Determine all-time average.
timcor

Determine correlations over time.
timcovar

Determine covariances over time.
timcumsum

Accumulate data of NetCDF file.
timselmean

Determine time selection means
timsd

Determine all-time standard deviations.
ydayrange

Determine multi-year daily range
ydaymean

Determine multi-year daily means.
ydaysd

Determine multi-year daily standard deviations
ydaymin

Determine multi-year daily minima
runsd

Determine running standard deviation
runsum

Determine running sums
timpctl

Determine percentile over all timesteps.
timmin

Determine all-time minima.
selmon

Extract a list of months.
selperiod

Extract a list of dates.
wfldmean

Determine the weighted spatial mean.
ydrunmean

Determine multi-year daily running means.
ydaysum

Determine multi-year daily sums
timmean

Determine all-time mean.
timmax

Determine all-time maxima.
ydaymax

Determine multi-year daily maxima
trend

Determine linear trends.
trend_advanced

Determine multiple linear trends.
yearmax

Determine annual maxima
year.anomaly

Determine annual anomalies.
ydrunsd

Determine multi-year daily running standard deviations
ydrunsum

Determine multi-year daily running sums
yearmean

Determine annual means
yearmin

Determine annual minima
ymonmin

Determine multi-year monthly minima.
ymonmedian

Determine multi-year monthly medians.
yearrange

Determine annual range
yearsd

Determine annual standard deviation
ymonmean

Determine multi-year monthly means.
ymonmax

Determine multi-year monthly maxima.
yearvar

Determine annual variance
yearsum

Determine annual sums
ymonsd

Determine multi-year monthly standard deviations.
ymonsum

Determine multi-year monthly sums.
zonmean

Determine zonal means
yseasmean

Determine multi-year seasonal means.
zonsum

Determine zonal sums
yseasmax

Determine multi-year seasonal maxima.
yseasmin

Determine multi-year seasonal minima.
yseassd

Determine multi-year seasonal standard deviations.
calc_overlapping_time

Routine to calculate overlapping time periods in two files.
cmsaf.abs

Determine absolute values
acsaf_box_mergetime

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

Change attributes of a NetCDF variable.
calc_allDatesNc

Designed for the CM SAF R Toolbox.
cmsaf.add

Add the fields of two input NetCDF files.
add_grid_info

Add grid info
box_mergetime

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

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

Designed for the CM SAF R Toolbox.