OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
anc.h
Go to the documentation of this file.
1 #ifndef ANC_H /* avoid re-inclusion */
2 #define ANC_H
3 
4 #include <stdint.h>
5 #include <stdio.h>
6 #include <math.h>
7 #include <string.h>
8 #include <ctype.h>
9 
10 #define LAT 721
11 #define LON 1441
12 
13 #define MAXVAL 255
14 #define null '\0'
15 
16 #define WIND_U 0
17 #define WIND_V 1
18 #define PRESSURE 2
19 #define HUMIDITY 3
20 #define OZONE 4
21 
22 #define CORNERS 4
23 #define NPARMS 6
24 #define NFILE 2
25 #define F1 0
26 #define F2 1
27 
28 /* Time Conversion Constants */
29 #define MSECHOUR 3600000
30 #define MSECMIN 60000
31 #define MSECSEC 1000
32 
33 #define BS_INCR 0 /* increasing order */
34 #define BS_DECR 1 /* decreasing order */
35 
36 #define SPATIAL 110
37 #define SPATIAL_TEMPORAL 112
38 
39 #define GEOMETRY_VDATA "Equal-Angle SDS"
40 
41 #define WIND_U_LABEL "Zonal Wind"
42 #define WIND_V_LABEL "Meridional Wind"
43 #define PRESSURE_LABEL "Atmospheric Pressure"
44 #define HUMIDITY_LABEL "Relative Humidity"
45 #define OZONE_LABEL "Total Ozone"
46 
47 #define CLIM_DATA "Average"
48 
49 #define QC_LABEL "QC flag"
50 #define PARM_LABEL "Observations"
51 
52 #define SYEAR "Start Year"
53 #define SDAY "Start Day"
54 #define SMSEC "Start Millisec"
55 #define EYEAR "End Year"
56 #define EDAY "End Day"
57 #define EMSEC "End Millisec"
58 
59 #define VSIZE "Latitude Step"
60 #define HSIZE "Longitude Step"
61 #define MAXNORTH "Northernmost Latitude"
62 #define MAXSOUTH "Southernmost Latitude"
63 #define MAXWEST "Westernmost Longitude"
64 #define MAXEAST "Easternmost Longitude"
65 #define SWPT_LAT "SW Point Latitude"
66 #define SWPT_LON "SW Point Longitude"
67 
68 extern char ERR_MSG[1024];
69 
70 #ifndef DATANAMES
71 #define DATANAMES
72 static const char * const data_sdsnames[NPARMS] = {
73  "z_wind",
74  "m_wind",
75  "press",
76  "p_water",
77  "ozone",
78  "rel_hum"
79 };
80 
81 static const char * const QC_sdsnames[NPARMS] = {
82  "z_wind_QC",
83  "m_wind_QC",
84  "press_QC",
85  "p_water_QC",
86  "ozone_QC",
87  "rel_hum_QC"
88 };
89 
90 static const char * const clim_vgps[12] = {
91  "January",
92  "February",
93  "March",
94  "April",
95  "May",
96  "June",
97  "July",
98  "August",
99  "September",
100  "October",
101  "November",
102  "December"
103 };
104 
105 static const char * const clim_datasets[NPARMS] = {
106  "z_wind_mean",
107  "m_wind_mean",
108  "press_mean",
109  "p_water_mean",
110  "ozone_mean",
111  "rel_hum_mean"
112 };
113 #endif /* DATANAMES */
114 /*
115 #ifndef FILESTRUCT
116 #define FILESTRUCT
117 
118 #define FLIMIT 12
119 struct file_time {
120  char *fn;
121  float64 sdate;
122  float64 stime;
123  float64 edate;
124  float64 etime;
125  } ftime[FLIMIT];
126 #endif */ /* FILESTRUCT */
127 
128 
129 /**** fortran prototypes */
130 
131 void dataintp_(float* in_latlon, float* lat_list, float* lon_list,
132  float* data_list1, double* DT1, float* data_list2, double* DT2,
133  int32_t* ipt, int32_t* nband, float(*) [2], float* def,
134  int32_t* intporder, float* dummy, float* dataout, float* unc,
135  int32_t* int_bad, int32_t* row, int32_t* col);
136 
137 void julian_(double* dtin, double* d_jd);
138 
139 
140 
141 /**** internal c prototypes */
142 
143 int32_t rdancattr(int32_t sdfid, char *attr_name, void *buf);
144 
145 
146 
147 #endif /* ANC_H */
void julian_(double *dtin, double *d_jd)
void dataintp_(float *in_latlon, float *lat_list, float *lon_list, float *data_list1, double *DT1, float *data_list2, double *DT2, int32_t *ipt, int32_t *nband, float(*)[2], float *def, int32_t *intporder, float *dummy, float *dataout, float *unc, int32_t *int_bad, int32_t *row, int32_t *col)
int32_t rdancattr(int32_t sdfid, char *attr_name, void *buf)
Definition: HDFroutines.c:121
#define NPARMS
Definition: anc.h:23
int32_t nband
char ERR_MSG[1024]
Definition: extract_sub.c:119