import telescope.*
help PTF.coo2field

% Note that the size of the seeing disk in this example is (D/r0)*OverSamp:
% 100 terms
J = (1:1:100);
% Telescope aperture: 100 cm, Fried length: 5 cm.
D=100; r0=5;
[AmpC,J,C]=telescope.Optics.zer_cj_variance(100,'Nrand',1,'D',D,'r0',r0);
[Image_NS,Image,SumY]=telescope.Optics.zerwavefront2image(J,[],C);
pcolor(log10(Image)), shading interp; axis square, colorbar
[Flux,Counts]=telescope.sn.spec2photons(5770,[100 300000],[],696000e5,10)
telescope.obs.daily_observability('Wise',[27 8 2001],[18 0 0],[1 67 0 0]);
telescope.obs.yearly_observability(2001,[10 0 0 -1 20 0 0],'Wise',2,2.5);
Undefined variable "telescope" or class "telescope.mlx".