-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model to component rendering and recovery #95
Comments
This is brilliant. I was thinking of |
Since the next thing on my to-do list is to provide increased |
If you set your thresholds (eg. rmsfactor or the stopping threshold for clean) too low this is exactly what would happen. This is why there is the |
This should make for prettier images but it may also result in flux suppression. Note that sensible values for Another reason for rendering the model to components before making restored images is to smooth the model a bit by making |
Just found a bug here viz. the fit will fall over with a LinAlgError if there are completely flagged bands and |
I'm probably exposing my lack of understanding of something quite fundamental here, but I'm a bit confused about If I've understood correctly then because I have set As an aside, I'm assuming |
I meant you will have to reduce it to less than nband (which results in perfect interpolation) if you want some spectral smoothing. If one of the bands are completely flagged then you will get a Singular Matrix error if you set
Exactly. You can rerun the init worker with a smaller cpi without affecting anything else if you need to go finer. Overwriting is safe since it produces a different dataset than the grid worker.
Nice catch, I'll update the docstring. It defaults to the number of output times. The thinking here is that you may want to smooth/interpolate in time (eg. when imaging and subtracting the sun). This is a highly experimental and untested feature |
I don't think this is going to plan. 😅
Data has blown up from the off following restoration of best model and resumption of spotless with the following.
I'm guessing the |
I doubt that. It's weird that it starts out with a peak residual of 4e36. The MFS model should get written out by the grid worker. Can please check if that looks sensible? I think you may also need to pass the |
Just writing this up for posterity. It is possible to degrade the model when fiddling with optimization parameters or if something goes wrong and the deconvolution algorithm starts diverging. For this reason pfb keeps track of the model corresponding to the MFS residual with the minimum RMS and saves it as MODEL_BEST in the dds. Thus you should always be able to reset to the point the reduction which had the minimum RMS (I am open to other criteria that we may want to track). To do so, render the model to components using the
model2comps
worker eg.This will take the current best model and save it in a dataset which in this case would be called
out/test_I_main_model_best.mds
based in the default naming conventions (and I am just realizing that the default naming convention is a bit inflexible for this task and will provide an option to give an explicit output name). When--nbasisf
is set to the number of bands the interpolation will be exact (i.e. no smoothing). The resulting model can be transferred during the grid step by settingIt is also the expected model format of the
fastim
worker and there is an experimental branch of QuartiCal which can degrid this model on the fly. @IanHeywood hoping this will allow you to recover from the catastrophic divergence you experienced. We could conceive of doing this sort of backup more routinely (at every major iteration maybe?)The text was updated successfully, but these errors were encountered: