ocssw  1.0
/disk01/web/ocssw/build/inc/swfinc/seabin.h (r8085/r2804)
Go to the documentation of this file.
00001 #ifndef SEABIN_H /* avoid re-inclusion */
00002 #define SEABIN_H
00003 
00004 #include <math.h>
00005 #include <ctype.h>
00006 #include "hdf.h"
00007 #include "mfhdf.h"
00008 #include "meta_l3b.h"
00009 #include "seaproto.h"
00010 
00011 /*  Grid Parameters  */
00012 #define SEABIN      "SeaWiFS Binning Algorithm - first cut"
00013 #define NBINS       4320
00014 #define RADIUS      6378.137
00015 #define MAXNORTH    90.0f
00016 #define MAXSOUTH    -90.0f
00017 #define SEAMLON     -180.0f
00018 /*#define NUMROWS       2160*/
00019 /*#define   VSIZE       0.08333333f*/
00020 #define GRPNAME     "Level-3 Binned Data"
00021 #define GRPCLASS    "PlanetaryGrid"
00022 #define GEOMNAME    "SEAGrid"
00023 #define GEOMCLASS   "Geometry"
00024 #define NDXNAME     "BinIndex"
00025 #define NDXCLASS    "Index"
00026 #define MSTRNAME    "BinList"
00027 #define MSTRCLASS   "DataMain"
00028 #define SLVCLASS    "DataSubordinate"
00029 #define SNAME0          "nLw_412"
00030 #define SNAME1          "nLw_443"
00031 #define SNAME2          "nLw_490"
00032 #define SNAME3          "nLw_510"
00033 #define SNAME4          "nLw_555"
00034 #define SNAME5          "La_670"
00035 #define SNAME6          "CZCS_pigment"
00036 #define SNAME7          "chlor_a"
00037 #define SNAME8          "K_490"
00038 #define SNAME9          "chlor_a_K_490"
00039 #define SNAME10         "eps_78"
00040 #define SNAME11         "tau_865"
00041 #define GEOMSIZE        ((3*sizeof(int32))+(4*sizeof(float64)))
00042 #define NDXSIZE         ((5*sizeof(int32))+(2*sizeof(float64)))
00043 #define MSTRSIZE        ((3*sizeof(int16))+(2*sizeof(int32))+(sizeof(float32))+(sizeof(int8)))
00044 /*
00045 #define MSTRSIZE        ((4*sizeof(int16))+(1*sizeof(int32))+(sizeof(float32))+(sizeof(int8)))
00046 #define MSTRSIZE        ((3*sizeof(int16))+(1*sizeof(int32))+(sizeof(float32)))
00047 */
00048 #define SLVSIZE         (2*sizeof(float32))
00049 
00050 /*  Global (file-level) Attributes  */
00051 #define TITLE_VAL    "SeaWiFS Level-3 Binned Data"
00052 #define SENSORNM_VAL     "SeaWiFS"
00053 #define DCENTER_VAL  "NASA/GSFC SeaWiFS Data Processing Center"
00054 #define MISSION_VAL  "SeaStar SeaWiFS"
00055 #define MSNCHAR_VAL  "Nominal orbit: inclination = 98.2 (Sun-synchronous); node = 12 noon local (descending); eccentricity = <0.002; altitude = 705 km; ground speed = 6.75 km/sec"
00056 #define SENSOR_VAL   "Sea-viewing Wide Field-of-view Sensor (SeaWiFS)"
00057 #define SNSCHAR_VAL        "Number of bands = 8; number of active bands = 8; wavelengths per band (nm) = 412, 443, 490, 510, 555, 670, 765, 865; bits per pixel = 10; instantaneous field-of-view = 1.5835 mrad; pixels per scan = 1285; scan rate = 6/sec; sample rate = 7710/sec"
00058 
00059 #define LATUNITS_VAL    "degrees North"
00060 #define LONUNITS_VAL    "degrees East"
00061 #define STATION_VAL     "Wallops Flight Facility"
00062 #define ATTR     "Attr0.0"
00063 
00064 /*  File Types  */
00065 #define SCENE   1
00066 #define DAILY   2
00067 #define OTHER   3
00068 
00069 /*  File Type Strings  */
00070 #define SSPAN  "Scene"
00071 #define DSPAN  "Daily"
00072 #define D8SPAN "8-day"
00073 #define MSPAN  "Monthly"
00074 #define YSPAN  "Yearly"
00075 
00076 /*  Registration Constants  */
00077 #define UNKNOWN 0
00078 #define NW  1
00079 #define NORTH   2
00080 #define NE  3
00081 #define WEST    4
00082 #define CENTER  5
00083 #define EAST    6
00084 #define SW  7
00085 #define SOUTH   8
00086 #define SE  9
00087 
00088 /*  Misc.  */
00089 #define YES 1
00090 #define NO  0
00091 
00092 #define RADCONV 0.017453292
00093 
00094 #define MAXVAL     255
00095 #define MAXDIMS 3
00096 #define MAX_OUT 16
00097 
00098 #define NPARMS  25
00099 
00100 /*#define TOTBINS 5940422*/
00101 
00102 /*  Buffer Sizes (bins)  */
00103 #ifndef SMALL
00104 #define SCNINIT     150000
00105 #define DAYINIT     500000
00106 #define BIGINIT     1000000
00107 #define BLKSIZE     2500
00108 #else
00109 #define SCNINIT     1000
00110 #define DAYINIT     5000
00111 #define BIGINIT     10000
00112 #define BLKSIZE     1000
00113 #endif
00114 
00115 /*  Time Conversion Constants  */
00116 #define MSECHOUR 3600000
00117 #define MSECMIN  60000
00118 #define MSECSEC  1000
00119 
00120 /*  Specific to level 3 binned data read routines */
00121 
00122 #define MAX_IN  100
00123 #define BUFSZ   1000 
00124 
00125 #define FSIZE           "File size"
00126 
00127 #define PRODUCT_NAME    "Product Name"
00128 #define TITLE           "Title"
00129 #define SENSOR_NAME     "Sensor Name"
00130 #define DATA_CENTER     "Data Center"
00131 #define MISSION         "Mission"
00132 #define MISSION_CHAR    "Mission Characteristics"
00133 #define SENSOR          "Sensor"
00134 #define SENSOR_CHAR     "Sensor Characteristics"
00135 #define STATION         "Station Name"
00136 #define STATION_LAT     "Station Latitude"
00137 #define STATION_LON     "Station Longitude"
00138 #define UNITS           "Units"
00139 #define PROD_TYPE       "Product Type"
00140 #define PVERSION        "Processing Version"
00141 #define REPLACE         "Replacement Flag"
00142 #define SOFT_NAME       "Software Name"
00143 #define SOFT_VER        "Software Version"
00144 #define PTIME           "Processing Time"
00145 #define PROC_CON        "Processing Control"
00146 #define INPUT_PARMS     "Input Parameters"
00147 #define FLAG_NAMES  "L2 Flag Names"
00148 #define FLAG_USE    "L2 Flag Usage"
00149 #define ENG_Q_USE   "L2 Engineering Quality Usage"
00150 #define INFILES         "Input Files"
00151 #define BIN_SYEAR       "Period Start Year"
00152 #define BIN_SDAY        "Period Start Day"
00153 #define BIN_EYEAR       "Period End Year"
00154 #define BIN_EDAY        "Period End Day"
00155 #define STIME       "Start Time"
00156 #define ETIME       "End Time"
00157 #define SYEAR           "Start Year"
00158 #define SDAY            "Start Day"
00159 #define SMSEC           "Start Millisec"
00160 #define EYEAR           "End Year"
00161 #define EDAY            "End Day"
00162 #define EMSEC           "End Millisec"
00163 #define ORBIT       "Orbit"
00164 #define S_ORBIT     "Start Orbit"
00165 #define E_ORBIT     "End Orbit"
00166 #define LAT_UNITS       "Latitude Units"
00167 #define LON_UNITS       "Longitude Units"
00168 #define DATABINS        "Data Bins"
00169 #define PCT_DATABINS    "Percent Data Bins"
00170 #endif /* SEABIN_H */
00171 
00172 
00173