|
ocssw
V2022
|
#include <netcdf>#include <iostream>#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 <timeutils.h>#include "global_attrs.h"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 | |
| void | addAttribute_netcdf (NcVar &variable, string longName, string unit, bool hasValidRange, int validMin, int validMax, NcType validMinMaxType) |
| void | addAttribute_netcdf (NcVar &variable, string longName, string unit, bool hasValidRange, double validMin, double validMax, NcType validMinMaxType) |
| int | CreateL1aFile_netcdf (char *path, swl0scene *scene, char *proccon, char *proclog, swl0ctl *l0ctl) |
| int | writeSingleSubsetVarData_netcdf (string ncVarName, size_t rowIndex, size_t colIndex, const void *data) |
| int | write2DSubsetVarData_netcdf (string ncVarName, size_t rowIndex, size_t colIndex, size_t subsetArrRowSize, size_t subsetArrColSize, const void *data) |
| int | write3DSubsetVarData_netcdf (string ncVarName, size_t blockIndex, size_t rowIndex, size_t colIndex, size_t subsetArrBlockSize, size_t subsetArrRowSize, size_t subsetArrColSize, const void *data) |
| int | WriteScanData_netcdf (int32 scan, swl1rec *l1rec) |
| int | CloseL1aFile_netcdf (l1met *metrics) |
| int | AddCalData (void) |
| char * | L1aFilename_netcdf (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 36 of file swl1_netcdf.cpp.
◆ SENSOR
Definition at line 35 of file swl1_netcdf.cpp.
◆ 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 37 of file swl1_netcdf.cpp.
Function Documentation
◆ addAttribute_netcdf() [1/2]
| void addAttribute_netcdf | ( | NcVar & | variable, |
| string | longName, | ||
| string | unit, | ||
| bool | hasValidRange, | ||
| double | validMin, | ||
| double | validMax, | ||
| NcType | validMinMaxType | ||
| ) |
Definition at line 88 of file swl1_netcdf.cpp.
◆ addAttribute_netcdf() [2/2]
| void addAttribute_netcdf | ( | NcVar & | variable, |
| string | longName, | ||
| string | unit, | ||
| bool | hasValidRange, | ||
| int | validMin, | ||
| int | validMax, | ||
| NcType | validMinMaxType | ||
| ) |
Definition at line 56 of file swl1_netcdf.cpp.
◆ AddCalData()
| int AddCalData | ( | void | ) |
Definition at line 1128 of file swl1_netcdf.cpp.
◆ CloseL1aFile_netcdf()
| int CloseL1aFile_netcdf | ( | l1met * | metrics | ) |
Definition at line 1092 of file swl1_netcdf.cpp.
◆ CreateL1aFile_netcdf()
| int CreateL1aFile_netcdf | ( | char * | path, |
| swl0scene * | scene, | ||
| char * | proccon, | ||
| char * | proclog, | ||
| swl0ctl * | l0ctl | ||
| ) |
Definition at line 116 of file swl1_netcdf.cpp.
◆ DataTypeString()
| char* DataTypeString | ( | swl0ctl * | l0ctl, |
| unsigned char | dataType | ||
| ) |
Definition at line 1393 of file swl1_netcdf.cpp.
◆ DecomposeTime()
| void DecomposeTime | ( | double | dtime, |
| int16 * | year, | ||
| int16 * | dayofyear, | ||
| int32 * | millisec | ||
| ) |
Definition at line 1430 of file swl1_netcdf.cpp.
◆ DTypeString()
| char* DTypeString | ( | unsigned char | dataType | ) |
Definition at line 1374 of file swl1_netcdf.cpp.
◆ L1aFilename_netcdf()
| char* L1aFilename_netcdf | ( | swl0ctl * | l0ctl, |
| double | time, | ||
| unsigned char | dataType | ||
| ) |
Definition at line 1344 of file swl1_netcdf.cpp.
◆ write2DSubsetVarData_netcdf()
| int write2DSubsetVarData_netcdf | ( | string | ncVarName, |
| size_t | rowIndex, | ||
| size_t | colIndex, | ||
| size_t | subsetArrRowSize, | ||
| size_t | subsetArrColSize, | ||
| const void * | data | ||
| ) |
Definition at line 912 of file swl1_netcdf.cpp.
◆ write3DSubsetVarData_netcdf()
| int write3DSubsetVarData_netcdf | ( | string | ncVarName, |
| size_t | blockIndex, | ||
| size_t | rowIndex, | ||
| size_t | colIndex, | ||
| size_t | subsetArrBlockSize, | ||
| size_t | subsetArrRowSize, | ||
| size_t | subsetArrColSize, | ||
| const void * | data | ||
| ) |
Definition at line 949 of file swl1_netcdf.cpp.
◆ WriteScanData_netcdf()
| int WriteScanData_netcdf | ( | int32 | scan, |
| swl1rec * | l1rec | ||
| ) |
Definition at line 979 of file swl1_netcdf.cpp.
◆ writeSingleSubsetVarData_netcdf()
| int writeSingleSubsetVarData_netcdf | ( | string | ncVarName, |
| size_t | rowIndex, | ||
| size_t | colIndex, | ||
| const void * | data | ||
| ) |
Definition at line 880 of file swl1_netcdf.cpp.


