Feature/astrometry for testing - #1
Conversation
- Implemented astrometric error calculations based on photometric precision in `photometry.cpp`. - Updated `lightcurveGenerator.cpp` and `pllxLightcurveGeneratorMultiple.cpp` to handle centroid information for multiple sources. - Introduced new parameters for astrometry in `readParamfile.cpp` and `structures.h` to control astrometric features. - Added documentation for new astrometric functionalities and parameter configurations.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: AmberLee2427 <26697369+AmberLee2427@users.noreply.github.com>
Co-authored-by: AmberLee2427 <26697369+AmberLee2427@users.noreply.github.com>
Co-authored-by: AmberLee2427 <26697369+AmberLee2427@users.noreply.github.com>
Co-authored-by: AmberLee2427 <26697369+AmberLee2427@users.noreply.github.com>
Guard against division by zero in astrometry calculations
…flux ratio calculation
Co-authored-by: AmberLee2427 <26697369+AmberLee2427@users.noreply.github.com>
|
It's tomorrow and I did in fact drop a bracket in |
Add v2.1.0 release documentation for astrometry feature
…tion build process
…ml for reproducible CI builds; add .gitkeep to documentation static directory.
|
lightcurves look normal without astrometry on |
- Extract gulls version from executable output - v2.1.0 validates minimal lens-frame columns (x_centroid, y_centroid, etc.) - v2.2.0+ validates full sky-frame columns (true_N_centroid_mas, etc.) - Skip astrometry plotting for v2.1.0 (lens-frame only) Co-authored-by: AmberLee2427 <26697369+AmberLee2427@users.noreply.github.com>
Co-authored-by: AmberLee2427 <26697369+AmberLee2427@users.noreply.github.com>
Make smoke test astrometry validation version-aware for v2.1.0 vs v2.2.0+
|
bugger. exited with -11. I feel like I've had this error before but I don't know what it means. This might take me a while to fix |
|
I think it's PSF dramas. It might work for your run set-up. |
…culation Co-authored-by: AmberLee2427 <26697369+AmberLee2427@users.noreply.github.com>
…ed; normalize base paths in parameter file reading
Fix segfault from incorrect loop bound in photometry companion flux calculation
|
It was a bad loop. Just me miss-understanding parameters in Event. I merged with your dev and my CI was not happy. I'm just getting them to play nice now. |
Co-authored-by: AmberLee2427 <26697369+AmberLee2427@users.noreply.github.com>
|
Missing bracket again. I hate C. |
|
Tentatively, I think this is good now. It's going to need a more complete sample and a sanity check from Matt. Smoke Test ResultsThis release was validated with automated smoke tests. The plots below show sample lightcurves generated by the different Gulls executables: smoke_croin_0_0_0.all_astrometry_plot.pngsmoke_croin_0_0_0.all_plot.pngsmoke_croin_binary_0_0_0.det_astrometry_plot.pngsmoke_croin_binary_0_0_0.det_plot.pngsmoke_fish_0_0_0.all_astrometry_plot.pngsmoke_fish_0_0_0.all_plot.pngsmoke_fish_binary_0_0_0.det_astrometry_plot.pngsmoke_fish_binary_0_0_0.det_plot.pngsmoke_std_0_0_0.all_astrometry_plot.pngsmoke_std_0_0_0.all_plot.pngsmoke_std_binary_0_0_0.det_astrometry_plot.pngsmoke_std_binary_0_0_0.det_plot.png |












See
docuentation/source/astrometry.rstfor details on what was added and how to run it.I don't think this works with multi-lenses and multi-sources turned on at the same time.
I haven't run a smoke test but I'm falling asleep, so it will have to wait until tomorrow. The math looks correct to read; the centroids are blended and the noise follows Gould & Yee (2014). The syntax might be cooked, but that should be obvious because something won't run properly.
If you run a quick set, we can look closer for any tomfoolery. I'll run a very quick smoke test tomorrow.
Let me know if you have merge dramas with your local branch.
Pull request overview
This PR implements basic astrometry functionality for the gulls microlensing simulator. The implementation adds the ability to compute and output centroid positions of lensed sources in the lens frame, including proper error modeling based on photometric precision and seeing conditions. The feature enables astrometric simulations using the VBM (Variable Brightness Method) low-level functions with noise approximations from Gould & Yee (2014).
Key changes:
ASTROMETRY_ONandASTROMETRIC_SYS_FLOOR) to control astrometry calculationsAsrc1/Asrc2variables tomusrc1/musrc2for consistency with magnification nomenclatureShow a summary per file
documentation/