# NOT RUN {
library(ProFit)
model = list(
sersic = list(
xcen = 50,
ycen = 50,
mag = 15,
re = 10,
nser = 4,
ang = 30,
axrat = 0.3,
box = 0.5
)
)
image=profoundMakeModel(model)$z
temp=magimage(image)
contour(temp, col='red', drawlabels=FALSE, add=TRUE)
profoundDrawEllipse(model$sersic$xcen, model$sersic$ycen, rad=26, axrat=model$sersic$axrat,
ang=model$sersic$ang, box=model$sersic$box, col='blue', lty=2)
model = list(
sersic = list(
xcen = 50,
ycen = 50,
mag = 15,
re = 10,
nser = 4,
ang = 30,
axrat = 0.3,
box = -0.5
)
)
image=profoundMakeModel(model)$z
temp=magimage(image)
contour(temp, col='red', drawlabels=FALSE, add=TRUE)
profoundDrawEllipse(model$sersic$xcen, model$sersic$ycen, rad=30, axrat=model$sersic$axrat,
ang=model$sersic$ang, box=model$sersic$box, col='blue', lty=2)
# }
Run the code above in your browser using DataLab