Former-commit-id:133dc97f67
[formerlya02aeb236c
] [formerly9f19e3f712
] [formerly133dc97f67
[formerlya02aeb236c
] [formerly9f19e3f712
] [formerly06a8b51d6d
[formerly9f19e3f712
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]]] Former-commit-id:06a8b51d6d
Former-commit-id:9bb8decbcf
[formerly8e80217e59
] [formerly377dcd10b9
[formerly3360eb6c5f
]] Former-commit-id:377dcd10b9
Former-commit-id:e2ecdcfe33
45 lines
1.2 KiB
C
45 lines
1.2 KiB
C
/*
|
|
* packgrib.h
|
|
*
|
|
* Created on: Aug 26, 2011
|
|
* Author: snaples
|
|
*/
|
|
/*
|
|
|
|
packgrib.h
|
|
|
|
function prototypes for packgrid_.c file
|
|
|
|
*/
|
|
#ifndef PACKGRIB_H
|
|
#define PACKGRIB_H
|
|
|
|
void setBits(size_t *buf,size_t loc,size_t off,size_t bits);
|
|
|
|
#if defined(LINUX) || defined(linux)
|
|
void p_swap4(size_t *buf,size_t length);
|
|
#endif
|
|
|
|
int iround(double val);
|
|
|
|
size_t real2ibm(double native_real);
|
|
|
|
void packIS(int *grib_lbl,size_t *out_buf,size_t *out_buf_len,size_t *grib_length);
|
|
|
|
|
|
void packPDS(int *grib_lbl,char *pds_ext,size_t *pds_ext_length,size_t *out_buf,
|
|
size_t *out_buf_len,size_t *grib_length,size_t *off,unsigned char *pds_flag);
|
|
|
|
void packGDS(int *grib_lbl,size_t *out_buf,size_t *out_buf_len,size_t *grib_length,size_t *off);
|
|
|
|
void packBDS(int *grib_lbl,float *gridpoints,size_t *gi_len,float miss_val,
|
|
size_t *out_buf,size_t *out_buf_len,size_t *grib_length,size_t off,
|
|
unsigned char *pds_flag);
|
|
|
|
void packEND(size_t *out_buf,size_t *out_buf_len,size_t *grib_length);
|
|
|
|
int packgrib(int *grib_lbl,char *pds_ext,size_t *pds_ext_length,float *gridpoints,
|
|
size_t *gi_len,float *miss_val,size_t *out_buf,size_t *out_buf_len,
|
|
size_t *grib_length);
|
|
|
|
#endif /* #ifndef PACKGRIB_H */
|