Skip to content
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

Modify reduce pipeline to simulate noise and foregrounds without CMB #4

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

keskitalo
Copy link
Contributor

@keskitalo keskitalo commented Feb 7, 2024

To replace the signal with a simulation, add these command line options:

    --skymodel_sim skymodel_cache/sky_model_857GHz_nside2048_fwhm10.0.fits \
    --skymodelderiv_sim skymodel_cache/sky_model_deriv_857GHz_nside2048_fwhm10.0.fits \
    --MC_start 0 \
    --MC_count 1 \
    --simulate_noise \
    --simulate_signal \
    --freq_sigma 0 \
    --out sim_0000

@keskitalo
Copy link
Contributor Author

@Helbouha have you had a chance to test these modifications?

@Helbouha
Copy link
Collaborator

@keskitalo My test is failing with the following error: KeyError: 'Data buffer (nor alias) theta_857-1 does not exist', more specifically at this line

@keskitalo
Copy link
Contributor Author

I don't quite understand the source of the failure. I added a critical fix to an unrelated issue. Can you please pull, recompile and run with --simulate_signal added to the earlier options.

@Helbouha
Copy link
Collaborator

I'm getting an Exception occurred: "Cannot load sky model, no file specified.", despite specifying skymodel in the options. I see in the log file however that skymodel_sim=None, skymodelderiv_sim=None could that be the issue?

@keskitalo
Copy link
Contributor Author

My instructions above have a typo in them... Instead of

    --skymodel skymodel_cache/sky_model_857GHz_nside2048_fwhm10.0.fits \
    --skymodelderiv skymodel_cache/sky_model_deriv_857GHz_nside2048_fwhm10.0.fits \

You need

    --skymodel_sim skymodel_cache/sky_model_857GHz_nside2048_fwhm10.0.fits \
    --skymodelderiv_sim skymodel_cache/sky_model_deriv_857GHz_nside2048_fwhm10.0.fits \

I have no clue how the error got in there.

@keskitalo
Copy link
Contributor Author

Are we ready to merge this PR?

@Helbouha
Copy link
Collaborator

Helbouha commented Mar 5, 2024

Yes! It works fine, no objections on my part!

@keskitalo keskitalo merged commit c59f090 into update_cal Mar 5, 2024
@keskitalo keskitalo deleted the sim_without_cmb branch March 5, 2024 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants