Changeset 35852 for trunk/ppSkycell/src/ppSkycellCamera.c
- Timestamp:
- Jul 24, 2013, 4:56:48 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/ppSkycell/src/ppSkycellCamera.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSkycell/src/ppSkycellCamera.c
r34800 r35852 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
Note:
See TracChangeset
for help on using the changeset viewer.
