OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
czcs_l1_write.c File Reference
#include <stdio.h>
#include <libgen.h>
#include "hdf.h"
#include "mfhdf.h"
#include "l1czcs.h"
Include dependency graph for czcs_l1_write.c:

Go to the source code of this file.

Macros

#define TITLE   "Title"
 
#define TITLE_VAL   "CZCS Level-1A Data"
 
#define SENSOR_VAL   "Coastal Zone Color Scanner (CZCS)"
 
#define MISSION   "Mission"
 
#define MISSION_VAL   "Nimbus CZCS"
 
#define MISSIONCHAR   "Mission Characteristics"
 
#define MISSIONCHAR_VAL   "Nominal orbit: inclination = 99.3 (Sun-Synchronous); node = 11:52 AM local (ascending); eccentricity =< 0.0009; altitude = 955km; ground speed = 6.4km/sec"
 
#define SENSOR   "Sensor"
 
#define SENSOR_VAL   "Coastal Zone Color Scanner (CZCS)"
 
#define SENSORCHAR   "Sensor Characteristics"
 
#define SENSORCHAR_VAL   "Number of bands = 6; number of active bands = 6; wavelengths per band (nm) = 443, 520, 550, 670, 750, 11500; bits per pixel = 8; instantaneous field-of-view = .865 mrad; pixels per scan = 1968; scan rate = 8.08/sec"
 
#define REPL_FLG   "ORIGINAL"
 

Functions

int czcs_l1_write (char *ofile, l1_data_struc l1_data, gattr_struc gattr)
 
int create_global_attribute (char *file, int sdfid, gattr_struc gattr)
 
int create_band_sds (int sdfid, int raw_vid, unsigned char *counts[], int tot_pixel, int tot_line)
 

Macro Definition Documentation

◆ MISSION

#define MISSION   "Mission"

◆ MISSION_VAL

#define MISSION_VAL   "Nimbus CZCS"

◆ MISSIONCHAR

#define MISSIONCHAR   "Mission Characteristics"

◆ MISSIONCHAR_VAL

#define MISSIONCHAR_VAL   "Nominal orbit: inclination = 99.3 (Sun-Synchronous); node = 11:52 AM local (ascending); eccentricity =< 0.0009; altitude = 955km; ground speed = 6.4km/sec"

◆ REPL_FLG

#define REPL_FLG   "ORIGINAL"

◆ SENSOR

#define SENSOR   "Sensor"

◆ SENSOR_VAL [1/2]

#define SENSOR_VAL   "Coastal Zone Color Scanner (CZCS)"

◆ SENSOR_VAL [2/2]

#define SENSOR_VAL   "Coastal Zone Color Scanner (CZCS)"

◆ SENSORCHAR

#define SENSORCHAR   "Sensor Characteristics"

◆ SENSORCHAR_VAL

#define SENSORCHAR_VAL   "Number of bands = 6; number of active bands = 6; wavelengths per band (nm) = 443, 520, 550, 670, 750, 11500; bits per pixel = 8; instantaneous field-of-view = .865 mrad; pixels per scan = 1968; scan rate = 8.08/sec"

◆ TITLE

#define TITLE   "Title"

◆ TITLE_VAL

#define TITLE_VAL   "CZCS Level-1A Data"

Function Documentation

◆ create_band_sds()

int create_band_sds ( int  sdfid,
int  raw_vid,
unsigned char *  counts[],
int  tot_pixel,
int  tot_line 
)

Definition at line 425 of file czcs_l1_write.c.

◆ create_global_attribute()

int create_global_attribute ( char *  file,
int  sdfid,
gattr_struc  gattr 
)

Definition at line 102 of file czcs_l1_write.c.

◆ czcs_l1_write()

int czcs_l1_write ( char *  ofile,
l1_data_struc  l1_data,
gattr_struc  gattr 
)

Definition at line 8 of file czcs_l1_write.c.