# Locate the polar volume example file
pvolfile <- system.file("extdata", "volume.h5", package = "vol2birdR")
# Create a configuration instance:
conf <- vol2bird_config()
# Define output file
output_file <- paste0(tempdir(), "/vp.h5")
# Calculate the profile:
vol2bird(file = pvolfile, config = conf, vpfile = output_file)
Run the code above in your browser using DataLab