Learn R Programming

cmsafops (version 1.4.1)

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

697

Version

1.4.1

License

GPL (>= 3)

Maintainer

Steffen Kothe

Last Published

April 8th, 2025

Functions in cmsafops (1.4.1)

change_att

Change attributes of a NetCDF variable.
cmsaf.add

Add the fields of two input NetCDF files.
check.coordinate.system

Designed for the CM SAF R Toolbox.
calc_overlapping_time

Routine to calculate overlapping time periods in two files.
calc_timestepNc

Designed for the CM SAF R Toolbox.
cmsaf.regres

Estimate regression parameter
cmsaf.mk.test

Apply Mann-Kendall trend test.
cmsaf.cat

Concatenate datasets of several NetCDF input 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.mul

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

Divide data by a constant.
cmsaf.adjust.two.files

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

Linear detrending of time series
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.stats

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

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

Determine daily maxima
cmsaf.sub

Subtract the fields of two input NetCDF files.
dayavg

Determine daily averages
cmsaf.sub.rel

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

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

Determine daily means
daysum

Determine daily sums
extract.period

Remove a time period.
dayvar

Determine daily variances
fldcor

Determine correlations in grid space.
divdpm

Divide by days per month.
daypctl

Determine daily percentiles
dayrange

This function determines the diurnal range.
daysd

Determine daily standard deviations
daymin

Determine daily minima
fldmean

Determine the spatial mean
get_date_time

Get dates and times from NetCDF type date format.
fldrange

Determine the spatial range
fldsum

Determine the spatial sum
extract.level

Extract levels from 4-dimensional NetCDF files.
fldcovar

Determine covariances in grid space.
get_basename

Determine the basename of a NetCDF file
fldmax

Determine the spatial maximum
get_dimensions

Designed for the CM SAF R Toolbox.
fldsd

Determine the spatial standard deviation
fldmin

Determine the spatial minimum.
get_time

Convert time steps to POSIXct.
get_time_info

Designed for the CM SAF R Toolbox.
gridboxmean

Determine means of selected grid boxes
gridboxmax

Determine maxima of selected grid boxes
gridboxsd

Determine standard deviations of selected grid boxes
gridboxsum

Determine sums of selected grid boxes
get_processing_time_string

Get processing time string
get_nc_version

Designed for the CM SAF R Toolbox.
gridboxmin

Determine minima of selected grid boxes
gridboxrange

Determine ranges of selected grid boxes
mon_num_above

Number of timesteps per month above a threshold.
hoursum

Determine hourly sums
map_regular

Grid interpolation.
levbox_mergetime

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

Determine hourly means
gridboxvar

Determine variances of selected grid boxes
mon_num_below

Number of timesteps per month below a threshold.
mon.anomaly.climatology

Designed for the CM SAF R Toolbox.
mon.anomaly

Determine monthly anomalies
mermean

Determine meridional means
monmean

Determine monthly means
monpctl

Determine monthly percentiles
mon_num_equal

Number of timesteps per month equal a threshold.
monsum

Determine monthly sums
monmin

Determine monthly minima
mondaymean

Determine mean monthly daily variations
monmax

Determine monthly maxima.
monsd

Determine monthly standard deviations
monavg

Determine monthly averages
remap

Grid interpolation.
read_ncvar

Read NetCDF variable.
monvar

Determine monthly variance
muldpm

Multiply by days per month.
multimonmean

Determine multi-monthly means
multimonsum

Determine multi-monthly sums
ncinfo

Get information about the content of a NetCDF file.
runsd

Determine running standard deviation
runsum

Determine running sums
runmin

Determine running minima
num_above

Number of timesteps above a threshold.
num_below

Number of timesteps below a threshold.
runrange

Determine running range
runmax

Determine running maxima
num_equal

Number of timesteps equal a threshold.
read_file

Designed for the CM SAF R Toolbox.
seltime

Extract specific timestep.
selpoint.multi

Extract data at multiple points.
timavg

Determine all-time average.
runmean

Determine running means
seas.anomaly

Determine seasonal anomalies.
seasmean

Determine seasonal means
seassum

Determine seasonal sums
seassd

Determine seasonal standard deviations
timcor

Determine correlations over time.
selpoint

Extract data at a given point.
selmon

Extract a list of months.
selyear

Extract a list of years.
selperiod

Extract a list of dates.
timmax

Determine all-time maxima.
timmean

Determine all-time mean.
seasvar

Determine seasonal variances
timpctl

Determine percentile over all timesteps.
timmin

Determine all-time minima.
timselmean

Determine time selection means
timsd

Determine all-time standard deviations.
ydayrange

Determine multi-year daily range
timsum

Determine all-time sum.
ydaymean

Determine multi-year daily means.
trend

Determine linear trends.
timselsum

Determine time selection sums
ydaymax

Determine multi-year daily maxima
wfldmean

Determine the weighted spatial mean.
sellonlatbox

Select a region by longitude and latitude.
timcovar

Determine covariances over time.
ydrunmean

Determine multi-year daily running means.
ydaysum

Determine multi-year daily sums
timcumsum

Accumulate data of NetCDF file.
trend_advanced

Determine multiple linear trends.
ydaysd

Determine multi-year daily standard deviations
yearsum

Determine annual sums
yearmean

Determine annual means
ydaymin

Determine multi-year daily minima
year.anomaly

Determine annual anomalies.
yearmax

Determine annual maxima
yearvar

Determine annual variance
ydrunsd

Determine multi-year daily running standard deviations
ydrunsum

Determine multi-year daily running sums
yearrange

Determine annual range
yearsd

Determine annual standard deviation
ymonsum

Determine multi-year monthly sums.
yseasmax

Determine multi-year seasonal maxima.
ymonsd

Determine multi-year monthly standard deviations.
yseasmean

Determine multi-year seasonal means.
ymonmin

Determine multi-year monthly minima.
ymonmedian

Determine multi-year monthly medians.
yearmin

Determine annual minima
yseasmin

Determine multi-year seasonal minima.
yseassd

Determine multi-year seasonal standard deviations.
zonmean

Determine zonal means
ymonmax

Determine multi-year monthly maxima.
ymonmean

Determine multi-year monthly means.
zonsum

Determine zonal sums
cmsaf.abs

Determine absolute values
acsaf_box_mergetime

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

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

Designed for the CM SAF R Toolbox.
add_grid_info

Add grid info