raster_to_ncdf: Convert a raster or brick to a array for WRF-Chem

View source: R/raster_to_ncdf.R

raster_to_ncdfR Documentation

Convert a raster or brick to a array for WRF-Chem

Description

Conversion a raster or brick to a array for WRF-Chem model

Usage

raster_to_ncdf(r, na_value = 0)

Arguments

r

input raster

na_value

value for missing values

Value

array

Examples


r <- raster::raster(paste0(system.file("extdata", package = "hackWRF"),
                           "/wrf.day1.o3.nc"))
a <- raster_to_ncdf(r)


Schuch666/hackWRF documentation built on June 9, 2025, 1:46 p.m.