AOtools / soapy

A Python Adaptive Optics Simulation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Atmosphere save phase screens not working

fanpeng-kong opened this issue · comments

Hi,

I am trying to save the phase screens generated from a configuration file but got a key error while calling the atmosphere.saveScrns(DIR) method:

hdu = fits.PrimaryHDU(self.wholeScrns[scrn])

The idea is to load these phase screens later for simulation so I know the correspondence of the measured WFS frames, slopes etc.

Alternatively, is there a way to specify to save the generated phase screens just like saveSlpes and saveWfsFrames parameters in the configuration file?

Hi @fanpeng-kong

Interesting.... I'll try and take a look in the next couple of days. There isn't currently a flag to save the phase screens but that sounds like a great idea to implement for a future release.