1
C @(#)subpxl.for 19.1 (ES0-DMD) 02/25/03 13:25:40
2
C===========================================================================
3
C Copyright (C) 1995 European Southern Observatory (ESO)
5
C This program is free software; you can redistribute it and/or
6
C modify it under the terms of the GNU General Public License as
7
C published by the Free Software Foundation; either version 2 of
8
C the License, or (at your option) any later version.
10
C This program is distributed in the hope that it will be useful,
11
C but WITHOUT ANY WARRANTY; without even the implied warranty of
12
C MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
C GNU General Public License for more details.
15
C You should have received a copy of the GNU General Public
16
C License along with this program; if not, write to the Free
17
C Software Foundation, Inc., 675 Massachusetss Ave, Cambridge,
20
C Corresponding concerning ESO-MIDAS should be addressed as follows:
21
C Internet e-mail: midas@eso.org
22
C Postal address: European Southern Observatory
23
C Data Management Division
24
C Karl-Schwarzschild-Strasse 2
25
C D 85748 Garching bei Muenchen
27
C===========================================================================
29
C+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
33
C-----------------------------------------------------------------------
34
SUBROUTINE SUBPXL ( NCT , PMT , LSBP , IACT , JACT , IS , JS )
37
INCLUDE 'MID_REL_INCL:INVENT.INC/NOLIST'
39
INTEGER NCT(NIPAR) ! IN: Integer parameters
40
REAL PMT(NRPAR) ! IN: Real parameters
41
INTEGER LSBP ! IN: Subpixel extend
42
INTEGER IACT ! OUT: X pixel number
43
INTEGER JACT ! OUT: Y pixel number
44
INTEGER IS ! OUT: X subpixel number
45
INTEGER JS ! OUT: Y subpixel number
53
IS = NINT( ( PMT(10) - FLOAT(IACT) ) * FLOAT(MSBP) )
54
IF ( IS .GT. LSBP ) THEN
56
ELSE IF ( IS .LT. (-LSBP) ) THEN
59
JS = NINT( ( PMT(11) - FLOAT(JACT) ) * FLOAT(MSBP) )
60
IF ( JS .GT. LSBP ) THEN
62
ELSE IF ( JS .LT. (-LSBP) ) THEN