#include <netcdf>
#include <iostream>
#include "l1_seawifs_netcdf.h"
#include "l1.h"
#include "l1a.h"
#include "eng_qual.h"
#include "cal_l1a.h"
#include "call1a_proto.h"
#include "getcal_proto.h"
#include "l1a_proto.h"
#include "navigation.h"
#include "st_proto.h"
Go to the source code of this file.
|
void | getVariableAndCopyToRdBuffer (inputBuffer rdBuf[], byte genBuf[], NcFile &dataFile, string variable, size_t start0, size_t start1, size_t start2, size_t count0, size_t count1, size_t count2, int numBytes, int n_read) |
|
int32_t | get_l1a_rec_netcdf (filehandle *file, int32_t recno, cal_mod_struc *cal_mod, int16_t *l1a_dum, float **l1b_data, int16_t **l2_flags) |
|
int | openl1_seawifs_netcdf (filehandle *file) |
|
int | readl1_seawifs_netcdf (filehandle *file, int32_t recnum, l1str *l1rec) |
|
int | readl1_lonlat_seawifs_netcdf (filehandle *file, int32_t recnum, l1str *l1rec) |
|
int | closel1_seawifs_netcdf (filehandle *file) |
|
◆ FIRST_KNEE
◆ GAC_PIXEL_NUM
#define GAC_PIXEL_NUM 248 |
◆ GENBUFSIZ
#define GENBUFSIZ NREC_IN_BUF*sizeof(float)*40 /* size of inst_ana */ |
◆ LAC_PIXEL_NUM
#define LAC_PIXEL_NUM 1285 |
◆ MASK_HIGHLT1
◆ NOTDONE
◆ NREC_IN_BUF
◆ STBUFSIZ
◆ closel1_seawifs_netcdf()
int closel1_seawifs_netcdf |
( |
filehandle * |
file | ) |
|
◆ get_l1a_rec_netcdf()
int32_t get_l1a_rec_netcdf |
( |
filehandle * |
file, |
|
|
int32_t |
recno, |
|
|
cal_mod_struc * |
cal_mod, |
|
|
int16_t * |
l1a_dum, |
|
|
float ** |
l1b_data, |
|
|
int16_t ** |
l2_flags |
|
) |
| |
◆ getVariableAndCopyToRdBuffer()
void getVariableAndCopyToRdBuffer |
( |
inputBuffer |
rdBuf[], |
|
|
byte |
genBuf[], |
|
|
NcFile & |
dataFile, |
|
|
string |
variable, |
|
|
size_t |
start0, |
|
|
size_t |
start1, |
|
|
size_t |
start2, |
|
|
size_t |
count0, |
|
|
size_t |
count1, |
|
|
size_t |
count2, |
|
|
int |
numBytes, |
|
|
int |
n_read |
|
) |
| |
Given a variable, get the data from the netcdf file and save it to genBuf then copy what is in genBuf into the rdBuf
- Parameters
-
rdBuf | - rdBuf referenced in get_l1a_rec |
genBuf | - arr referenced in get_l1a_rec |
dataFile | - netcdf file reference that is currently open |
variable | - what to read from the netcdf file |
start<n> | - start index of the netcdf |
count<n> | - defines how many values should be read relative to start |
numBytes | - when copying, how many bytes of data is being copied |
n_read | |
Definition at line 95 of file l1_seawifs_netcdf.cpp.
◆ openl1_seawifs_netcdf()
int openl1_seawifs_netcdf |
( |
filehandle * |
file | ) |
|
◆ readl1_lonlat_seawifs_netcdf()
int readl1_lonlat_seawifs_netcdf |
( |
filehandle * |
file, |
|
|
int32_t |
recnum, |
|
|
l1str * |
l1rec |
|
) |
| |
◆ readl1_seawifs_netcdf()
int readl1_seawifs_netcdf |
( |
filehandle * |
file, |
|
|
int32_t |
recnum, |
|
|
l1str * |
l1rec |
|
) |
| |