recalculateImageDimensions: Get rectangular image dimensions

View source: R/recalculateImageDimensions.R

recalculateImageDimensionsR Documentation

Get rectangular image dimensions

Description

Given regional bounds image width and height are computed in order to display a region without distortion.

Usage

recalculateImageDimensions(
  visualizeVariables,
  lon_bounds,
  lat_bounds,
  image_def,
  ihsf
)

Arguments

visualizeVariables

A dataframe containing $lon and $lat values which will be bounded by lon/lat_bounds (data.frame).

lon_bounds

Array containing two values for longitude min and max (numeric).

lat_bounds

Array containing two values for latitude min and max (numeric).

image_def

Minimal image default size for width and height (numeric).

ihsf

Image height rescaling factor (numeric).


cmsafvis documentation built on Sept. 30, 2024, 5:07 p.m.