OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
swl1_hdf.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libgen.h>
#include <time.h>
#include <math.h>
#include <GetStationInfo.h>
#include "swl0_proto.h"
#include <dfutils.h>
#include <timeutils.h>
Include dependency graph for swl1_hdf.c:

Go to the source code of this file.

Macros

#define SENSOR   "Sea-viewing Wide Field-of-view Sensor (SeaWiFS)"
 
#define MISSIONCHAR   "Nominal orbit: inclination = 98.2 (Sun-synchronous); node = 12 noon local (descending); eccentricity = <0.002; altitude = 705 km; ground speed = 6.75 km/sec"
 
#define SENSORCHAR   "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"
 

Functions

int CreateL1aFile (char *path, swl0scene *scene, char *proccon, char *proclog, swl0ctl *l0ctl)
 
int CreateScanData (int32 ns, int32 np)
 
int WriteScanData (int32 scan, swl1rec *l1rec)
 
int CloseL1aFile (l1met *metrics)
 
int AddTiltData (int32 ntilts, int16 tilt_flags[20], int16 tilt_ranges[20][2], float32 tilt_lats[20][2][2], float32 tilt_lons[20][2][2])
 
int AddCalData (void)
 
int MakeVgroups (void)
 
char * L1aFilename (swl0ctl *l0ctl, double time, unsigned char dataType)
 
char * DTypeString (unsigned char dataType)
 
char * DataTypeString (swl0ctl *l0ctl, unsigned char dataType)
 
void DecomposeTime (double dtime, int16 *year, int16 *dayofyear, int32 *millisec)
 

Macro Definition Documentation

◆ MISSIONCHAR

#define MISSIONCHAR   "Nominal orbit: inclination = 98.2 (Sun-synchronous); node = 12 noon local (descending); eccentricity = <0.002; altitude = 705 km; ground speed = 6.75 km/sec"

Definition at line 31 of file swl1_hdf.c.

◆ SENSOR

#define SENSOR   "Sea-viewing Wide Field-of-view Sensor (SeaWiFS)"

Definition at line 30 of file swl1_hdf.c.

◆ SENSORCHAR

#define SENSORCHAR   "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"

Definition at line 32 of file swl1_hdf.c.

Function Documentation

◆ AddCalData()

int AddCalData ( void  )

Definition at line 911 of file swl1_hdf.c.

◆ AddTiltData()

int AddTiltData ( int32  ntilts,
int16  tilt_flags[20],
int16  tilt_ranges[20][2],
float32  tilt_lats[20][2][2],
float32  tilt_lons[20][2][2] 
)

Definition at line 810 of file swl1_hdf.c.

◆ CloseL1aFile()

int CloseL1aFile ( l1met *  metrics)

Definition at line 777 of file swl1_hdf.c.

◆ CreateL1aFile()

int CreateL1aFile ( char *  path,
swl0scene *  scene,
char *  proccon,
char *  proclog,
swl0ctl *  l0ctl 
)

Definition at line 39 of file swl1_hdf.c.

◆ CreateScanData()

int CreateScanData ( int32  ns,
int32  np 
)

Definition at line 195 of file swl1_hdf.c.

◆ DataTypeString()

char* DataTypeString ( swl0ctl *  l0ctl,
unsigned char  dataType 
)

Definition at line 1294 of file swl1_hdf.c.

◆ DecomposeTime()

void DecomposeTime ( double  dtime,
int16 *  year,
int16 *  dayofyear,
int32 *  millisec 
)

Definition at line 1331 of file swl1_hdf.c.

◆ DTypeString()

char* DTypeString ( unsigned char  dataType)

Definition at line 1275 of file swl1_hdf.c.

◆ L1aFilename()

char* L1aFilename ( swl0ctl *  l0ctl,
double  time,
unsigned char  dataType 
)

Definition at line 1245 of file swl1_hdf.c.

◆ MakeVgroups()

int MakeVgroups ( void  )

Definition at line 1128 of file swl1_hdf.c.

◆ WriteScanData()

int WriteScanData ( int32  scan,
swl1rec *  l1rec 
)

Definition at line 672 of file swl1_hdf.c.