Frequently Asked QuetsionsΒΆ

This Notebook goes through some frequently asked questions about eddy.

How do I change the priors?

You want to use the set_prior function. This has three arguements, the name of the prior, the values of the prior and the type of prior. Two types of priors can be used: flat, uniform priors, 'flat', or Gaussian priors, 'gaussian'. For the flat priors the two values define the minimum and maximum value, while for the Gaussian priors the values specify the mean and standard deviation of Gaussian.

cube.set_prior('vlsr', [-20e3, 20e3], 'flat')  # uniform prior
cube.set_prior('x0', [0.0, 0.05], 'gaussian')  # gaussian prior