- Timestamp:
- Feb 2, 2009, 11:57:10 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20081230/pswarp/src/pswarpDefineSkycell.c
r21072 r21268 1 /** @file pswarpDefineSkycell.c 2 * 3 * @brief 4 * 5 * @ingroup pswarp 6 * 7 * @author IfA 8 * @version $Revision: 1.10.6.1 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-02 21:57:10 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "pswarp.h" 2 14 3 // XXX this function is based on pmFPAfileDefineFromArgs 4 // a skycell consists of only one file 15 /** 16 * \brief XXX this function is based on pmFPAfileDefineFromArgs 17 * a skycell consists of only one file 5 18 6 // search for argname on the config->argument list 7 // construct an FPA based on the files in this list (must represent a single FPA) 8 // built the association between the FPA elements (CHIP/CELL) and the files 9 // define the pmFPAfile filename and bind it to this FPA 10 // save the pmFPAfile on config->files 11 // return the pmFPAfile (a view to the one saved on config->files) 19 * search for argname on the config->argument list and construct 20 * an FPA based on the files in this list (must represent a single FPA) 21 * built the association between the FPA elements (CHIP/CELL) and the files 22 * define the pmFPAfile filename and bind it to this FPA 23 * save the pmFPAfile on config->files 24 * @return the pmFPAfile (a view to the one saved on config->files) 25 */ 12 26 bool pswarpDefineSkycell (pmFPAfile **outFile, pmConfig **outConfig, pmConfig *config, const char *filename, const char *argname) 13 27 { … … 59 73 psFitsClose(fits); 60 74 61 // XXX format needs to be equivalent to SIMPLE 62 // determine the current format from the header 63 // determine camera if not specified already 75 // We need to force the format for the skycell to be equivalent to SIMPLE. Determine 76 // the current format from the header; Determine camera if not specified already 64 77 // XXX EAM : this operation should be defined as a pmConfig function (pmConfigCopy?) 65 skyConfig = pmConfigAlloc( 0, NULL);78 skyConfig = pmConfigAlloc(); 66 79 skyConfig->user = psMemIncrRefCounter(config->user); 67 80 skyConfig->system = psMemIncrRefCounter(config->system);
Note:
See TracChangeset
for help on using the changeset viewer.
