/* ********************************************
 * *                                          *
 * *  Archive 2 format utilities header file  *
 * *                                          *
 * ********************************************
 * File: utils/archive2/archive2_h.h
 *
 *                  COPYRIGHT (c) 2002, 2004, 2006 BY
 *             VAISALA INC., WESTFORD MASSACHUSETTS, U.S.A.
 * 
 * THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED AND  COPIED
 * ONLY  IN  ACCORDANCE WITH  THE  TERMS  OF  SUCH  LICENSE  AND WITH THE
 * INCLUSION OF THE ABOVE COPYRIGHT NOTICE.  THIS SOFTWARE  OR  ANY OTHER
 * COPIES  THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE AVAILABLE TO ANY
 * OTHER PERSON.  NO TITLE TO AND OWNERSHIP OF  THE  SOFTWARE  IS  HEREBY
 * TRANSFERED.
 */

SINT4 ReadNrVolumeHeader
( struct nr_volume_header *pVHeader_a,
  FILE *pStream_a );

SINT4 ReadNrPacket
( union nr_packet *pPacket_a,
  FILE *pStream_a );

void VolumeHeaderUnpack
( struct nr_volume_header *pTitle_a );

void MessageHeaderUnpack
( struct nr_message_header *pMHeader_a );

void DataHeaderUnpack
( struct nr_radar_data_header *pDHeader_a );

void AdaptationAccumulate
( const struct nr_generic_packet *pPacket_a,
  struct nr_rda_adaptation *pAdaptation_a );

/* Byte swap the adaptation data. */
void AdaptationUnpack
( struct nr_rda_adaptation *pAdaptation_a );

void Pack2( UINT2 *pData2_a );

void Pack4( UINT4 *pData4_a );

void YmdsFromNrTime
( struct ymds_time *pYmds_a,
  UINT4 iDate_a,    /* Date in days */
  UINT4 iTime_a );  /* Time in ms */
