Changeset 42840
- Timestamp:
- May 9, 2025, 9:46:44 AM (12 months ago)
- Location:
- trunk/psastro
- Files:
-
- 5 edited
-
. (modified) (1 prop)
-
src/psastroDefineFiles.c (modified) (1 diff)
-
src/psastroLoadRefstars.c (modified) (1 diff)
-
src/psastroTIODataSave.c (modified) (1 diff)
-
src/psastroTIOParseCamera.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20230313/psastro (added) merged: 42627,42709 /tags/ipp-ops-20220705-ippref/psastro (added) merged: 42270
- Property svn:mergeinfo changed
-
trunk/psastro/src/psastroDefineFiles.c
r36837 r42840 61 61 return false; 62 62 } 63 psTime *endtime = psTimeFromString (KHendDate, PS_TIME_TAI); 63 // psTime *endtime = psTimeFromString (KHendDate, PS_TIME_TAI); 64 // 'endtime' and 'time' must be in the same units 65 psTime *endtime = psTimeFromString (KHendDate, time->type); 64 66 if (!endtime) { 65 67 psError (PM_ERR_CONFIG, false, "KH.CORRECT.APPLY requested, KH.CORRECT.ENDDATE has an invalid date/time"); -
trunk/psastro/src/psastroLoadRefstars.c
r39926 r42840 139 139 psStringAppend (&getstarCommand, " -region %f %f %f %f -o %s", RAmin, DECmin, RAmax, DECmax, tempFile); 140 140 psTrace ("psastro", 3, "%s\n", getstarCommand); 141 142 // add the MJD for the exposure EPOCH 143 bool ProperMotionApply = psMetadataLookupF32 (&status, recipe, "DVO.GETSTAR.PM.APPLY"); 144 if (ProperMotionApply) { 145 pmFPAfile *input = psMetadataLookupPtr (NULL, config->files, source); // we've already done this before 146 myAssert (input, "oops"); 147 148 psTime *time = psMetadataLookupPtr(NULL, input->fpa->concepts, "FPA.TIME"); 149 if (time->sec == 0 && time->nsec == 0) { 150 psError (PM_ERR_CONFIG, false, "Exposure EPOCH proper motion correction requested, but date/time of exposure not found"); 151 return false; 152 } 153 psF64 EpochMJD = psTimeToMJD(time); 154 psStringAppend (&getstarCommand, " -epoch-mjd %lf", EpochMJD); 155 } 141 156 142 157 psLogMsg("psastro", PS_LOG_INFO, "getstar command: %s", getstarCommand); -
trunk/psastro/src/psastroTIODataSave.c
r41895 r42840 46 46 pmFPAfileActivate (config->files, false, NULL); 47 47 pmFPAfileActivate (config->files, true, "PSASTRO.OUTPUT"); 48 pmFPAfileActivate (config->files, true, "PSPHOT.OUTPUT.CFF"); 48 49 49 50 pmFPAview *view = pmFPAviewAlloc (0); -
trunk/psastro/src/psastroTIOParseCamera.c
r41895 r42840 31 31 output->save = true; 32 32 33 // check if the user wants CFF output 34 { 35 // select the current recipe 36 psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, PSASTRO_RECIPE); 37 if (!recipe) { 38 psError(PSASTRO_ERR_CONFIG, false, "Can't find PSASTRO recipe!\n"); 39 return false; 40 } 41 42 bool writeCff = psMetadataLookupBool (&status, recipe, "PSASTRO.SAVE.CFF"); 43 if (writeCff) { 44 pmFPAfile *file = pmFPAfileDefineOutputFromFile (config, input, "PSPHOT.OUTPUT.CFF"); 45 if (!file) { 46 psError (PS_ERR_IO, false, "Can't find the output cff file definition"); 47 return NULL; 48 } 49 if (file->type != PM_FPA_FILE_CFF) { 50 psError(PS_ERR_IO, true, "%s is not of type %s", "PSPHOT.OUTPUT.CFF", pmFPAfileStringFromType (PM_FPA_FILE_CFF)); 51 return NULL; 52 } 53 file->save = true; 54 } 55 } 33 56 34 57 // Chip selection: turn on only the chips specified (option is not required)
Note:
See TracChangeset
for help on using the changeset viewer.
