ocssw
V2022
|
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
Go to the source code of this file.
Classes | |
struct | pri_hdr |
struct | modis_hdr |
Macros | |
#define | NAME "pdsmerge" |
#define | VERSION 1 |
#define | REVISION 3 |
#define | USAGE "start_date end_date APID <input 1> [<input 2> [...]] output\nstart_date/end_date: YYYY/MM/DD,hh:mm:ss or -" |
#define | PRI_HDR_SIZE 6 |
#define | MODIS_HDR_SIZE 12 |
#define | DATA_SIZE 100000 |
#define | MODIS_REF_DATE 2436205.0 |
Functions | |
int | ReadPriHdr (FILE *f, unsigned char *buf) |
int | WritePriHdr (FILE *f, unsigned char *buf) |
int | DecodePriHdr (unsigned char *buf, struct pri_hdr *hdr) |
int | DecodeMODISHdr (unsigned char *buf, int len, struct modis_hdr *hdr) |
void | julday (int minute, int hour, int day, int month, int year, double *jul) |
void | caldat (int *minute, int *hour, int *day, int *month, int *year, double jul) |
int | CalcChecksum12 (unsigned char *buf, int n) |
int | main (int argc, char *argv[]) |
Macro Definition Documentation
◆ DATA_SIZE
#define DATA_SIZE 100000 |
Definition at line 75 of file pdsmerge.c.
◆ MODIS_HDR_SIZE
#define MODIS_HDR_SIZE 12 |
Definition at line 73 of file pdsmerge.c.
◆ MODIS_REF_DATE
#define MODIS_REF_DATE 2436205.0 |
Definition at line 77 of file pdsmerge.c.
◆ NAME
#define NAME "pdsmerge" |
Definition at line 63 of file pdsmerge.c.
◆ PRI_HDR_SIZE
#define PRI_HDR_SIZE 6 |
Definition at line 71 of file pdsmerge.c.
◆ REVISION
#define REVISION 3 |
Definition at line 67 of file pdsmerge.c.
◆ USAGE
#define USAGE "start_date end_date APID <input 1> [<input 2> [...]] output\nstart_date/end_date: YYYY/MM/DD,hh:mm:ss or -" |
Definition at line 69 of file pdsmerge.c.
◆ VERSION
#define VERSION 1 |
Definition at line 65 of file pdsmerge.c.
Function Documentation
◆ CalcChecksum12()
int CalcChecksum12 | ( | unsigned char * | buf, |
int | n | ||
) |
Definition at line 843 of file pdsmerge.c.
◆ caldat()
void caldat | ( | int * | minute, |
int * | hour, | ||
int * | day, | ||
int * | month, | ||
int * | year, | ||
double | jul | ||
) |
Definition at line 799 of file pdsmerge.c.
◆ DecodeMODISHdr()
int DecodeMODISHdr | ( | unsigned char * | buf, |
int | len, | ||
struct modis_hdr * | hdr | ||
) |
Definition at line 681 of file pdsmerge.c.
◆ DecodePriHdr()
int DecodePriHdr | ( | unsigned char * | buf, |
struct pri_hdr * | hdr | ||
) |
Definition at line 638 of file pdsmerge.c.
◆ julday()
void julday | ( | int | minute, |
int | hour, | ||
int | day, | ||
int | month, | ||
int | year, | ||
double * | jul | ||
) |
Definition at line 753 of file pdsmerge.c.
◆ main()
int main | ( | int | argc, |
char * | argv[] | ||
) |
An implementation of a Lon/Lat to UTM zone code written by Chuck Gantz chuck ...in 1998...found on .gan tz@gl obal star. comhttp://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 137 of file pdsmerge.c.
◆ ReadPriHdr()
int ReadPriHdr | ( | FILE * | f, |
unsigned char * | buf | ||
) |
Definition at line 598 of file pdsmerge.c.
◆ WritePriHdr()
int WritePriHdr | ( | FILE * | f, |
unsigned char * | buf | ||
) |
Definition at line 618 of file pdsmerge.c.