Changeset 37768
- Timestamp:
- Dec 22, 2014, 5:49:23 PM (12 years ago)
- Location:
- tags/ipp-pv3-20140717
- Files:
-
- 2 edited
-
ippconfig/recipes/ppImage.config (modified) (1 diff)
-
psModules/src/detrend/pmDetrendDB.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-pv3-20140717/ippconfig/recipes/ppImage.config
r36169 r37768 164 164 165 165 DETREND.CONSTRAINTS METADATA 166 END 167 168 # Detrend database options 169 170 DETREND.LOCATIONS METADATA 171 XY01 STR stsci00.0 172 XY02 STR stsci00.1 173 XY03 STR stsci00.2 174 XY04 STR stsci01.0 175 XY05 STR stsci01.1 176 XY06 STR stsci01.2 177 178 XY10 STR stsci02.0 179 XY11 STR stsci02.1 180 XY12 STR stsci02.2 181 XY13 STR stsci03.0 182 XY14 STR stsci03.1 183 XY15 STR stsci03.2 184 XY16 STR stsci04.0 185 XY17 STR stsci04.1 186 187 XY20 STR stsci04.2 188 XY21 STR stsci05.0 189 XY22 STR stsci05.1 190 XY23 STR stsci05.2 191 XY24 STR stsci06.0 192 XY25 STR stsci06.1 193 XY26 STR stsci06.2 194 XY27 STR stsci07.0 195 196 XY30 STR stsci07.1 197 XY31 STR stsci07.2 198 XY32 STR stsci08.0 199 XY33 STR stsci08.1 200 XY34 STR stsci08.2 201 XY35 STR stsci09.0 202 XY36 STR stsci09.1 203 XY37 STR stsci09.2 204 205 XY40 STR stsci10.0 206 XY41 STR stsci10.1 207 XY42 STR stsci10.2 208 XY43 STR stsci11.0 209 XY44 STR stsci11.1 210 XY45 STR stsci11.2 211 XY46 STR stsci12.0 212 XY47 STR stsci12.1 213 214 XY50 STR stsci12.2 215 XY51 STR stsci13.0 216 XY52 STR stsci13.1 217 XY53 STR stsci13.2 218 XY54 STR stsci14.0 219 XY55 STR stsci14.1 220 XY56 STR stsci14.2 221 XY57 STR stsci15.0 222 223 XY60 STR stsci15.1 224 XY61 STR stsci15.2 225 XY62 STR stsci16.0 226 XY63 STR stsci16.1 227 XY64 STR stsci16.2 228 XY65 STR stsci17.0 229 XY66 STR stsci17.1 230 XY67 STR stsci17.2 231 232 XY71 STR stsci18.2 233 XY72 STR stsci18.0 234 XY73 STR stsci18.1 235 XY74 STR stsci19.2 236 XY75 STR stsci19.0 237 XY76 STR stsci19.1 166 238 END 167 239 -
tags/ipp-pv3-20140717/psModules/src/detrend/pmDetrendDB.c
r36834 r37768 356 356 psTrace("psModules.detrend", 5, "detrend file: %s\n", result); 357 357 358 char *is_nebulous = strstr(result,"neb://"); 359 if (is_nebulous) { // This file matches the nebulous string 360 psString truncated = psStringCopy(is_nebulous + 6); 361 // printf("A: %s %s\n",result,truncated); 362 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes,"PPIMAGE"); 363 psMetadata *detloc = psMetadataLookupMetadata(NULL, recipe, "DETREND.LOCATIONS"); 364 if (detloc) { // This exists, so we have the information. 365 psString location = psMetadataLookupStr(NULL, detloc,classID); 366 // printf("B: %s %s\n", classID,location); 367 if (location) { // Found a location 368 psString ext_key = strstr(truncated,"/"); // Find the first '/' 369 // printf("C: %s\n", ext_key); 370 if (ext_key) { 371 psString copyBecauseReasons = psStringCopy(ext_key); 372 psStringPrepend(©BecauseReasons,"neb://%s",location); 373 // printf("D: %s\n",copyBecauseReasons); 374 psFree(result); // Yes, because we are going to reallocate a clean copy of cBR to this object. 375 result = psStringCopy(copyBecauseReasons); 376 // psFree(ext_key); // No, because this is just a pointer into some other memory space. 377 psTrace("psModules.detrend", 5, "altered detrend file: %s\n", result); 378 psFree(copyBecauseReasons); // Yes, because we copied this to the output object, and so we don't need this any more. 379 } 380 // psFree(location); // Don't free this because the string lookup isn't a copy, so it deletes it from the config structure entirely. 381 } 382 } 383 // psFree(is_nebulous); // No, because this is just a pointer into some other memory space. 384 psFree(truncated); 385 } 386 387 358 388 psFree (answer); 359 389 psFree (pipe);
Note:
See TracChangeset
for help on using the changeset viewer.
