OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
ice2hdf.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <clo.h>
#include <hdf_utils.h>
#include <genutils.h>
Include dependency graph for ice2hdf.c:

Go to the source code of this file.

Classes

struct  data_file_t
 

Macros

#define PROGRAM   "ice2hdf"
 
#define VERSION   "1.2"
 
#define FMT_L2HDF   2
 
#define DATA_CITATION   "Meier, W., F. Fetterer, K. Knowles, M. Savoie, M. J. Brodzik. 2006, updated quarterly. Sea ice concentrations from Nimbus-7 SMMR and DMSP SSM/I passive microwave data. Boulder, Colorado USA: National Snow and Ice Data Center. Digital media."
 
#define WEB_SITE   "http://nsidc.org/data/docs/daac/nsidc0051_gsfc_seaice.gd.html"
 
#define FTP_SITE   "ftp://sidads.colorado.edu/pub/DATASETS/seaice/polar-stereo/nasateam/near-real-time"
 
#define HEADER_SIZE   300
 
#define NORTH_ROWS   448
 
#define NORTH_COLS   304
 
#define SOUTH_ROWS   332
 
#define SOUTH_COLS   316
 
#define MAX_DATA   250
 
#define POLAR_HOLE   251
 
#define MISSING_DATA   255
 

Functions

data_file_tallocateDataFile (char *filename, int32 numRows, int32 numCols)
 
void readFile (data_file_t *dataFile)
 
void maskData (data_file_t *dataFile, data_file_t *maskFile, int numVals, int *vals)
 
void fillHoles (data_file_t *dataFile)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ DATA_CITATION

#define DATA_CITATION   "Meier, W., F. Fetterer, K. Knowles, M. Savoie, M. J. Brodzik. 2006, updated quarterly. Sea ice concentrations from Nimbus-7 SMMR and DMSP SSM/I passive microwave data. Boulder, Colorado USA: National Snow and Ice Data Center. Digital media."

Definition at line 14 of file ice2hdf.c.

◆ FMT_L2HDF

#define FMT_L2HDF   2

Definition at line 12 of file ice2hdf.c.

◆ FTP_SITE

#define FTP_SITE   "ftp://sidads.colorado.edu/pub/DATASETS/seaice/polar-stereo/nasateam/near-real-time"

Definition at line 16 of file ice2hdf.c.

◆ HEADER_SIZE

#define HEADER_SIZE   300

Definition at line 18 of file ice2hdf.c.

◆ MAX_DATA

#define MAX_DATA   250

Definition at line 25 of file ice2hdf.c.

◆ MISSING_DATA

#define MISSING_DATA   255

Definition at line 27 of file ice2hdf.c.

◆ NORTH_COLS

#define NORTH_COLS   304

Definition at line 21 of file ice2hdf.c.

◆ NORTH_ROWS

#define NORTH_ROWS   448

Definition at line 20 of file ice2hdf.c.

◆ POLAR_HOLE

#define POLAR_HOLE   251

Definition at line 26 of file ice2hdf.c.

◆ PROGRAM

#define PROGRAM   "ice2hdf"

Definition at line 10 of file ice2hdf.c.

◆ SOUTH_COLS

#define SOUTH_COLS   316

Definition at line 23 of file ice2hdf.c.

◆ SOUTH_ROWS

#define SOUTH_ROWS   332

Definition at line 22 of file ice2hdf.c.

◆ VERSION

#define VERSION   "1.2"

Definition at line 11 of file ice2hdf.c.

◆ WEB_SITE

#define WEB_SITE   "http://nsidc.org/data/docs/daac/nsidc0051_gsfc_seaice.gd.html"

Definition at line 15 of file ice2hdf.c.

Function Documentation

◆ allocateDataFile()

data_file_t* allocateDataFile ( char *  filename,
int32  numRows,
int32  numCols 
)

Definition at line 45 of file ice2hdf.c.

◆ fillHoles()

void fillHoles ( data_file_t dataFile)

Definition at line 161 of file ice2hdf.c.

◆ main()

int main ( int  argc,
char *  argv[] 
)

An implementation of a Lon/Lat to UTM zone code written by Chuck Gantz chuck.nosp@m..gan.nosp@m.tz@gl.nosp@m.obal.nosp@m.star..nosp@m.com ...in 1998...found on http://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

Definition at line 239 of file ice2hdf.c.

◆ maskData()

void maskData ( data_file_t dataFile,
data_file_t maskFile,
int  numVals,
int *  vals 
)

Definition at line 129 of file ice2hdf.c.

◆ readFile()

void readFile ( data_file_t dataFile)

Definition at line 63 of file ice2hdf.c.