<commit_before>/**
 * @file precipitation_rate.cpp
 *
 * Template for future plugins.
 *
 * @date Mar 14, 2014
 * @author Tack
 */

#include "precipitation_rate.h"
#include "plugin_factory.h"
#include "logger_factory.h"
#include <boost/lexical_cast.hpp>
#include <boost/thread.hpp>

#define HIMAN_AUXILIARY_INCLUDE

#include "fetcher.h"

#undef HIMAN_AUXILIARY_INCLUDE

using namespace std;
using namespace himan::plugin;

const string itsName("precipitation_rate");

precipitation_rate::precipitation_rate()
{
	itsLogger = unique_ptr<logger> (logger_factory::Instance()->GetLog(itsName));

}

void precipitation_rate::Process(std::shared_ptr<const plugin_configuration> conf)
{
	Init(conf);

	/*
	 * Set target parameter to ???
	 * - name PARM_NAME
	 * - univ_id UNIV_ID
	 * - grib2 descriptor X'Y'Z
	 *
	 * We need to specify grib and querydata parameter information
	 * since we don't know which one will be the output format.
	 *
	 */

	vector<param> theParams;

	// First parameter - rain
	param RPRATE("RRR-KGM2", 49);

	// GRIB 2

	RPRATE.GribDiscipline(0);
	RPRATE.GribCategory(1);
	RPRATE.GribParameter(65);
	
	theParams.push_back(RPRATE);

	// Second parameter - snow/solid precipitation
	param SPRATE("RRRS-KGM2", 200);

	// GRIB 2<commit_msg>Changed output parameters in precipitation_rate to RSI-KGM and RRI-KGM2.<commit_after>/**
 * @file precipitation_rate.cpp
 *
 * Template for future plugins.
 *
 * @date Mar 14, 2014
 * @author Tack
 */

#include "precipitation_rate.h"
#include "plugin_factory.h"
#include "logger_factory.h"
#include <boost/lexical_cast.hpp>
#include <boost/thread.hpp>

#define HIMAN_AUXILIARY_INCLUDE

#include "fetcher.h"

#undef HIMAN_AUXILIARY_INCLUDE

using namespace std;
using namespace himan::plugin;

const string itsName("precipitation_rate");

precipitation_rate::precipitation_rate()
{
	itsLogger = unique_ptr<logger> (logger_factory::Instance()->GetLog(itsName));

}

void precipitation_rate::Process(std::shared_ptr<const plugin_configuration> conf)
{
	Init(conf);

	/*
	 * Set target parameter to ???
	 * - name PARM_NAME
	 * - univ_id UNIV_ID
	 * - grib2 descriptor X'Y'Z
	 *
	 * We need to specify grib and querydata parameter information
	 * since we don't know which one will be the output format.
	 *
	 */

	vector<param> theParams;

	// First parameter - rain
	param RPRATE("RRI-KGM2", 1171);

	// GRIB 2

	RPRATE.GribDiscipline(0);
	RPRATE.GribCategory(1);
	RPRATE.GribParameter(65);
	
	theParams.push_back(RPRATE);

	// Second parameter - snow/solid precipitation
	param SPRATE("RSI-KGM2", 1193);

	// GRIB 2
{'fraction_non_alphanumeric': 0.12183729077462048, 'fraction_numerical': 0.017127286882055275, 'mean_word_length': 4.586956521739131, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5440319', 'n_tokens_mistral': 980, 'n_tokens_neox': 889, 'n_words': 209}