OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
read_crtt.c File Reference
#include <libgen.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "l1czcs.h"
#include "navigation.h"
Include dependency graph for read_crtt.c:

Go to the source code of this file.

Macros

#define CTL_PT_INC   8 /* control point incriment (fixed for now) */
 
#define N_ANCHOR   77
 

Functions

int read_crtt (char *crtt_file, gattr_struc *gattr, l1_data_struc *l1_data)
 
float fixed_pt_2_floating_pt (int num, int position)
 
void get_record_info (HEADER1_TYPE header1, short *hdrsz, short *datarecsz, short *offsethdr, short *offsetdata, short *numrecs)
 
short reverse_short_int (short num)
 
int32_t reverse_long_int (int32_t num)
 

Macro Definition Documentation

◆ CTL_PT_INC

#define CTL_PT_INC   8 /* control point incriment (fixed for now) */

Definition at line 8 of file read_crtt.c.

◆ N_ANCHOR

#define N_ANCHOR   77

Definition at line 9 of file read_crtt.c.

Function Documentation

◆ fixed_pt_2_floating_pt()

float fixed_pt_2_floating_pt ( int  num,
int  position 
)

Definition at line 211 of file read_crtt.c.

◆ get_record_info()

void get_record_info ( HEADER1_TYPE  header1,
short *  hdrsz,
short *  datarecsz,
short *  offsethdr,
short *  offsetdata,
short *  numrecs 
)

Definition at line 227 of file read_crtt.c.

◆ read_crtt()

int read_crtt ( char *  crtt_file,
gattr_struc *  gattr,
l1_data_struc *  l1_data 
)

Definition at line 11 of file read_crtt.c.

◆ reverse_long_int()

int32_t reverse_long_int ( int32_t  num)

Definition at line 284 of file read_crtt.c.

◆ reverse_short_int()

short reverse_short_int ( short  num)

Definition at line 267 of file read_crtt.c.