predict_annular: Predict annular PSF fitted model

View source: R/fit_annular.R

predict_annularR Documentation

Predict annular PSF fitted model

Description

Solves a fitted model from fit_annular for the PSF of the radial cummulative PSF at requested radius.

Usage

predict_annular(
  r,
  fit,
  type = c("psf", "dpsf", "cpsf"),
  press = NULL,
  tpred = NULL
)

Arguments

r

The radial distances (km) at which the model should be evaluated.

fit

A model fit from fit_annular or fit_sectorial.

type

Type of prediction: 'psf', 'dpsf', or 'cumpsf'. See Details.

press

Pressure in mbar or NULL. See details.

tpred

Third predictor to be used when predicting a sectorial fit in annular geomtry.

Details

If type = cumpsf, the model fit to the cumulative PSF will be evaluated at the desired radius points. If type = dpsf, the area derivative the PSF dPSF/dArea is returned. If type == psf, quadrature is used to on the average area derivative of the annulus and scaled by the area of the annulus. Note that in this case, r will be sorted and the returned values are for the mid points of the input vector of radius, so will have a length of length(r) - 1. Default is to return the PSF.

Value

A numeric vetor with the PSF, dPSF/dArea or cumulative PSF.


AlexCast/apsfs documentation built on Feb. 1, 2024, 9:48 p.m.