Changeset 42073 for branches/eam_branches/ipp-20211108
- Timestamp:
- Feb 28, 2022, 10:52:06 AM (4 years ago)
- Location:
- branches/eam_branches/ipp-20211108/Ohana/src/relphot
- Files:
-
- 3 added
- 5 edited
-
Makefile (modified) (2 diffs)
-
include/lensing.h (added)
-
include/relphot.h (modified) (2 diffs)
-
src/args.c (modified) (1 diff)
-
src/lensing.c (added)
-
src/reload_catalogs.c (modified) (2 diffs)
-
src/relphot_images.c (modified) (1 diff)
-
src/setXradAverages.c (added)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20211108/Ohana/src/relphot/Makefile
r41647 r42073 54 54 $(SRC)/save_images.$(ARCH).o \ 55 55 $(SRC)/MagResidSave.$(ARCH).o \ 56 $(SRC)/setXradAverages.$(ARCH).o \ 57 $(SRC)/lensing.$(ARCH).o \ 56 58 $(SRC)/synthetic_mags.$(ARCH).o \ 57 59 $(SRC)/plot_scatter.$(ARCH).o \ … … 117 119 $(SRC)/save_images.$(ARCH).o \ 118 120 $(SRC)/MagResidSave.$(ARCH).o \ 121 $(SRC)/setXradAverages.$(ARCH).o \ 122 $(SRC)/lensing.$(ARCH).o \ 119 123 $(SRC)/load_catalogs.$(ARCH).o \ 120 124 $(SRC)/reload_catalogs.$(ARCH).o \ -
branches/eam_branches/ipp-20211108/Ohana/src/relphot/include/relphot.h
r41672 r42073 486 486 char *OUTROOT; 487 487 char *UPDATE_CATFORMAT; 488 int UPDATE_XRAD; 488 489 int PLOTDELAY; 489 490 int UpdateAverages; … … 877 878 878 879 int MagResidSave(char *filename, Catalog *catalog); 880 int setXradAverages (Catalog *catalog); 879 881 880 882 void ResetAverageAndMeasure (Catalog *catalog); -
branches/eam_branches/ipp-20211108/Ohana/src/relphot/src/args.c
r41891 r42073 259 259 UPDATE_CATFORMAT = strcreate (argv[N]); 260 260 remove_argument (N, &argc, argv); 261 } 262 263 UPDATE_XRAD = FALSE; 264 if ((N = get_argument (argc, argv, "-update-xrad-average"))) { 265 remove_argument (N, &argc, argv); 266 UPDATE_XRAD = TRUE; 261 267 } 262 268 -
branches/eam_branches/ipp-20211108/Ohana/src/relphot/src/reload_catalogs.c
r41671 r42073 55 55 56 56 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT; 57 // if we want to update the average XRAD values in lensobj, need to load lensobj and lensing 58 if (UPDATE_XRAD || UPDATE_CATFORMAT) { 59 catalog.catflags |= DVO_LOAD_LENSING | DVO_LOAD_LENSOBJ; 60 } 57 61 // if we are going to update the format, we should update all tables 58 62 if (UPDATE_CATFORMAT) { 59 catalog.catflags |= DVO_LOAD_ LENSING | DVO_LOAD_LENSOBJ | DVO_LOAD_STARPAR | DVO_LOAD_GALPHOT;63 catalog.catflags |= DVO_LOAD_STARPAR | DVO_LOAD_GALPHOT; 60 64 } 61 65 catalog.Nsecfilt = GetPhotcodeNsecfilt (); // set the desired number in case we need to create the catalog … … 87 91 setMrelFinal (&catalog, FALSE); 88 92 TIMESTAMP(time6); 93 94 if (UPDATE_XRAD) { 95 setXradAverages (&catalog); 96 } 89 97 90 98 // modify the output format as desired (ignore current format on disk) -
branches/eam_branches/ipp-20211108/Ohana/src/relphot/src/relphot_images.c
r41664 r42073 133 133 // if (GRID_ZEROPT) dump_grid (); 134 134 135 setMcal (catalog); 136 setMmos (catalog); 137 setMgrp (catalog); 135 138 MARKTIME("-- finalize Mcal values: %f sec\n", dtime); 136 139
Note:
See TracChangeset
for help on using the changeset viewer.
