Changeset 12332 for trunk/Ohana/src/relastro/src/load_images.c
- Timestamp:
- Mar 8, 2007, 12:21:18 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/relastro/src/load_images.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relastro/src/load_images.c
r8390 r12332 1 # include "rel phot.h"1 # include "relastro.h" 2 2 3 SkyList *load_images (FITS_DB *db, char *regionName, SkyRegion *region, int RegionSelect) {3 SkyList *load_images (FITS_DB *db, SkyRegion *region) { 4 4 5 5 Image *image, *subset; 6 int Nimage, Nsubset , Nchar;6 int Nimage, Nsubset; 7 7 int *LineNumber; 8 8 … … 15 15 16 16 // determine the populated SkyRegions overlapping the requested area 17 if (RegionSelect) { 18 skylist = SkyListByPatch (sky, -1, region); 19 } else { 20 Nchar = strlen(regionName); 21 if (!strcmp (®ionName[Nchar-4], ".cpt")) regionName[Nchar-4] = 0; 22 skylist = SkyListByName (sky, regionName); 23 } 17 skylist = SkyListByPatch (sky, -1, region); 24 18 25 19 // convert database table to internal structure … … 34 28 initMosaics (subset, Nsubset); 35 29 30 /* unlock, if we can (else, unlocked below) */ 31 if (!UPDATE) dvo_image_unlock (db); 32 36 33 return (skylist); 37 34 }
Note:
See TracChangeset
for help on using the changeset viewer.
