Changeset 31635 for trunk/Ohana/src/libdvo
- Timestamp:
- Jun 16, 2011, 11:18:00 AM (15 years ago)
- Location:
- trunk/Ohana/src/libdvo
- Files:
-
- 5 added
- 2 edited
- 17 moved
-
Makefile (modified) (2 diffs)
-
include/convert.h (moved) (moved from trunk/Ohana/src/opihi/include/convert.h ) (1 diff)
-
include/dvo.h (modified) (3 diffs)
-
include/dvodb.h (added)
-
include/libdvo_astro.h (added)
-
src/ImageOps.c (moved) (moved from trunk/Ohana/src/opihi/dvo/ImageOps.c ) (2 diffs)
-
src/ImageSelection.c (moved) (moved from trunk/Ohana/src/opihi/dvo/ImageSelection.c ) (4 diffs)
-
src/LoadImages.c (moved) (moved from trunk/Ohana/src/opihi/dvo/LoadImages.c ) (4 diffs)
-
src/convert.c (moved) (moved from trunk/Ohana/src/opihi/lib.data/convert.c )
-
src/coord_systems.c (moved) (moved from trunk/Ohana/src/opihi/cmd.astro/coord_systems.c ) (1 diff)
-
src/dbBooleanCond.c (moved) (moved from trunk/Ohana/src/opihi/dvo/dbBooleanCond.c ) (1 diff)
-
src/dbCheckStack.c (moved) (moved from trunk/Ohana/src/opihi/dvo/dbCheckStack.c ) (2 diffs)
-
src/dbCmdlineFields.c (moved) (moved from trunk/Ohana/src/opihi/dvo/dbCmdlineFields.c ) (2 diffs)
-
src/dbExtractAverages.c (moved) (moved from trunk/Ohana/src/opihi/dvo/dbExtractAverages.c ) (1 diff)
-
src/dbExtractImages.c (moved) (moved from trunk/Ohana/src/opihi/dvo/dbExtractImages.c ) (1 diff)
-
src/dbExtractMeasures.c (moved) (moved from trunk/Ohana/src/opihi/dvo/dbExtractMeasures.c ) (4 diffs)
-
src/dbFields.c (moved) (moved from trunk/Ohana/src/opihi/dvo/dbFields.c ) (3 diffs)
-
src/dbRPN.c (moved) (moved from trunk/Ohana/src/opihi/dvo/dbRPN.c ) (1 diff)
-
src/dbStackMath.c (moved) (moved from trunk/Ohana/src/opihi/dvo/dbStackMath.c ) (1 diff)
-
src/dbStackOps.c (moved) (moved from trunk/Ohana/src/opihi/dvo/dbStackOps.c ) (1 diff)
-
src/db_utils.c (added)
-
src/dvo_set_catdir.c (added)
-
src/dvo_set_skyregion.c (added)
-
src/match_image.c (moved) (moved from trunk/Ohana/src/opihi/dvo/match_image.c ) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libdvo/Makefile
r31496 r31635 36 36 $(DESTINC)/ps1_ref_defs.h 37 37 38 INCS = $(DEFS) $(DESTINC)/dvo.h $(DESTINC)/autocode.h $(DESTINC)/dvo_util.h 38 INCS = $(DEFS) $(DESTINC)/dvo.h $(DESTINC)/autocode.h $(DESTINC)/dvo_util.h $(DESTINC)/dvodb.h $(DESTINC)/libdvo_astro.h $(DESTINC)/convert.h 39 39 40 40 OBJS = \ … … 73 73 $(SRC)/skyregion_gsc.$(ARCH).o \ 74 74 $(SRC)/skyregion_ops.$(ARCH).o \ 75 $(SRC)/dvo_set_skyregion.$(ARCH).o \ 76 $(SRC)/dvo_set_catdir.$(ARCH).o \ 75 77 $(SRC)/cmf-ps1-v1-alt.$(ARCH).o \ 76 78 $(SRC)/cmf-ps1-sv1-alt.$(ARCH).o \ 77 $(SRC)/dvo_util.$(ARCH).o 79 $(SRC)/dvo_util.$(ARCH).o \ 80 $(SRC)/dbBooleanCond.$(ARCH).o \ 81 $(SRC)/dbCheckStack.$(ARCH).o \ 82 $(SRC)/dbCmdlineFields.$(ARCH).o \ 83 $(SRC)/dbExtractAverages.$(ARCH).o \ 84 $(SRC)/dbExtractMeasures.$(ARCH).o \ 85 $(SRC)/dbExtractImages.$(ARCH).o \ 86 $(SRC)/dbFields.$(ARCH).o \ 87 $(SRC)/dbRPN.$(ARCH).o \ 88 $(SRC)/dbStackMath.$(ARCH).o \ 89 $(SRC)/dbStackOps.$(ARCH).o \ 90 $(SRC)/coord_systems.$(ARCH).o \ 91 $(SRC)/LoadImages.$(ARCH).o \ 92 $(SRC)/ImageSelection.$(ARCH).o \ 93 $(SRC)/ImageOps.$(ARCH).o \ 94 $(SRC)/match_image.$(ARCH).o \ 95 $(SRC)/db_utils.$(ARCH).o \ 96 $(SRC)/convert.$(ARCH).o 97 78 98 79 99 # $(SRC)/dvo_convert_panstarrs.$(ARCH).o -
trunk/Ohana/src/libdvo/include/convert.h
r31607 r31635 1 # include "external.h" 1 // # include "external.h" 2 3 #include <ohana.h> 4 #include <dvo.h> 2 5 3 6 # ifndef CONVERT_H -
trunk/Ohana/src/libdvo/include/dvo.h
r31450 r31635 1 # ifndef DVO_H 2 # define DVO_H 3 1 4 # include <ohana.h> 2 5 # include <gfitsio.h> 3 6 # include <autocode.h> 4 7 5 # i fndef DVO_H6 # define DVO_H8 # include <libdvo_astro.h> 9 # include <dvodb.h> 7 10 8 11 /* DVO table modes */ … … 501 504 SkyList *SkyListChildrenByBounds_List PROTO((SkyList *table, int depth, double Rmin, double Rmax, double Dmin, double Dmax)); 502 505 506 int set_skyregion(double Rs, double Re, double Ds, double De); 507 int get_skyregion (double *Rs, double *Re, double *Ds, double *De); 508 509 void dvo_set_catdir(char *catdir); 510 char *dvo_get_catdir(); 511 503 512 /* dvo-specific sorting functions */ 504 513 void sortave (Average *ave, off_t N); … … 508 517 void sort_regions (SkyRegion *region, off_t N); 509 518 519 #ifdef MOVED_TO_LIBOHANA 520 int print_error(void); 521 int init_error(void); 522 int push_error(char *); 523 #endif 524 510 525 # endif -
trunk/Ohana/src/libdvo/src/ImageOps.c
r31607 r31635 1 # include "dvoshell.h" 1 # include "dvo.h" 2 # include "dvodb.h" 2 3 3 4 void image_subset (Image *image, off_t Nimage, off_t **Subset, off_t *Nsubset, … … 16 17 17 18 if (selection->useDisplay) { 18 if (!GetGraph Data (&graph, NULL, NULL)) {19 if (!GetGraphdata (&graph, NULL, NULL)) { 19 20 gprint (GP_ERR, "region display not available\n"); 20 21 return; -
trunk/Ohana/src/libdvo/src/ImageSelection.c
r31607 r31635 1 # include "dvo shell.h"1 # include "dvo.h" 2 2 3 3 /* db image table */ … … 29 29 } 30 30 31 if ((image = LoadImages (&Nimage)) == NULL) return (FALSE);31 if ((image = LoadImagesDVO (&Nimage)) == NULL) return (FALSE); 32 32 BuildChipMatch (image, Nimage); 33 33 image_subset (image, Nimage, &subset, &Nsubset, selection, tzero, (double) tend - tzero, TimeSelect); … … 38 38 /* free loaded images */ 39 39 void FreeImageSelection () { 40 if (image != NULL) FreeImages (image);40 if (image != NULL) FreeImagesDVO(image); 41 41 if (subset != NULL) free (subset); 42 42 image = NULL; … … 45 45 } 46 46 47 Image *MatchImage (unsigned int time, short int source, unsigned int imageID) {47 Image *MatchImageDVO (unsigned int time, short int source, unsigned int imageID) { 48 48 49 49 int m = -1; -
trunk/Ohana/src/libdvo/src/LoadImages.c
r31607 r31635 1 # include "dvoshell.h" 1 # include "dvo.h" 2 # include "dvodb.h" 2 3 3 4 // XXX: Maybe make this a command line option … … 11 12 static time_t getLastModified(char *filename); 12 13 13 Image *LoadImages (off_t *Nimage) {14 Image *LoadImagesDVO (off_t *Nimage) { 14 15 15 16 int status; … … 20 21 /* VarConfig ("IMAGE_CATALOG", "%s", filename); */ 21 22 22 catdir = GetCATDIR();23 catdir = dvo_get_catdir (); 23 24 sprintf (filename, "%s/Images.dat", catdir); 24 25 … … 88 89 } 89 90 90 void FreeImages (Image *images) {91 void FreeImagesDVO(Image *images) { 91 92 if (!dvoUseImageCache && (images != NULL)) { 92 93 free(images); -
trunk/Ohana/src/libdvo/src/coord_systems.c
r31607 r31635 1 # include "astro.h" 1 # include "dvo.h" 2 # include "libdvo_astro.h" 2 3 3 4 CoordTransform *InitTransform (CoordTransformSystem input, CoordTransformSystem output) { -
trunk/Ohana/src/libdvo/src/dbBooleanCond.c
r31607 r31635 1 # include "dvo shell.h"1 # include "dvo.h" 2 2 3 3 // evaluate the expression in inStack as a boolean; necessary db field values are -
trunk/Ohana/src/libdvo/src/dbCheckStack.c
r31607 r31635 1 # include "dvo shell.h"1 # include "dvo.h" 2 2 3 3 // XXX we are using a fairly bogus set of char values to distinguish a few cases: … … 6 6 // 't', 'T' : value is a temp scalar (upper == float; lower == int) 7 7 // these would be better done using bit values to test for field? temp? float? 8 // 9 10 #define OPIHI_INT 1 8 11 9 12 int dbCheckStack (dbStack *stack, int Nstack, int table, dbField **inFields, int *inNfields) { -
trunk/Ohana/src/libdvo/src/dbCmdlineFields.c
r31607 r31635 1 # include "dvo shell.h"1 # include "dvo.h" 2 2 3 3 // check for 'where' or 'matched to'; return first field after the word, and the value … … 128 128 129 129 Graphdata graphsky; 130 if (!GetGraph Data (&graphsky, NULL, NULL)) {130 if (!GetGraphdata (&graphsky, NULL, NULL)) { 131 131 gprint (GP_ERR, "region display not available\n"); 132 132 return (FALSE); -
trunk/Ohana/src/libdvo/src/dbExtractAverages.c
r31607 r31635 1 # include "dvoshell.h" 1 # include "dvo.h" 2 # include "libdvo_astro.h" 2 3 3 4 /* time concepts */ -
trunk/Ohana/src/libdvo/src/dbExtractImages.c
r31607 r31635 1 # include "dvo shell.h"1 # include "dvo.h" 2 2 3 3 /* time concepts */ -
trunk/Ohana/src/libdvo/src/dbExtractMeasures.c
r31607 r31635 1 # include "dvoshell.h" 1 # include "dvo.h" 2 # include "dvodb.h" 2 3 3 4 // to add a new field to the extractions: … … 358 359 ra = average[0].R - measure[0].dR / 3600.0; 359 360 dec = average[0].D - measure[0].dD / 3600.0; 360 image = MatchImage (measure[0].t, measure[0].photcode, measure[0].imageID);361 image = MatchImageDVO (measure[0].t, measure[0].photcode, measure[0].imageID); 361 362 if (image == NULL) break; 362 363 RD_to_XY (&x, &y, ra, dec, &image[0].coords); … … 374 375 ra = average[0].R - measure[0].dR / 3600.0; 375 376 dec = average[0].D - measure[0].dD / 3600.0; 376 image = MatchImage (measure[0].t, measure[0].photcode, measure[0].imageID);377 image = MatchImageDVO (measure[0].t, measure[0].photcode, measure[0].imageID); 377 378 if (image == NULL) break; 378 379 RD_to_XY (&x, &y, ra, dec, &image[0].coords); … … 449 450 { 450 451 Image *image; 451 image = MatchImage (measure[0].t, measure[0].photcode, measure[0].imageID);452 image = MatchImageDVO (measure[0].t, measure[0].photcode, measure[0].imageID); 452 453 if (image == NULL) break; 453 454 value.Int = image->externID; -
trunk/Ohana/src/libdvo/src/dbFields.c
r31607 r31635 1 # include "dvo shell.h"1 # include "dvo.h" 2 2 3 3 void dbFreeFields (dbField *fields, int Nfields) { … … 240 240 return (TRUE); 241 241 } 242 242 243 243 int ParseAverageField (dbField *field, char *fieldName) { 244 244 … … 335 335 } 336 336 337 337 338 int ParseImageField (dbField *field, char *fieldName) { 338 339 -
trunk/Ohana/src/libdvo/src/dbRPN.c
r31607 r31635 1 # include "dvo shell.h"1 # include "dvo.h" 2 2 # define DUMPSTACK 0 3 3 -
trunk/Ohana/src/libdvo/src/dbStackMath.c
r31607 r31635 1 # include "dvo shell.h"1 # include "dvo.h" 2 2 3 3 static int NallocBinary = 0; -
trunk/Ohana/src/libdvo/src/dbStackOps.c
r31607 r31635 1 # include "dvo shell.h"1 # include "dvo.h" 2 2 3 3 void dbInitStack (dbStack *stack) { -
trunk/Ohana/src/libdvo/src/match_image.c
r31607 r31635 1 # include "dvo shell.h"1 # include "dvo.h" 2 2 3 3 off_t match_image (Image *image, off_t Nimage, unsigned int T, short int S) {
Note:
See TracChangeset
for help on using the changeset viewer.
