Changeset 35249
- Timestamp:
- Mar 6, 2013, 4:00:16 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130306/Ohana/src/opihi/dvo
- Files:
-
- 4 edited
-
dvo_client.c (modified) (2 diffs)
-
mextract.c (modified) (8 diffs)
-
mmatch.c (modified) (1 diff)
-
mmextract.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130306/Ohana/src/opihi/dvo/dvo_client.c
r33963 r35249 39 39 remove_argument (N, argc, argv); 40 40 } 41 if (!HOST_ID) { 42 fprintf (stderr, "ERROR: dvo_client requires a -hostID value\n"); 43 exit (3); 44 } 41 45 42 46 HOSTDIR = NULL; … … 45 49 HOSTDIR = strcreate (argv[N]);; 46 50 remove_argument (N, argc, argv); 51 } 52 if (!HOSTDIR) { 53 fprintf (stderr, "ERROR: dvo_client requires a -hostdir value\n"); 54 exit (3); 47 55 } 48 56 -
branches/eam_branches/ipp-20130306/Ohana/src/opihi/dvo/mextract.c
r35246 r35249 1 1 # include "dvoshell.h" 2 3 int SaveImageMetadata () {4 5 }6 2 7 3 int field_needs_images (dbField *field) { … … 20 16 if (field->ID == MEAS_CENTER_OFFSET) return TRUE; // 0.5*NX, 0.5*NY 21 17 if (field->ID == MEAS_EXPNAME_AS_INT) return TRUE; // expname (or as int) 22 mean airmass;18 if (field->ID == MEAS_AIRMASS) return TRUE; // airmass 23 19 return FALSE; 24 20 } … … 56 52 remove_argument (N, &argc, argv); 57 53 VERBOSE = TRUE; 54 } 55 56 char *imageMetadataFile = FALSE; 57 if ((N = get_argument (argc, argv, "-image-metadata"))) { 58 remove_argument (N, &argc, argv); 59 imageMetadataFile = strcreate (argv[N]); 60 remove_argument (N, &argc, argv); 58 61 } 59 62 … … 89 92 90 93 // init locally static variables (time refs) 91 dbExtractMeasuresInit(); 94 // HOST_ID tells library if operation is on remote client or not 95 dbExtractMeasuresInit(HOST_ID); 92 96 93 97 // command-line is of the form: mextract field,field, field [where (field op value)...] … … 149 153 150 154 char *filename = abspath("image.metadata.fits", DVO_MAX_PATH); 151 SaveImageMetadata(filename, image, Nimage);155 ImageMetadataSave (filename, image, Nimage); 152 156 argc += 2; 153 157 argv[argc-2] = strcreate ("-image-metadata"); … … 171 175 } 172 176 173 if (REMOTE_CLIENT) { 174 if (loadImages) { 175 ImageMetadata = *imageMetadata = LoadImageMetadata (filename, &Nimages); 176 if (!imageMetadata) goto escape; 177 SetImageMetadata (imageMetadata, Nimages); 178 } else { 179 if (loadImages && !SetImageSelection (TRUE, selection)) goto escape; 177 if (loadImages) { 178 if (HOST_ID) { 179 if (!SetImageMetadataSelection (imageMetadataFile)) goto escape; 180 } else { 181 if (!SetImageSelection (TRUE, selection)) goto escape; 182 } 180 183 } 181 184 … … 294 297 free (stack); 295 298 FreeImageSelection (); 299 FreeImageMetadataSelection (); 296 300 SkyListFree (skylist); 297 301 FreeSkyRegionSelection (selection); … … 307 311 free (stack); 308 312 FreeImageSelection (); 313 FreeImageMetadataSelection (); 309 314 SkyListFree (skylist); 310 315 FreeSkyRegionSelection (selection); -
branches/eam_branches/ipp-20130306/Ohana/src/opihi/dvo/mmatch.c
r35244 r35249 73 73 74 74 // init locally static variables (time refs) 75 dbExtractMeasuresInit(); 75 // HOST_ID tells library if operation is on remote client or not 76 dbExtractMeasuresInit(HOST_ID); 76 77 77 78 // this does all the work of re-packaging the command, calling it on the remote machines, then loading in the results -
branches/eam_branches/ipp-20130306/Ohana/src/opihi/dvo/mmextract.c
r35244 r35249 46 46 47 47 // init locally static variables (time refs) 48 dbExtractMeasuresInit( );48 dbExtractMeasuresInit(HOST_ID); 49 49 50 50 // parse skyregion options
Note:
See TracChangeset
for help on using the changeset viewer.
