ocssw
V2022
|
#include "l3mapgen.h"
#include "OutFile.h"
#include <L3FileSMI.h>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <genutils.h>
#include <timeutils.h>
#include <nc4utils.h>
#include <string>
#include <proj.h>
#include <sensorInfo.h>
#include <productInfo.h>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <unordered_map>
#include <unordered_set>
Go to the source code of this file.
Namespaces | |
wv3d | |
Macros | |
#define | EXIT_LOG(...) |
#define | NUM_SEARCH_POINTS 51 |
Enumerations | |
enum | MeasurementType { Avg, Stdev, Variance, Nobs, Nscenes, ObsTime, BinNum } |
enum | InterpType { Interp_Nearest, Interp_Bin, Interp_Linear, Interp_Area } |
enum | EastWest { notEastOrWest, IsEast, IsWest } |
Variables | |
std::vector< std::string > | wavelength_3d_list_separated |
std::unordered_map< std::string, std::vector< int32_t > > | wv3d_2d_name_to_3d_expansion |
std::unordered_map< std::string, std::string > | wv3d_3d_name_to_2d_name |
std::vector< std::string > | output_products_with_3d |
size_t | wavelength_3d_size |
double | widthInDeg |
double | heightInDeg |
double | mapEast |
double | mapWest |
int | imageWidth = 0 |
int | imageHeight = 0 |
bool | doingQuality = false |
bool | doingRGB = false |
bool | doingTransparency = false |
bool | trimNSEW = false |
bool | write_projtext = false |
string | prodName |
vector< string > | prodNameList |
vector< MeasurementType > | prodMeasurementList |
string | qualName |
clo_optionList_t * | optionList = NULL |
bool | applyMask = false |
Macro Definition Documentation
◆ EXIT_LOG
#define EXIT_LOG | ( | ... | ) |
Definition at line 29 of file l3mapgen.cpp.
◆ NUM_SEARCH_POINTS
#define NUM_SEARCH_POINTS 51 |
Definition at line 39 of file l3mapgen.cpp.
Enumeration Type Documentation
◆ EastWest
enum EastWest |
Enumerator | |
---|---|
notEastOrWest | |
IsEast | |
IsWest |
Definition at line 43 of file l3mapgen.cpp.
◆ InterpType
enum InterpType |
Enumerator | |
---|---|
Interp_Nearest | |
Interp_Bin | |
Interp_Linear | |
Interp_Area |
Definition at line 42 of file l3mapgen.cpp.
◆ MeasurementType
enum MeasurementType |
Enumerator | |
---|---|
Avg | |
Stdev | |
Variance | |
Nobs | |
Nscenes | |
ObsTime | |
BinNum |
Definition at line 41 of file l3mapgen.cpp.
Function Documentation
◆ checkDateLineCrossed()
bool checkDateLineCrossed | ( | double | lon, |
double | deltaLon | ||
) |
Definition at line 252 of file l3mapgen.cpp.
◆ get_len_wv3d()
size_t get_len_wv3d | ( | ) |
Definition at line 61 of file l3mapgen.cpp.
◆ get_modifier_from_measure()
std::string get_modifier_from_measure | ( | MeasurementType | measure | ) |
Definition at line 65 of file l3mapgen.cpp.
◆ get_wv3d_2d_name_to_3d_expansion()
const std::unordered_map<std::string, std::vector<int32_t> >& get_wv3d_2d_name_to_3d_expansion | ( | ) |
Definition at line 53 of file l3mapgen.cpp.
◆ get_wv3d_3d_name_to_2d_name()
const std::unordered_map<std::string, std::string>& get_wv3d_3d_name_to_2d_name | ( | ) |
Definition at line 57 of file l3mapgen.cpp.
◆ getBox()
Box_t getBox | ( | float | lat, |
float | lon, | ||
float | deltaLat, | ||
float | deltaLon, | ||
int | eastwest = notEastOrWest |
||
) |
Definition at line 264 of file l3mapgen.cpp.
◆ getBoxBins()
L3Bin* getBoxBins | ( | L3File * | l3File, |
float | lat, | ||
float | lon, | ||
float | deltaLat, | ||
float | deltaLon, | ||
float | fudge, | ||
bool | areaWeighted, | ||
int | eastwest = notEastOrWest |
||
) |
Definition at line 288 of file l3mapgen.cpp.
◆ getCentralMeridian()
float getCentralMeridian | ( | ) |
Definition at line 194 of file l3mapgen.cpp.
◆ interpStr2Type()
InterpType interpStr2Type | ( | const char * | str | ) |
Definition at line 222 of file l3mapgen.cpp.
◆ interpType2Str()
const char* interpType2Str | ( | InterpType | interp | ) |
Definition at line 237 of file l3mapgen.cpp.
◆ isLand()
int isLand | ( | float | lat, |
float | lon | ||
) |
Definition at line 110 of file l3mapgen.cpp.
◆ main()
int main | ( | int | argc, |
char * | argv[] | ||
) |
An implementation of a Lon/Lat to UTM zone code written by Chuck Gantz chuck ...in 1998...found on .gan tz@gl obal star. comhttp://www.gpsy.com/gpsinfo/geotoutm/, a site published by Karen Nakamura, last updated 22 June 2000.
Minor modifications to the code were made to eliminate deprecation warnings
Setup l2str to read l2_name
check if the georegion has been supplied and check if it exists and can be opened.
Definition at line 1734 of file l3mapgen.cpp.
◆ makeOutputFile()
Definition at line 1641 of file l3mapgen.cpp.
◆ makeOutputFileList()
vector<OutFile*> makeOutputFileList | ( | clo_optionList_t * | optionList | ) |
Definition at line 1692 of file l3mapgen.cpp.
◆ printEndInfo()
void printEndInfo | ( | OutFile * | outFile | ) |
Definition at line 173 of file l3mapgen.cpp.
◆ printPercentDone()
void printPercentDone | ( | float | percentDone | ) |
Definition at line 184 of file l3mapgen.cpp.
◆ printStartInfo()
Definition at line 120 of file l3mapgen.cpp.
◆ setupProduct()
void setupProduct | ( | string & | prodName, |
MeasurementType | measure, | ||
OutFile * | outFile, | ||
OutFile * | outFile2 | ||
) |
Definition at line 346 of file l3mapgen.cpp.
◆ setupQualityProcessing()
figure out if we want and can do quality processing
- Parameters
-
l3File input bin file outFile output file
Definition at line 306 of file l3mapgen.cpp.
◆ writeProj4File()
void writeProj4File | ( | L3File * | l3File, |
char * | projectionStr, | ||
vector< OutFile * > | outFiles, | ||
OutFile * | outFile2, | ||
bool | trimNSEW | ||
) |
Definition at line 927 of file l3mapgen.cpp.
◆ writeRawFile()
Definition at line 572 of file l3mapgen.cpp.
◆ writeSmiFile()
Definition at line 739 of file l3mapgen.cpp.
Variable Documentation
◆ applyMask
bool applyMask = false |
Definition at line 107 of file l3mapgen.cpp.
◆ doingQuality
bool doingQuality = false |
Definition at line 93 of file l3mapgen.cpp.
◆ doingRGB
bool doingRGB = false |
Definition at line 94 of file l3mapgen.cpp.
◆ doingTransparency
bool doingTransparency = false |
Definition at line 95 of file l3mapgen.cpp.
◆ heightInDeg
double heightInDeg |
Definition at line 87 of file l3mapgen.cpp.
◆ imageHeight
int imageHeight = 0 |
Definition at line 92 of file l3mapgen.cpp.
◆ imageWidth
int imageWidth = 0 |
Definition at line 91 of file l3mapgen.cpp.
◆ mapEast
double mapEast |
Definition at line 88 of file l3mapgen.cpp.
◆ mapWest
double mapWest |
Definition at line 89 of file l3mapgen.cpp.
◆ optionList
clo_optionList_t* optionList = NULL |
Definition at line 104 of file l3mapgen.cpp.
◆ prodMeasurementList
vector<MeasurementType> prodMeasurementList |
Definition at line 101 of file l3mapgen.cpp.
◆ prodName
string prodName |
Definition at line 99 of file l3mapgen.cpp.
◆ prodNameList
Definition at line 100 of file l3mapgen.cpp.
◆ qualName
string qualName |
Definition at line 102 of file l3mapgen.cpp.
◆ trimNSEW
bool trimNSEW = false |
Definition at line 96 of file l3mapgen.cpp.
◆ widthInDeg
double widthInDeg |
Definition at line 86 of file l3mapgen.cpp.
◆ write_projtext
bool write_projtext = false |
Definition at line 97 of file l3mapgen.cpp.