OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
filetype.c File Reference
#include <netcdf.h>
#include <hdf.h>
#include <hdf5.h>
#include <libgen.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <dfutils.h>
#include <genutils.h>
#include <sensorDefs.h>
#include <sensorInfo.h>
#include <mfhdf.h>
#include "aviris.h"
#include "epr_api.h"
#include "filetype.h"
Include dependency graph for filetype.c:

Go to the source code of this file.

Macros

#define EOSMETALEN   32768
 

Functions

file_format chk_safe_xml (char *filename)
 
file_type getFormatType (char *filename)
 
file_format getFormat (char *filename)
 
file_format chk_oli_geo (char *filename)
 
file_format chk_l5tm_geo (char *filename)
 

Macro Definition Documentation

◆ EOSMETALEN

#define EOSMETALEN   32768

Definition at line 23 of file filetype.c.

Function Documentation

◆ chk_l5tm_geo()

file_format chk_l5tm_geo ( char *  filename)

Definition at line 1245 of file filetype.c.

◆ chk_oli_geo()

file_format chk_oli_geo ( char *  filename)

Definition at line 969 of file filetype.c.

◆ chk_safe_xml()

file_format chk_safe_xml ( char *  filename)

chk_olci purpose: check a file to see if it is an OLCI xml file If it is, populate the data pointer with filenames associated with Lt's, instrument and geometry data Returns -1 if not OLCI or the format code

Parameters
char*fname - name of file to check
filehandle*file - input file information

Author: R. Healy (SAIC) 7/29/2015 W. Robinson, SAIC, 18 Feb 2016 pad out the olci file name storage by 1 to accomodate trailing null, allow xml files with alternate product name to be accepted as olci files s

Definition at line 43 of file filetypeXml.cpp.

◆ getFormat()

file_format getFormat ( char *  filename)

Definition at line 192 of file filetype.c.

◆ getFormatType()

file_type getFormatType ( char *  filename)

Definition at line 187 of file filetype.c.