-
Notifications
You must be signed in to change notification settings - Fork 20
add loadpremadeflags #1452
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
add loadpremadeflags #1452
Conversation
|
Can you please point me to an example config file and bash run script which you use to run the referenced script in pwg-scripts? Is this basically just used to cut on an existing flag? Why do you need to move that flag into proc_aman and save it? |
|
This is the example config file. This is mainly used for combined mask later part of preprocess, so I think we need to move flag into proc_aman. (But I might be wrong, and there is a better way) For example, we would like to use it as PCA mask. Thanks! |
Could we just modify the Then in the |
|
Thanks for the comment, let me think and try that. |
|
This will not save your flags in the preprocess h5 archive. If you would like to do that then probably your initial approach is preferable. Potentially it could be extended to a more general process called "store_fields" or something similar which could be used to move arbitrary fields from aman to proc_aman to save in the h5 archive. |
|
Planet mapmaker have not saved the flags in the same way as CMB pipeline, but I would like to have that in the future. So can I proceed my initial approach? and yes, I think this preprocess has a expandability in the future, but I would like to leave its extention now. |
|
@msilvafe Do you have any further comment/question/request? |
msilvafe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's just add some description in the docstring for the LoadPremadeFlags class about what this is used for (planet mapmaking) and how its typically used but otherwise based on the discussion in this PR it seems most sensible to leave it as is for now. Thanks.
661ff6d to
316afb9
Compare
This PR adds new class of preprocess, which loads flags that made before and stored in aman. This is needed for running simulation of planet mapmaker that Sam and I have developed because it needs flags for a simlated planet that cannot be calculated in current preprocess. This is a code in pwg-script corresponding to this update.
Current way is
Since the flags for the simlated planet is needed for these preprocess (e.g., PCA filter) in step 3, I would like to add this.
There could be more smart way, so please let me know if you come up with more smart way.