Back

CUSTOM TRANSFORMATIONS

Ana Escalera, modified 1 Year ago.

CUSTOM TRANSFORMATIONS

Youngling Posts: 17 Join Date: 9/13/16 Recent Posts
Dear Forum,

I would like to know if there is a way to implement a transformation in FEWS that gets ONLY THE MONTH NUMBER of a time series. For example in the date 10/7/1991 08:00am i want this transformation gets me the value "7" that references to the month of July of a year. I need this transformation for making a filter for accumulation processes. PLease im in a hurry for this so i would like to know if it is possible in any way or not.

Thanks!
Jan Talsma, modified 1 Year ago.

RE: CUSTOM TRANSFORMATIONS

Youngling Posts: 15 Join Date: 5/30/12 Recent Posts
Dear Ana,

I am not sure this is possible, however you can use the profile transformation to make a timeseries which is 1 in January 2 in February 3 in March etc... Maybe this helps? See gor inspiration:

<profile>
<timeSeries>
<inputProfile>
<data value="-1.1" monthDay="--01-01"/>
<data value="-1.1" monthDay="--03-31"/>
<data value="-0.95" monthDay="--04-01"/>
<data value="-0.95" monthDay="--09-30"/>
<data value="-1.1" monthDay="--10-01"/>
<data value="-1.1" monthDay="--12-31"/>
</inputProfile>
<type>cyclic</type>
<outputVariable>
<variableId>KGM20streef</variableId>
</outputVariable>
</timeSeries>
</profile>

Regards,
Jan
Ana Escalera, modified 1 Year ago.

RE: CUSTOM TRANSFORMATIONS

Youngling Posts: 17 Join Date: 9/13/16 Recent Posts
Thank you so much Jan! thats exactly what i was looking for!