Message Boards Message Boards

GROUPS:

Extract numbers from quantities from AirTemperatureData[] ?

Posted 4 years ago
4986 Views
|
1 Reply
|
0 Total Likes
|

Hi. In Mathematica 10.3 I type this: AirTemperatureData[] and I get this:

DataPaclets`WeatherConvenienceFunctionsDump`unitAirTemperature[
 QuantityUnits`Private`ToQuantity[
  QuantityUnits`Private`UnknownQuantity[16., 
   "DegreesCelsius"]], "Metric"]

I haven't managed to extract the number (in this case, 16.). I've tried with QuantityMagnitude, etc., to no avail. Can somebody help me?

Francisco

That's a strange problem. I wasn't able to reproduce the problem with 10.3 on Mac. What OS are you using?

Please first try restarting Mathematica.

If that doesn't work, please try running the following code. What output does it give?

<< PacletManager`
Lookup["Version"]@PacletInformation["WeatherData_Index"]

If it doesn't give "7.0.14", then you should try to run:

PacletUpdate["WeatherData_Index"]

If that doesn't work, I recommend trying to reset Mathematica: http://support.wolfram.com/kb/12464

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract