~ubuntu-branches/debian/jessie/eso-midas/jessie

« back to all changes in this revision

Viewing changes to prim/general/libsrc/zmstat-2.fc

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2014-04-22 14:44:58 UTC
  • Revision ID: package-import@ubuntu.com-20140422144458-okiwi1assxkkiz39
Tags: upstream-13.09pl1.2+dfsg
ImportĀ upstreamĀ versionĀ 13.09pl1.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*===========================================================================
 
2
  Copyright (C) 1995-2009 European Southern Observatory (ESO)
 
3
 
 
4
  This program is free software; you can redistribute it and/or 
 
5
  modify it under the terms of the GNU General Public License as 
 
6
  published by the Free Software Foundation; either version 2 of 
 
7
  the License, or (at your option) any later version.
 
8
 
 
9
  This program is distributed in the hope that it will be useful,
 
10
  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
  GNU General Public License for more details.
 
13
 
 
14
  You should have received a copy of the GNU General Public 
 
15
  License along with this program; if not, write to the Free 
 
16
  Software Foundation, Inc., 675 Massachusetts Ave, Cambridge, 
 
17
  MA 02139, USA.
 
18
 
 
19
  Correspondence concerning ESO-MIDAS should be addressed as follows:
 
20
        Internet e-mail: midas@eso.org
 
21
        Postal address: European Southern Observatory
 
22
                        Data Management Division 
 
23
                        Karl-Schwarzschild-Strasse 2
 
24
                        D 85748 Garching bei Muenchen 
 
25
                        GERMANY
 
26
===========================================================================*/
 
27
 
 
28
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
29
 
 
30
Fortran -> C conversion routine for ZMSTAT
 
31
 
 
32
 
 
33
.VERSION
 
34
 
 
35
 090611         last modif
 
36
------------------------------------------------------------------------*/
 
37
 
 
38
#include <midas_def.h>
 
39
 
 
40
char *ptr1, *ptr2, *ptr3;
 
41
char *strp_pntr(int);
 
42
 
 
43
int Zstats(), Newsort();
 
44
 
 
45
/*
 
46
 
 
47
*/
 
48
 
 
49
ROUTINE NSORT(array,size,nmed,fmedian)
 
50
float     *array;
 
51
int    *size;
 
52
int    *nmed;
 
53
float     *fmedian;
 
54
 
 
55
{
 
56
array --;
 
57
(void) Newsort(array,*size,*nmed,fmedian);
 
58
 
 
59
return 0;
 
60
}
 
61
 
 
62
/*** ZMSTAT(imno,area,naxpix,start,step,rbins,formstr,defaul) ***/
 
63
 
 
64
ROUTINE ZST1(imno,naxpix,start,step,rbins)
 
65
int    *imno;
 
66
int    *naxpix;
 
67
double    *start;
 
68
double    *step;
 
69
float     *rbins;
 
70
 
 
71
{
 
72
ptr1 = strp_pntr(1);         /* get stripped string of "area" */
 
73
ptr2 = strp_pntr(2);         /* get stripped string of "formstr" */
 
74
ptr3 = strp_pntr(3);         /* get stripped string of "defaul" */
 
75
 
 
76
(void) Zstats(*imno,ptr1,naxpix,rbins,ptr2,ptr3);
 
77
return 0;
 
78
}