All Downloads are FREE. Search and download functionalities are using the official Maven repository.

decodes.datasource.VaisalaPMParser Maven / Gradle / Ivy

Go to download

A collection of software for aggregatting and processing environmental data such as from NOAA GOES satellites.

The newest version!
/*
*  $Id$
*
*  $Log$
*  Revision 1.1  2008/04/04 18:21:00  cvs
*  Added legacy code to repository
*
*  Revision 1.5  2007/12/11 01:05:16  mmaloney
*  javadoc cleanup
*
*  Revision 1.4  2004/08/31 16:31:18  mjmaloney
*  javadoc
*
*  Revision 1.3  2004/08/24 23:52:46  mjmaloney
*  Added javadocs.
*
*  Revision 1.2  2003/12/07 20:36:49  mjmaloney
*  First working implementation of EDL time stamping.
*
*  Revision 1.1  2002/12/09 20:03:42  mjmaloney
*  Added
*
*/
package decodes.datasource;

import java.util.HashMap;
import java.util.Date;
import java.util.Calendar;
import java.text.ParsePosition;
import java.text.ParseException;
import java.text.SimpleDateFormat;

import ilex.util.ArrayUtil;
import ilex.util.Logger;
import ilex.util.ByteUtil;
import ilex.var.Variable;

import decodes.db.Constants;

/**
  Concrete subclass of PMParser for parsing performance measurements
  out of GOES DCP messages.
*/
public class VaisalaPMParser extends GoesPMParser
{
	/** default constructor */
	public VaisalaPMParser()
	{
		super();
	}

	/**
	  Vaisala DRGS puts a platform description on the header line,
	  immediately following the 37-byte DOMSAT header.
	  We need to set the headerLength variable in 'msg' to point to
	  just past this added description.

	  @param msg The message to parse.
	*/
	public void parsePerformanceMeasurements(RawMessage msg)
		throws HeaderParseException
	{
		// Super class handles DOMSAT header, sets medium ID & length.
		super.parsePerformanceMeasurements(msg);

		byte data[] = msg.getData();
		int i = 0;
		for(; i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy