1 /***************************************************************************
2  * This File is a part of the CADS Zodiacal light model software           *
3  *   Copyright (C) 2012         by The CADS Software Team,                 *
4  *                              Indian Institute of Astrophysics,          *
5  *                              Bangalore 560 034                          *
6  *                              cads_AT_iiap.res.in                        *
7  *                                                                         *
8  *   This program is free software; you can redistribute it and/or modify  *
9  *   it under the terms of the GNU General Public License as published by  *
10  *   the Free Software Foundation; either version 2 of the License, or     *
11  *   (at your option) any later version.                                   *
12  *                                                                         *
13  *   This program is distributed in the hope that it will be useful,       *
14  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
15  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
16  *   GNU General Public License for more details.                          *
17  *                                                                         *
18  *   You should have received a copy of the GNU General Public License     *
19  *   along with this program; if not, write to the                         *
20  *   Free Software Foundation, Inc.,                                       *
21  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
22  ***************************************************************************/
23 /*--------------------------------------------------------------------------
24   zodiacal_model.h: Contains various definitions for zodiacal_model.c
26   Revision history:       ----
27   Reks, 25th September, 2007
28   1. Created this file
29   2. Shifted all #define statements from main to here
30   Reks, 22 June 2012
31   1. Rebranded to cads software group
32  *--------------------------------------------------------------------------*/
34 #ifdef HAVE_CONFIG_H
35 #include <config.h>
36 #endif
38 #include <stdio.h>
39 #include <stdlib.h>
40 #include <math.h>
41 #include <string.h>
43 /* Maximum number of elements in a text line                     */
44 #define MAX_TEXT 150
46 /* Define the parameters for reading the zodiacal file           */
47 #define ZOD_XSIZE 19                            /*Number of rows */
48 #define ZOD_YSIZE 10                        /* Number of Columns */
49 #define ZOD_SPEC 25763                     /* Number of elements */
50 #define RAD_PER_DEG 0.0174532925           /* radians per degree */
51 #define FLEN_FILENAME 1025          /* max length of a filename  */
52 #define PARAM_FILE "zodiacal_initparams.txt"     /* input params */
53 #define DEFAULT_ZOD_FILE "leinert_dist.txt"   /* Leinert's model */
54 #define DEFAULT_SPEC_FILE "zodiacal_spec.txt"  /* Solar Spectrum */
55 #define DEFAULT_OUT_FILE "zodiacal_output.txt"    /* Output file */
57 /* path to input data files, if we were GNU-built by autotools   */
58 #ifndef CADSDATA
59 #define CADSDATA ' '
60 #endif
62 /* this is something else */
63 #define INITVAL -400