Changeset 37068 for branches/eam_branches/ipp-ops-20130712/ppSkycell
- Timestamp:
- Jul 17, 2014, 12:36:19 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-ops-20130712
- Files:
-
- 7 edited
-
. (modified) (1 prop)
-
ppSkycell (modified) (1 prop)
-
ppSkycell/src (modified) (1 prop)
-
ppSkycell/src/ppSkycell.h (modified) (1 diff)
-
ppSkycell/src/ppSkycellArguments.c (modified) (2 diffs)
-
ppSkycell/src/ppSkycellCamera.c (modified) (2 diffs)
-
ppSkycell/src/ppSkycellData.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-ops-20130712
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-ops-20130712/ppSkycell
- Property svn:mergeinfo changed
/trunk/ppSkycell merged: 36655
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-ops-20130712/ppSkycell/src
- Property svn:mergeinfo deleted
-
branches/eam_branches/ipp-ops-20130712/ppSkycell/src/ppSkycell.h
r36359 r37068 10 10 typedef struct { 11 11 psString imagesName; // Filename with images 12 psString wcsrefName; // Filename with WCS references 12 13 psString wcsrefName; // Filename with WCS references 13 14 psString outRoot; // Output root name -
branches/eam_branches/ipp-ops-20130712/ppSkycell/src/ppSkycellArguments.c
r36359 r37068 52 52 psMetadataAddStr(arguments, PS_LIST_TAIL, "-wcsref", 0, "Filename with WCS references", NULL); 53 53 psMetadataAddS16(arguments, PS_LIST_TAIL, "-exptimeOrder", 0, "Order of exptime scaling", 0); 54 psMetadataAddStr(arguments, PS_LIST_TAIL, "-wcsref", 0, "Filename with WCS references", NULL); 54 55 if (argc == 1 || !psArgumentParse(arguments, &argc, argv) || argc != 2) { 55 56 usage(argv[0], arguments, data); … … 59 60 data->wcsrefName = psMemIncrRefCounter(psMetadataLookupStr(NULL, arguments, "-wcsref")); 60 61 data->exptimeOrder = psMetadataLookupS16(NULL,arguments,"-exptimeOrder"); 62 63 data->wcsrefName = psMemIncrRefCounter(psMetadataLookupStr(NULL, arguments, "-wcsref")); 61 64 62 65 data->outRoot = psStringCopy(argv[1]); -
branches/eam_branches/ipp-ops-20130712/ppSkycell/src/ppSkycellCamera.c
r36359 r37068 73 73 } 74 74 75 psArray *wcsref = NULL; // Names of WCS reference images 76 if (data->wcsrefName) { 77 wcsref = fileList(data->wcsrefName); 78 if (!wcsref) { 79 psError(psErrorCodeLast(), false, "No WCSrefs provided."); 80 psFree(images); 81 psFree(masks); 82 return(false); 83 } 84 if (wcsref->n != data->numInputs) { 85 psError(PS_ERR_BAD_PARAMETER_SIZE, true, "Number of images (%ld) and wcsrefs (%ld) do not match", 86 images->n, wcsref->n); 87 psFree(images); 88 psFree(masks); 89 psFree(wcsref); 90 return(false); 91 } 92 } 93 75 94 psMetadataAddStr(data->config->arguments, PS_LIST_TAIL, "OUTPUT", 0, "Output root", data->outRoot); 76 95 … … 93 112 } 94 113 } 114 115 if (data->wcsrefName) { 116 fileArguments("WCSREF", wcsref->data[i], "Name of the WCS reference", data->config); 117 pmFPAfile *wcsref = pmFPAfileDefineFromArgs(&status, data->config, "PPSKYCELL.WCSREF", "WCSREF"); 118 if (!status || !wcsref) { 119 psError(PS_ERR_IO, false, "Failed to build file from PPSKYCELL.WCSREF"); 120 return(false); 121 } 122 /* if (!pmFPAfileBindFromArgs(&status, image, data->config, "PPSKYCELL.WCSREF", "WCSREF") || !status) { */ 123 /* psError(PS_ERR_IO, false, "Failed to build file from PPSKYCELL.WCSREF"); */ 124 /* return false; */ 125 /* } */ 126 } 127 95 128 } 96 129 -
branches/eam_branches/ipp-ops-20130712/ppSkycell/src/ppSkycellData.c
r36359 r37068 15 15 psFree(data->imagesName); 16 16 psFree(data->wcsrefName); 17 psFree(data->wcsrefName); 17 18 psFree(data->outRoot); 18 19 psFree(data->config); … … 27 28 28 29 data->imagesName = NULL; 30 data->wcsrefName = NULL; 29 31 data->wcsrefName = NULL; 30 32 data->outRoot = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.
