All functions

add_days()

Add a specified number of days to a date

add_months()

Add a specified number of months to a date

add_years()

Add a specified number of years to a year

assign_to_bin()

Assign a value to one of several bins.

block_apply()

Apply a function to each cell in a GDALRasterDataset, using blockwise I/O

can_coerce_to_integer()

Test if values can be stored as integers without loss

can_write()

Determine if a file can be opened for writing

check_coordinate_variables()

Validate coordinate variables

check_units()

Check the units of data read by read_vars_from_cdf

check_values_in_dimension()

Validate extra dimensions

check_var_list()

Get a list of variables that can be read from a netCDF file

combos()

Return a data frame with each combination of the supplied inputs

create_char_dimension_variable()

Create a character-type dimension variable

create_tiff_like()

Create a new GeoTIFF with the same dimensions/projection the input

cube_to_matrices()

Convert a 3D array to a list of matrices

date_range()

Expand a range of dates

default_netcdf_nodata

Default NODATA values for various data types

die_with_message()

Display a message and exit the program

error()

Generate a log message at the ERROR level

errorf()

Format and generate a log message at the ERROR level

expand_dates()

Expand any date ranges encoded in a filename

expand_inputs()

Expand a list of inputs using globbing and date range expansion, returning a single list of filenames.

fatal()

Generate a log message at the FATAL level

fatalf()

Format and generate a log message at the FATAL level

find_count()

Compute the count vector for specified valuws of dimensions

find_offset()

Compute the offset vector for specified values of dimensions

generate_raster()

Generate a netCDF populated with data from a generator

get_block_offsets()

Identify the origin of each block in a GDALRasterBand

get_command()

Get the command line string used to execute the current program

info()

Generate a log message at the INFO level

infof()

Format and generate a log message at the INFO level

is.wsim.io.var()

Check if an object is a wsim.io.var

is.wsim.io.vardef()

Check if an object is a wsim.io.vardef

lat_seq()

Compute a sequence of latitude values (N to S)

logging_init()

Initialize logging functionality

lon_seq()

Compute a sequence of longitude values (W to E)

make_var()

Create a wsim.io.var

make_vardef()

Create a wsim.io.vardef

parse_args()

Parse command-line arguments from a docopt string

parse_attr()

Parse a metadata attribute destined for a NetCDF file

parse_stat()

Parse a statistic provided as a command-line argument

parse_vardef()

Parse a reference to a variable within a file

perform_transforms()

Apply named transformations to data

raster_blockwise_apply()

Apply a function to each cell of a raster, using blockwise I/O

read_brick_from_cdf()

Read multiple variables from a NetCDF file to a RasterBrick

read_dimension_values()

Get the values of the dimensions associated with a variable in a netCDF file

read_fits_from_cdf()

Read distribution fit files and store them in a list

read_integrated_vars()

Read variables from several files and return a data frame with a "window" column

read_mon_file()

Read a gridded binary .mon file

read_ncep_daily_precip()

Read GrADS file containing NCEP global precipitation

read_varnames()

Get the variables available in a given file

read_vars()

Read one or more variables from raster files

read_vars_from_cdf()

Read all variables from a netCDF file

read_vars_to_cube()

Read multiple variables to a 3D array

shared_dimensions()

Given a netCDF file handle and a list of variable names, return the names of the dimensions that are shared among all variables.

strip()

Strip trailing newline characters from text

update_attribute()

Update an attribute in ncout

var_fill()

Return a fill value to use for the variable named var

var_prec()

Return the data precision for variable named var

warn()

Generate a log message at the WARN level

warnf()

Format and generate a log message at the WARN level

write_layer_to_cdf()

Write a RasterLayer to a NetCDF file

write_stack_to_cdf()

Write a RasterStack to a NetCDF file

write_vars_to_cdf()

Write a list of matrices to a netCDF file.

write_wgs84_crs_attributes()

Write CRS attributes for WGS84

wsim_version_string()

Return a string with the WSIM version and commit hash