- Timestamp:
- Mar 17, 2010, 2:52:38 PM (16 years ago)
- Location:
- branches/eam_branches/largefiles.20100314/Ohana/src/relastro
- Files:
-
- 10 edited
-
include/relastro.h (modified) (10 diffs)
-
src/ImageOps.c (modified) (16 diffs)
-
src/MosaicOps.c (modified) (10 diffs)
-
src/UpdateChips.c (modified) (2 diffs)
-
src/UpdateMeasures.c (modified) (1 diff)
-
src/UpdateMosaic.c (modified) (1 diff)
-
src/UpdateObjects.c (modified) (5 diffs)
-
src/bcatalog.c (modified) (2 diffs)
-
src/load_images.c (modified) (1 diff)
-
src/select_images.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/largefiles.20100314/Ohana/src/relastro/include/relastro.h
r24308 r27312 140 140 char *GetPhotnamebyCode PROTO((PhotCodeData *photcodes, int code)); 141 141 void InterpolateGrid PROTO((float *buffer, int Nx, int Ny, Coords *ccd, Coords *gcoords)); 142 int *SelectRefMosaic PROTO((Mosaic **refmosaic, int *Nimage));142 off_t *SelectRefMosaic PROTO((Mosaic **refmosaic, off_t *Nimage)); 143 143 int args PROTO((int argc, char **argv)); 144 144 int bcatalog PROTO((Catalog *subcatalog, Catalog *catalog)); … … 153 153 void findImages PROTO((Catalog *catalog, int Ncatalog)); 154 154 int findMosaics PROTO((Catalog *catalog, int Ncatalog)); 155 Image *find_images PROTO((FITS_DB *db, GSCRegion *region, int Nregion, int *Nimage, int **LineNum));155 Image *find_images PROTO((FITS_DB *db, GSCRegion *region, off_t Nregion, off_t *Nimage, off_t **LineNum)); 156 156 void set_db (FITS_DB *in); 157 157 int Shutdown (char *format, ...); … … 160 160 int SetSignals (void); 161 161 162 GSCRegion *find_regions PROTO((Image *image, int Nimage, int *Nregions, GSCRegion *fullregion));162 GSCRegion *find_regions PROTO((Image *image, off_t Nimage, int *Nregions, GSCRegion *fullregion)); 163 163 void freeGridBins PROTO((int Ncatalog)); 164 164 void freeImageBins PROTO((int Ncatalog)); … … 166 166 void free_catalogs PROTO((Catalog *catalog, int Ncatalog)); 167 167 int gcatalog PROTO((Catalog *catalog, int FINAL)); 168 Coords *getCoords PROTO(( int meas, int cat));169 float getMcal PROTO(( int meas, int cat));170 float getMgrid PROTO(( int meas, int cat));171 float getMmos PROTO(( int meas, int cat));172 float getMrel PROTO((Catalog *catalog, int meas, int cat));173 GSCRegion *get_regions PROTO((double minRa, double maxRa, double minDec, double maxDec, int *Nregions));174 void getfullregion PROTO((Image *image, int Nimage, GSCRegion *fullregion));175 Image *getimage PROTO(( int N));176 Image *getimages PROTO(( int *N));168 Coords *getCoords PROTO((off_t meas, int cat)); 169 float getMcal PROTO((off_t meas, int cat)); 170 float getMgrid PROTO((off_t meas, int cat)); 171 float getMmos PROTO((off_t meas, int cat)); 172 float getMrel PROTO((Catalog *catalog, off_t meas, int cat)); 173 GSCRegion *get_regions PROTO((double minRa, double maxRa, double minDec, double maxDec, off_t *Nregions)); 174 void getfullregion PROTO((Image *image, off_t Nimage, GSCRegion *fullregion)); 175 Image *getimage PROTO((off_t N)); 176 Image *getimages PROTO((off_t *N)); 177 177 void global_stats PROTO((Catalog *catalog, int Ncatalog)); 178 178 void initGrid PROTO((int dX, int dY)); 179 179 void initGridBins PROTO((Catalog *catalog, int Ncatalog)); 180 180 void initImageBins PROTO((Catalog *catalog, int Ncatalog)); 181 void initImages PROTO((Image *input, int N));181 void initImages PROTO((Image *input, off_t N)); 182 182 void initMosaicBins PROTO((Catalog *catalog, int Ncatalog)); 183 void initMosaicGrid PROTO((Image *image, int Nimage));184 void initMosaics PROTO((Image *image, int Nimage));183 void initMosaicGrid PROTO((Image *image, off_t Nimage)); 184 void initMosaics PROTO((Image *image, off_t Nimage)); 185 185 void initMrel PROTO((Catalog *catalog, int Ncatalog)); 186 186 void initialize PROTO((int argc, char **argv)); … … 189 189 Catalog *load_catalogs PROTO((SkyList *skylist, int *Ncatalog, int subselect)); 190 190 SkyList *load_images PROTO((FITS_DB *db, SkyRegion *region)); 191 Image *select_images PROTO((SkyList *skylist, Image *timage, int Ntimage, int **LineNumber, int *Nimage));191 Image *select_images PROTO((SkyList *skylist, Image *timage, off_t Ntimage, off_t **LineNumber, off_t *Nimage)); 192 192 193 193 void check_permissions (char *basefile); … … 198 198 199 199 int main PROTO((int argc, char **argv)); 200 void mark_images PROTO((Image *image, int Nimage, Image *timage, int Ntimage));201 void matchImage PROTO((Catalog *catalog, int meas, int cat));202 void matchMosaics PROTO((Catalog *catalog, int meas, int cat));203 GSCRegion *name_region PROTO((char *name, int *Nregions));200 void mark_images PROTO((Image *image, off_t Nimage, Image *timage, off_t Ntimage)); 201 void matchImage PROTO((Catalog *catalog, off_t meas, int cat)); 202 void matchMosaics PROTO((Catalog *catalog, off_t meas, int cat)); 203 GSCRegion *name_region PROTO((char *name, off_t *Nregions)); 204 204 double opening_angle PROTO((double x1, double y1, double x2, double y2, double x3, double y3)); 205 205 void plot_chisq PROTO((Catalog *catalog, int Ncatalog)); … … 224 224 int setMrelOutput PROTO((Catalog *catalog, int Ncatalog, int mark)); 225 225 void set_ZP PROTO((double ZERO)); 226 int setrefcode PROTO((Image *image, int Nimage));226 int setrefcode PROTO((Image *image, off_t Nimage)); 227 227 void skip_measurements PROTO((Catalog *catalog, int pass)); 228 228 void sortA PROTO((double *X, int N)); … … 268 268 int UpdateMosaic (Catalog *catalog, int Ncatalog); 269 269 int UpdateMeasures (Catalog *catalog, int Ncatalog); 270 void fixImageRaw (Catalog *catalog, int Ncatalog, int im);270 void fixImageRaw (Catalog *catalog, int Ncatalog, off_t im); 271 271 void FlagOutliers(Catalog *catalog); 272 272 int MeasFilterTest(Measure *measure); … … 278 278 int FitPMandPar (PMFit *fit, double *X, double *dX, double *Y, double *dY, double *T, double *pR, double *pD, int Npts); 279 279 280 Mosaic *getMosaicForImage ( int N);281 282 StarData *getImageRef (Catalog *catalog, int Ncatalog, int im, int *Nstars, CoordMode mode);283 StarData *getImageRaw (Catalog *catalog, int Ncatalog, int im, int *Nstars, CoordMode mode);284 285 Mosaic *getmosaics ( int *N);286 void initMosaics (Image *image, int Nimage);287 StarData *getMosaicRaw (Catalog *catalog, int Ncatalog, int mos, int *Nstars);288 StarData *getMosaicRef (Catalog *catalog, int Ncatalog, int mos, int *Nstars);289 Mosaic *getMosaicForImage ( int im);280 Mosaic *getMosaicForImage (off_t N); 281 282 StarData *getImageRef (Catalog *catalog, int Ncatalog, off_t im, off_t *Nstars, CoordMode mode); 283 StarData *getImageRaw (Catalog *catalog, int Ncatalog, off_t im, off_t *Nstars, CoordMode mode); 284 285 Mosaic *getmosaics (off_t *N); 286 void initMosaics (Image *image, off_t Nimage); 287 StarData *getMosaicRaw (Catalog *catalog, int Ncatalog, off_t mos, off_t *Nstars); 288 StarData *getMosaicRef (Catalog *catalog, int Ncatalog, off_t mos, off_t *Nstars); 289 Mosaic *getMosaicForImage (off_t im); 290 290 291 291 double getMeanR (Measure *measure, Average *average, SecFilt *secfilt); … … 297 297 int relastro_objects (void); 298 298 int UpdateObjectOffsets (SkyList *skylist); 299 300 int relastroVisualPlotRawRef(StarData *raw, StarData *ref, double dRmax, int numObj); 301 int relastroVisualPlotScatter(double values[], double thresh, int npts); 302 int relastroVisualPlotOutliers(Catalog *catalog, int offset, int Nmeasure, 303 StatType statsR, StatType statsD, double thresh); 304 -
branches/eam_branches/largefiles.20100314/Ohana/src/relastro/src/ImageOps.c
r24308 r27312 4 4 static unsigned int *start; 5 5 static unsigned int *stop; 6 static int **bin; 7 8 static int **clist; 9 static int **mlist;10 static int *Nlist;11 static int *NLIST;12 13 static Image *image; 14 static int Nimage;15 16 Image *getimages ( int *N) {6 7 static off_t **bin; // link from catalog,measure to image 8 static int **clist; // catalog which supplied measurement on image 9 static off_t **mlist; // measure reference for measurement on image 10 static off_t *Nlist; // number of measurements on image 11 static off_t *NLIST; // allocated number of measurements on image 12 13 static Image *image; // list of available images 14 static off_t Nimage; // number of available images 15 16 Image *getimages (off_t *N) { 17 17 *N = Nimage; 18 18 return (image); 19 19 } 20 20 21 Image *getimage ( int N) {21 Image *getimage (off_t N) { 22 22 return (&image[N]); 23 23 } 24 24 25 void initImages (Image *input, int N) {26 27 int i;25 void initImages (Image *input, off_t N) { 26 27 off_t i; 28 28 29 29 image = input; … … 41 41 void initImageBins (Catalog *catalog, int Ncatalog) { 42 42 43 int i, j;44 45 ALLOCATE (bin, int *, Ncatalog);43 off_t i, j; 44 45 ALLOCATE (bin, off_t *, Ncatalog); 46 46 for (i = 0; i < Ncatalog; i++) { 47 ALLOCATE (bin[i], int, MAX (catalog[i].Nmeasure, 1));47 ALLOCATE (bin[i], off_t, MAX (catalog[i].Nmeasure, 1)); 48 48 for (j = 0; j < catalog[i].Nmeasure; j++) bin[i][j] = -1; 49 49 } 50 50 51 ALLOCATE (Nlist, int,Nimage);52 ALLOCATE (NLIST, int,Nimage);53 ALLOCATE (clist, int *, Nimage);54 ALLOCATE (mlist, int *, Nimage);51 ALLOCATE (Nlist, off_t, Nimage); 52 ALLOCATE (NLIST, off_t, Nimage); 53 ALLOCATE (clist, int *, Nimage); 54 ALLOCATE (mlist, off_t *, Nimage); 55 55 56 56 for (i = 0; i < Nimage; i++) { … … 58 58 NLIST[i] = 100; 59 59 ALLOCATE (clist[i], int, NLIST[i]); 60 ALLOCATE (mlist[i], int, NLIST[i]);60 ALLOCATE (mlist[i], off_t, NLIST[i]); 61 61 } 62 62 } … … 64 64 void freeImageBins (int Ncatalog) { 65 65 66 int i;66 off_t i; 67 67 68 68 for (i = 0; i < Ncatalog; i++) { … … 81 81 void findImages (Catalog *catalog, int Ncatalog) { 82 82 83 int i, j;83 off_t i, j; 84 84 char *name; 85 85 … … 92 92 for (i = 0; VERBOSE && (i < Nimage); i++) { 93 93 name = GetPhotcodeNamebyCode (image[i].photcode); 94 fprintf (stderr, "image % d has %d measures (%s, %s)\n", i,Nlist[i],94 fprintf (stderr, "image %lld has %lld measures (%s, %s)\n", (long long) i, (long long) Nlist[i], 95 95 ohana_sec_to_date(image[i].tzero), name); 96 96 } … … 98 98 99 99 /* modify this function to use the measure->imageID field */ 100 void matchImage (Catalog *catalog, int meas, int cat) {101 102 int i;100 void matchImage (Catalog *catalog, off_t meas, int cat) { 101 102 off_t i; 103 103 Measure *measure; 104 104 … … 124 124 if (Nlist[i] == NLIST[i]) { 125 125 NLIST[i] += 100; 126 REALLOCATE (clist[i], int, NLIST[i]);127 REALLOCATE (mlist[i], int, NLIST[i]);126 REALLOCATE (clist[i], int, NLIST[i]); 127 REALLOCATE (mlist[i], off_t, NLIST[i]); 128 128 } 129 129 return; … … 131 131 } 132 132 133 Coords *getCoords ( int meas, int cat) {134 135 int i;133 Coords *getCoords (off_t meas, int cat) { 134 135 off_t i; 136 136 137 137 i = bin[cat][meas]; … … 142 142 void plot_images () { 143 143 144 int i, bin;144 off_t i, bin; 145 145 double *xlist, *Mlist, *dlist; 146 146 Graphdata graphdata; … … 188 188 // return StarData values for detections in the specified image, converting coordinates from the 189 189 // chip positions: X,Y -> L,M -> P,Q -> R,D 190 void fixImageRaw (Catalog *catalog, int Ncatalog, int im) {191 192 int i, m, c, n;190 void fixImageRaw (Catalog *catalog, int Ncatalog, off_t im) { 191 192 off_t i, m, c, n; 193 193 double X, Y, L, M, P, Q, R, D, dR, dD; 194 194 … … 257 257 // chip positions: X,Y -> L,M -> P,Q -> R,D. This function is used by the image fitting steps, for 258 258 // which the detections have already been filtered when they were loaded (bcatalog) 259 StarData *getImageRaw (Catalog *catalog, int Ncatalog, int im, int *Nstars, CoordMode mode) {260 261 int i, m, c, n;259 StarData *getImageRaw (Catalog *catalog, int Ncatalog, off_t im, off_t *Nstars, CoordMode mode) { 260 261 off_t i, m, c, n; 262 262 263 263 Mosaic *mosaic; … … 332 332 // the sky positions: R,D -> P,Q -> L,M -> X,Y 333 333 334 StarData *getImageRef (Catalog *catalog, int Ncatalog, int im, int *Nstars, CoordMode mode) {335 336 int i, m, c, n;334 StarData *getImageRef (Catalog *catalog, int Ncatalog, off_t im, off_t *Nstars, CoordMode mode) { 335 336 off_t i, m, c, n; 337 337 338 338 Mosaic *mosaic; … … 399 399 return; 400 400 401 int i, j, k, m, N, Ndel, Nave, Nmax, TOOFEW, Nsecfilt; 401 int Ndel, Nave; 402 off_t i, j, k, m, N, Nmax, TOOFEW, Nsecfilt; 402 403 double Ns, theta, x, y; 403 404 double *R, *D, *dR, *dD; … … 490 491 void FlagOutliers2D (Catalog *catalog) { 491 492 492 int i, j, k, m, N, Ndel, Nave, Nmax, TOOFEW, Nsecfilt; 493 int Ndel, Nave; 494 off_t i, j, k, m, N, Nmax, TOOFEW, Nsecfilt; 493 495 double *index; 494 496 double Ns, theta, x, y; … … 569 571 // recalculate image center, sigma based on closest 50% of points 570 572 for(k = 0; k < N; k++) { 571 int ind = (int) index[k];573 off_t ind = (off_t) index[k]; 572 574 R[k] = catalog[0].measure[ind].dR; 573 575 D[k] = catalog[0].measure[ind].dD; -
branches/eam_branches/largefiles.20100314/Ohana/src/relastro/src/MosaicOps.c
r21508 r27312 2 2 3 3 // array of mosaic definition structures 4 static int Nmosaic;4 static off_t Nmosaic; 5 5 static Mosaic *mosaic; 6 6 7 7 // list of all images associated with a mosaic 8 static int *Nmosaic_own_images; // number of images for this mosaic9 static int *Amosaic_own_images; // size of allocated array10 static int **mosaic_own_images; // array of arrays: mosaic -> images8 static off_t *Nmosaic_own_images; // number of images for this mosaic 9 static off_t *Amosaic_own_images; // size of allocated array 10 static off_t **mosaic_own_images; // array of arrays: mosaic -> images 11 11 12 12 // list of mosaic associated with each image 13 static int Nmosaic_for_images; // number of images (for internal checks)14 static int *mosaic_for_images; // array of: image -> mosaic13 static off_t Nmosaic_for_images; // number of images (for off_ternal checks) 14 static off_t *mosaic_for_images; // array of: image -> mosaic 15 15 16 Mosaic *getmosaics ( int *N) {16 Mosaic *getmosaics (off_t *N) { 17 17 *N = Nmosaic; 18 18 return (mosaic); … … 20 20 21 21 // find mosaic frames (unique time periods & photcode name matches mosaic) 22 void initMosaics (Image *image, int Nimage) {22 void initMosaics (Image *image, off_t Nimage) { 23 23 24 int i, j, found, NMOSAIC;24 off_t i, j, found, NMOSAIC; 25 25 unsigned int start, stop; 26 26 … … 29 29 ALLOCATE (mosaic, Mosaic, NMOSAIC); 30 30 31 ALLOCATE (Nmosaic_own_images, int, NMOSAIC);32 ALLOCATE (Amosaic_own_images, int, NMOSAIC);33 ALLOCATE (mosaic_own_images, int *, NMOSAIC);31 ALLOCATE (Nmosaic_own_images, off_t, NMOSAIC); 32 ALLOCATE (Amosaic_own_images, off_t, NMOSAIC); 33 ALLOCATE (mosaic_own_images, off_t *, NMOSAIC); 34 34 35 35 /* find the mosaic images (coords.ctype = DIS); generate list of unique mosaics */ … … 54 54 Nmosaic_own_images[Nmosaic] = 0; 55 55 Amosaic_own_images[Nmosaic] = 10; 56 ALLOCATE (mosaic_own_images[Nmosaic], int, Amosaic_own_images[Nmosaic]);56 ALLOCATE (mosaic_own_images[Nmosaic], off_t, Amosaic_own_images[Nmosaic]); 57 57 58 58 Nmosaic ++; … … 60 60 NMOSAIC += 10; 61 61 REALLOCATE (mosaic, Mosaic, NMOSAIC); 62 REALLOCATE (mosaic_own_images, int *, NMOSAIC);63 REALLOCATE (Nmosaic_own_images, int, NMOSAIC);64 REALLOCATE (Amosaic_own_images, int, NMOSAIC);62 REALLOCATE (mosaic_own_images, off_t *, NMOSAIC); 63 REALLOCATE (Nmosaic_own_images, off_t, NMOSAIC); 64 REALLOCATE (Amosaic_own_images, off_t, NMOSAIC); 65 65 } 66 66 } … … 68 68 // array to store image->mosaic index 69 69 Nmosaic_for_images = Nimage; 70 ALLOCATE (mosaic_for_images, int, Nmosaic_for_images);70 ALLOCATE (mosaic_for_images, off_t, Nmosaic_for_images); 71 71 72 72 /* now assign the WRP images to these mosaics */ … … 99 99 if (Nmosaic_own_images[j] == Amosaic_own_images[j]) { 100 100 Amosaic_own_images[j] += 10; 101 REALLOCATE (mosaic_own_images[j], int, Amosaic_own_images[j]);101 REALLOCATE (mosaic_own_images[j], off_t, Amosaic_own_images[j]); 102 102 } 103 103 assert (Nmosaic_own_images[j] < Amosaic_own_images[j]); … … 109 109 // return StarData values for detections in the specified image, converting coordinates from the 110 110 // chip positions: X,Y -> L,M -> P,Q -> R,D 111 StarData *getMosaicRaw (Catalog *catalog, int Ncatalog, int mos, int *Nstars) {111 StarData *getMosaicRaw (Catalog *catalog, int Ncatalog, off_t mos, off_t *Nstars) { 112 112 113 int i, j, im, Nraw, Nnew;113 off_t i, j, im, Nraw, Nnew; 114 114 StarData *raw, *new; 115 115 … … 142 142 // return StarData values for averages positions in the specified image, converting coordinates from 143 143 // the sky positions: R,D -> P,Q -> L,M -> X,Y 144 StarData *getMosaicRef (Catalog *catalog, int Ncatalog, int mos, int *Nstars) {144 StarData *getMosaicRef (Catalog *catalog, int Ncatalog, off_t mos, off_t *Nstars) { 145 145 146 int i, j, im, Nref, Nnew;146 off_t i, j, im, Nref, Nnew; 147 147 StarData *ref, *new; 148 148 … … 172 172 } 173 173 174 Mosaic *getMosaicForImage ( int im) {174 Mosaic *getMosaicForImage (off_t im) { 175 175 176 int mos;176 off_t mos; 177 177 178 178 if (im < 0) abort(); -
branches/eam_branches/largefiles.20100314/Ohana/src/relastro/src/UpdateChips.c
r17151 r27312 4 4 5 5 /* we can measure new image parameters for each non-mosaic chip independently */ 6 int i, Nimage, Nraw, Nref;6 off_t i, Nimage, Nraw, Nref; 7 7 Image *image; 8 8 StarData *raw, *ref; … … 25 25 26 26 // FitChip does iterative, clipped fitting 27 fprintf (stderr, "image % d : Nstars: %d\n", i,Nraw);27 fprintf (stderr, "image %lld : Nstars: %lld\n", (long long) i, (long long) Nraw); 28 28 FitChip (raw, ref, Nraw, &image[i].coords); 29 29 -
branches/eam_branches/largefiles.20100314/Ohana/src/relastro/src/UpdateMeasures.c
r16810 r27312 3 3 int UpdateMeasures (Catalog *catalog, int Ncatalog) { 4 4 5 int i, Nimage;5 off_t i, Nimage; 6 6 Image *image; 7 7 -
branches/eam_branches/largefiles.20100314/Ohana/src/relastro/src/UpdateMosaic.c
r15600 r27312 4 4 5 5 /* we can measure new image parameters for each mosaic independently */ 6 int i, Nmosaic, Nstars;6 off_t i, Nmosaic, Nstars; 7 7 Mosaic *mosaic; 8 8 StarData *raw, *ref; -
branches/eam_branches/largefiles.20100314/Ohana/src/relastro/src/UpdateObjects.c
r24308 r27312 1 1 # include "relastro.h" 2 2 3 static intNmax;3 static off_t Nmax; 4 4 static double *X, *dX; 5 5 static double *Y, *dY; … … 13 13 void initObjectData (Catalog *catalog, int Ncatalog) { 14 14 15 int i, j;15 off_t i, j; 16 16 17 17 Nmax = 0; … … 40 40 int UpdateObjects (Catalog *catalog, int Ncatalog) { 41 41 42 int i, j, k, m, N, Nsecfilt , found, kp;42 int i, j, k, m, N, Nsecfilt; 43 43 StatType statsR, statsD; 44 44 Coords coords; … … 47 47 int mode, Nave, Npm, Npar, Nskip; 48 48 double Tmin, Tmax; 49 float mag;50 int mask;51 PhotCode *code;52 49 53 50 initObjectData (catalog, Ncatalog); … … 74 71 for (i = 0; i < Ncatalog; i++) { 75 72 76 if (VERBOSE) fprintf (stderr, "astrometrize catalog %d : % d ave, %d meas\n", i, catalog[i].Naverage,catalog[i].Nmeasure);73 if (VERBOSE) fprintf (stderr, "astrometrize catalog %d : %lld ave, %lld meas\n", i, (long long) catalog[i].Naverage, (long long) catalog[i].Nmeasure); 77 74 78 75 Nskip = 0; -
branches/eam_branches/largefiles.20100314/Ohana/src/relastro/src/bcatalog.c
r24308 r27312 3 3 int bcatalog (Catalog *subcatalog, Catalog *catalog) { 4 4 5 int i, j, k, offset, found; 6 int NAVERAGE, NMEASURE, Naverage, Nmeasure, Nm, Nsecfilt; 7 float mag; 8 int mask; 9 PhotCode *code; 5 off_t i, j, offset; 6 off_t NAVERAGE, NMEASURE, Naverage, Nmeasure, Nm; 7 int Nsecfilt; 10 8 11 9 // XXX in the future, use catalog[0].Nsecfilt only? allow catalogs to have variable Nsecfilt? … … 106 104 107 105 if (VERBOSE) { 108 fprintf (stderr, "%d: using %d stars (%d measures) for catalog\n", i, 109 subcatalog[0].Naverage, subcatalog[0].Nmeasure); 106 fprintf (stderr, "%lld: using %lld stars (%lld measures) for catalog\n", (long long) i, (long long) subcatalog[0].Naverage, (long long) subcatalog[0].Nmeasure); 110 107 } 111 108 return (TRUE); -
branches/eam_branches/largefiles.20100314/Ohana/src/relastro/src/load_images.c
r25757 r27312 4 4 5 5 Image *image, *subset; 6 intNimage, Nsubset;7 int*LineNumber;6 off_t Nimage, Nsubset; 7 off_t *LineNumber; 8 8 9 9 SkyTable *sky = NULL; -
branches/eam_branches/largefiles.20100314/Ohana/src/relastro/src/select_images.c
r21508 r27312 13 13 } SkyRegionCoords; 14 14 15 Image *select_images (SkyList *skylist, Image *timage, int Ntimage, int **LineNumber, int *Nimage) {15 Image *select_images (SkyList *skylist, Image *timage, off_t Ntimage, off_t **LineNumber, off_t *Nimage) { 16 16 17 17 Image *image; 18 int i, j, k, m, found, nimage, NIMAGE;19 int InRange ;18 off_t i, j, k, m, nimage, NIMAGE; 19 int InRange, found; 20 20 double Ri[5], Di[5], Xi[5], Yi[5], dx, dy; 21 int *line_number;21 off_t *line_number; 22 22 Coords tcoords; 23 23 SkyRegionCoords *skycoords; … … 71 71 NIMAGE = 100; 72 72 ALLOCATE (image, Image, NIMAGE); 73 ALLOCATE (line_number, int, NIMAGE);73 ALLOCATE (line_number, off_t, NIMAGE); 74 74 75 75 // go through the complete list of images, selecting ones which overlap any region … … 161 161 NIMAGE += 100; 162 162 REALLOCATE (image, Image, NIMAGE); 163 REALLOCATE (line_number, int, NIMAGE);163 REALLOCATE (line_number, off_t, NIMAGE); 164 164 } 165 165 } 166 166 } 167 167 168 if (VERBOSE) fprintf (stderr, "found % d images\n",nimage);168 if (VERBOSE) fprintf (stderr, "found %lld images\n", (long long) nimage); 169 169 170 170 REALLOCATE (image, Image, MAX (nimage, 1)); 171 REALLOCATE (line_number, int, MAX (nimage, 1));171 REALLOCATE (line_number, off_t, MAX (nimage, 1)); 172 172 free (skycoords); 173 173
Note:
See TracChangeset
for help on using the changeset viewer.
