2
$\begingroup$

how to download using weather data function many proporties exactly. Example WeatherData["WMO44292", "Humidity", "Pressure", "Temperature", \ {{2005, 1, 1, 0, 0}, {2015, 1, 1, 0, 0}}] .

$\endgroup$
1
  • $\begingroup$ like this? WeatherData[ "WMO44292", #, {{2005, 1, 1, 0, 0}, {2015, 1, 1, 0, 0}}] & /@ {"Humidity", "Pressure", "Temperature"} $\endgroup$
    – Julian
    Mar 26 '15 at 10:03
4
$\begingroup$

Here the answer to your question posted in your comment in following steps:

1) Retrieve Weather data and assign to dset

dset = WeatherData[
     "WMO44292", #, {{1956, 8, 2, 12, 0, 0}, {1957, 8, 2, 12, 0, 
       0}}] & /@ {"Humidity", "Pressure", "Temperature"}

2) Restructure list

dset1 = DeleteDuplicates @ Flatten[#, 1] & /@  ( dset // Transpose )

3) Now create a nested list

  (d \[Function] Fold[Append[{#1}, #2] &, First@d, Rest@d]) /@ dset1

resulting in the list structure you asked for in your comments.

Hereafter, this gives you a table with all the properties and values available for the location you have specified.

    {WeatherData["Properties"], 
   WeatherData ["WMO44292", #] & /@ WeatherData["Properties"]} // 
  Transpose // TableForm 

brr... must be cold in Mongolia :)

$\endgroup$
9
  • $\begingroup$ result is {1956, 8, 2, 12, 0, 0}, 0.421}. I want {1956, 8, 2, 12, 0, 0}, 0.421},1041},17}. My english is very bad. :( $\endgroup$ Mar 27 '15 at 15:01
  • $\begingroup$ I need No all proporties. Huminity, pressure and temperature. $\endgroup$ Mar 27 '15 at 15:49
  • $\begingroup$ Today snowing and raining in Mongolia. Yesterday has spring. Today have winter. kkk :) $\endgroup$ Mar 27 '15 at 16:00
  • $\begingroup$ I think I understood your question in your comments and I posted a possible solution at the begin of my answer. Is it what you was looking for ? :) $\endgroup$
    – penguin77
    Mar 27 '15 at 16:36
  • $\begingroup$ Yes. Thank you :) $\endgroup$ Mar 28 '15 at 6:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.