Skip to content

A method to solve PHYSICAL propagation problem in sci camera #142

Description

@jsxiaxusheng

In sh_8x8.yaml configuration, if using PHYSICAL in sci camera setting, the output detector PSF will be blank.

I found that that:

The returning variable of self.los.makePhase() method is efield, but the calcFocalPlane() function only use self.los.phase to calculate the intensity on the detector.

Therefore I suggest this change in SCI.py:

Line 99

self.interp_efield = numpy.zeros((self.FOVPxlNo, self.FOVPxlNo), CDTYPE)

Line 136-140

numbalib.bilinear_interp(
self.los.EField, self.interp_coords, self.interp_coords, self.interp_efield,
self.thread_pool, bounds_check=False)
self.EField_fov = self.interp_efield * self.scaledMask

I use this change solve the problem (but with no comlete testing).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions