Scalar_mask_X mask_from_array

Issue #259 open
Jonas Herbst created an issue

Hello,

I have a DOE profile and the following code:

t1 = Scalar_mask_X(x, wavelength)

t1.mask_from_array(x0=0,
               index=1.25,
               array1=ph * mm,
               array2=ph2 * mm,
               interp_kind='zero',
               radius= xn[-1] * mm)#,
               #x_sides =(-xn[-1] * mm, xn[-1] * mm))

t1.draw(kind='phase')

How can I draw the phase up to the values in mm?

Best regards,

Jonas

Comments (4)

  1. Jonas Herbst reporter

    How should the array ph look like? For me: ph = np.vstack((x,sag)).T,

    whereby x is the radial coordinate and sag is the sag of the doe (fresnel lens). Is this correct or should I define the array differently?

  2. Jonas Herbst reporter

    How would I have to define my sag array for a Fresnel lens? My intention (reason why I want to use an array) is to include manufacturing effects in my mask which are the result of a Monte-Carlo simulation. Is it also possible to include a stepped sag profile (multiple layers, not a continous function)?

  3. Log in to comment