awips2/nativeLib/rary.ohd.util/inc/grib2lib_inc/scan.h
root 9f19e3f712 Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 64fa9254b946eae7e61bbc3f513b7c3696c4f54f
2012-01-06 08:55:05 -06:00

30 lines
900 B
C

/*****************************************************************************
* scan.h
*
* DESCRIPTION
* This file contains the code that is used to assist with handling the
* possible scan values of the grid.
*
* HISTORY
* 9/2002 Arthur Taylor (MDL / RSIS): Created.
*
* NOTES
*****************************************************************************
*/
#ifndef SCAN_H
#define SCAN_H
#ifndef GRIB2BIT_ENUM
#define GRIB2BIT_ENUM
/* See rule (8) bit 1 is most significant, bit 8 least significant. */
enum {GRIB2BIT_1=128, GRIB2BIT_2=64, GRIB2BIT_3=32, GRIB2BIT_4=16,
GRIB2BIT_5=8, GRIB2BIT_6=4, GRIB2BIT_7=2, GRIB2BIT_8=1};
#endif
void XY2ScanIndex (long int *Row, long int x, long int y, int scan,
long int Nx, long int Ny);
void ScanIndex2XY (long int row, long int *X, long int *Y, int scan,
long int Nx, long int Ny);
#endif