Go to the documentation of this file.
11 using namespace netCDF;
12 using namespace netCDF::exceptions;
15 static bool firstRun =
true;
33 printf(
"Loading Pixel Ancillary Data from %s\n",
filename);
37 if(
title !=
"Pixel Ancillary Data") {
38 printf(
"-E- %s:%d - %s is not a per Pixel Ancillary Data file.\n",
43 if(
ncFile->getDim(
"number_of_lines").getSize() != (
size_t)
l1rec->l1file->nscan) {
44 printf(
"-E- %s:%d - number_of_lines in %s, must be equal to number of line in the L1 file.\n",
48 if(
ncFile->getDim(
"pixels_per_line").getSize() != (
size_t)
l1rec->l1file->npix) {
49 printf(
"-E- %s:%d - pixels_per_line in %s, must be equal to number of pixels in the L1 file.\n",
64 }
catch (NcException& e) {
65 printf(
"-E- %s:%d - Problem initializing pixel_anc_file %s\n", __FILE__, __LINE__,
filename);
66 printf(
" %s\n", e.what());
109 }
catch (NcException& e) {
110 printf(
"-E- %s:%d - Problem reading pixel_anc_file %s\n", __FILE__, __LINE__,
filename);
111 printf(
" %s\n", e.what());
NcVar relativeHumidityVar
char filename[FILENAME_MAX]
void read_pixel_anc_file(char *filename, l1str *l1rec)