Skip to main content
Solved

I have filtered air temp into average daily max and min. And I would like to display them in two columns filtered by date and station. In the final table, only the max temp is showing in both columns. How do I show min temp as well?

  • Mar 12, 2021 11:14 PM UTC
  • 16 replies
  • 166 views

I have filtered air temp into average daily max and min. And I would like to display them in two columns filtered by date and station. In the final table, only the max temp is showing in both columns. How do I show min temp as well?

Best answer by jdh

OK. It looks like what you want to do is after your Feature Reader have a tester for ParameterTypeLongName = Air Temperature, then your DateFormater (this is a performance thing, why format dates that you are not going to use)

Then an attributeCreator @Value(TimeSeriesName) = @Value(Value). This should give an attribute of either A.DayMax or A.DayMin depending on which row/feature it is.

Then an Aggregator with a group by on StationName and MeasureDate, in Accumulation Mode Merge Incoming Attributes

That will get both the max and min temp attributes on the same feature. You can then do any cleanup of attribute names (this may require an attributeExposer).

View original
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

16 replies

danilo_fme
Celebrity
Forum|alt.badge.img+58
  • Celebrity
  • Mar 13, 2021 4:21 AM UTC

Hi @robeesafe​ 

please, could you share the data?​


jdh
Contributor
Forum|alt.badge.img+41
  • Contributor
  • Mar 15, 2021 3:27 PM UTC

We would need to know the settings on your workspace to be able to help.


  • Author
  • Mar 15, 2021 4:00 PM UTC

Hi @robeesafe​ 

please, could you share the data?​

Hello Danilo, I have attached the weather dataset from which I would like to filter the “Air Temperature” out of “ParameterTypeLongName” and further filter A.DayMax and A.DayMin from “TimeSeriesName” to display as indicated in “tmp.csv”. Here is an image of the transformers I used: [cid:image001.png@01D71981.4FD5DB90] Let me know if you have any questions. Thanks, Robert Classification: Protected A

  • Author
  • Mar 15, 2021 4:08 PM UTC

We would need to know the settings on your workspace to be able to help.

Hello JDH, I have attached the weather dataset from which I would like to filter the "Air Temperature" out of "ParameterTypeLongName" and further filter A.DayMax and A.DayMin from "TimeSeriesName" to display as indicated in "tmp.csv". Here is an image of the transformers I used: [cid:image001.png@01D71981.4FD5DB90] Let me know if you have any questions. Thanks, Robert Classification: Protected A

jdh
Contributor
Forum|alt.badge.img+41
  • Contributor
  • Mar 15, 2021 4:11 PM UTC
Hello JDH, I have attached the weather dataset from which I would like to filter the "Air Temperature" out of "ParameterTypeLongName" and further filter A.DayMax and A.DayMin from "TimeSeriesName" to display as indicated in "tmp.csv". Here is an image of the transformers I used: [cid:image001.png@01D71981.4FD5DB90] Let me know if you have any questions. Thanks, Robert Classification: Protected A

Hi Robert,

 

I'm not seeing either the image or the attached csv.kb_view


  • Author
  • Mar 15, 2021 8:17 PM UTC
Hello JDH, I have attached the weather dataset from which I would like to filter the "Air Temperature" out of "ParameterTypeLongName" and further filter A.DayMax and A.DayMin from "TimeSeriesName" to display as indicated in "tmp.csv". Here is an image of the transformers I used: [cid:image001.png@01D71981.4FD5DB90] Let me know if you have any questions. Thanks, Robert Classification: Protected A
Hello JDH, I'm resending my earlier message with attachments. I have attached the weather dataset from which I would like to filter the "Air Temperature" out of "ParameterTypeLongName" and further filter A.DayMax and A.DayMin from "TimeSeriesName" to display as indicated in "tmp.csv". I have also appended an image of the transformers I used. Let me know if you have any questions. Thanks, Robert Classification: Protected A

  • Author
  • Mar 18, 2021 2:40 PM UTC

Hi @robeesafe​ 

please, could you share the data?​

Hello Danilo, Do you have any questions for me? I’m wondering if you have made on progress on the request. Best regards, Robert Classification: Protected A

  • Author
  • Mar 18, 2021 2:41 PM UTC

We would need to know the settings on your workspace to be able to help.

Hello JDH, Do you have any update for me? Thanks, Robert Classification: Protected A

jdh
Contributor
Forum|alt.badge.img+41
  • Contributor
  • Mar 18, 2021 2:43 PM UTC
Hello JDH, Do you have any update for me? Thanks, Robert Classification: Protected A

Hi Robert, I am not sure how you are sending the attachments, but they are not showing up in this forum.


  • Author
  • Mar 18, 2021 3:43 PM UTC
Hello JDH, Do you have any update for me? Thanks, Robert Classification: Protected A
Hello JDH, I'm sending them as attachments to this email. Is there another way? Thanks, Robert Classification: Protected A

jdh
Contributor
Forum|alt.badge.img+41
  • Contributor
  • Mar 18, 2021 3:50 PM UTC
Hello JDH, Do you have any update for me? Thanks, Robert Classification: Protected A

Use the web interface. You can embed images and attach a file to your reply.


  • Author
  • Mar 18, 2021 7:19 PM UTC

Here is one of the attachments. How do I send an Excel and csv file?Air Temp transformers


  • Author
  • Mar 18, 2021 7:31 PM UTC

Example of air temperature source data


  • Author
  • Mar 18, 2021 7:32 PM UTC

Desired air temp output


jdh
Contributor
Forum|alt.badge.img+41
  • Contributor
  • Best Answer
  • Mar 18, 2021 7:43 PM UTC

OK. It looks like what you want to do is after your Feature Reader have a tester for ParameterTypeLongName = Air Temperature, then your DateFormater (this is a performance thing, why format dates that you are not going to use)

Then an attributeCreator @Value(TimeSeriesName) = @Value(Value). This should give an attribute of either A.DayMax or A.DayMin depending on which row/feature it is.

Then an Aggregator with a group by on StationName and MeasureDate, in Accumulation Mode Merge Incoming Attributes

That will get both the max and min temp attributes on the same feature. You can then do any cleanup of attribute names (this may require an attributeExposer).


  • Author
  • Mar 18, 2021 10:26 PM UTC

Thanks, your solution worked.