public software.sextractor

[/] [trunk/] [src/] [readimage.c] - Diff between revs 292 and 293

Show entire file | Details | Blame | View Log

Rev 292 Rev 293
Line 20... Line 20...
*       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*       GNU General Public License for more details.
*       GNU General Public License for more details.
*       You should have received a copy of the GNU General Public License
*       You should have received a copy of the GNU General Public License
*       along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
*       along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
*
*
*       Last modified:          04/06/2012
*       Last modified:          26/06/2012
*
*
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
 
 
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include        "config.h"
#include        "config.h"
Line 256... Line 256...
   tabstruct    *tab;
   tabstruct    *tab;
 
 
  tab = field->tab;
  tab = field->tab;
 
 
  if(tab->naxis < 2)
  if(tab->naxis < 2)
    error(EXIT_FAILURE, field->filename, " does NOT contain 2D-data!");
    error(EXIT_FAILURE, field->filename, " does NOT contain image data!");
 
 
/*---------------------------- Basic keywords ------------------------------*/
/*---------------------------- Basic keywords ------------------------------*/
  if (tab->bitpix != BP_BYTE
  if (tab->bitpix != BP_BYTE
        && tab->bitpix != BP_SHORT
        && tab->bitpix != BP_SHORT
        && tab->bitpix != BP_LONG
        && tab->bitpix != BP_LONG