Group Abstract Group Abstract

Message Boards Message Boards

0
|
10.2K Views
|
8 Replies
|
1 Total Like
View groups...
Share
Share this post:

WeatherData

Posted 11 years ago

I have already generate a list of dates and mean temperatures with WeatherData. It is a list of roughly 17000 pairs . Each pair is as follow : {{year,month,day},T°}. As an example:{1946, 11, 13}, 17.78} How I can obtain maximum and minimum temperature from this list . Thanks for advice.

POSTED BY: Daniel Cross
8 Replies
Posted 11 years ago

David, Thanks for your advice. I have being trying with cases and patterns ; however I did not succeed. Seeing your example tell me that patterns should be assembled carefully. Now again in the road!

POSTED BY: Daniel Cross
POSTED BY: David Reiss

Hi Daniel,

Could you post a notebook with a subset of your data (say, 6 months) and I will take a look at it in the next day or two and show you how to do what you are asking...? (Use the "Attachments: add a file to this post" button to upload the notebook

Best, David

POSTED BY: David Reiss
Posted 11 years ago

David, Notebook attached. Thanks!

Attachments:
POSTED BY: Daniel Cross

Tale a look at how I used the Max function above. Note that I am selecting out the temperatures from the top level data structure rather than acting on the full data. Using Max on all the data will return 2015 because that is the largest number in the full top level data structure.

POSTED BY: David Reiss
Posted 11 years ago

David , works perfect! Thanks! The other problem is that since is a list with dates and real numbers (date in Date format) I not know how I can sort certain dates.For example within that list only looks for mean T in June. How I can Select dates with June within this large list and geenrate a new list only with June data over the timespan considered. I am just learning!!

POSTED BY: Daniel Cross
Posted 11 years ago

David, Thanks for your replay . I just have Mathematica 9, and I have try Max function but it just output 2015, that is maximum value of the list of course.

POSTED BY: Daniel Cross
POSTED BY: David Reiss
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard