Message Boards Message Boards

Unclear resolution of GeoDensity

Posted 3 years ago

This generates a unclear picture although the input variables are more or less evenly destributed; any Idea what I can do? Thanks.

dataonl = 
Table[city -> AirTemperatureData[city], {city, 
GeoNearest["City", 
Entity["City", {"Berlin", "Berlin", "Germany"}], {All, \!\(\*
NamespaceBox["LinguisticAssistant",
DynamicModuleBox[{Typeset`query$$ = "20km", Typeset`boxes$$ = 
TemplateBox[{
"20", "\"km\"", "kilometers", "\"Kilometers\""}, 
"Quantity", SyntaxForm -> Mod], 
Typeset`allassumptions$$ = {}, Typeset`assumptions$$ = {}, 
Typeset`open$$ = {1, 2}, Typeset`querystate$$ = {
"Online" -> True, "Allowed" -> True, 
"mparse.jsp" -> 0.661163`6.271853535090111, 
"Messages" -> {}}}, 
DynamicBox[ToBoxes[
AlphaIntegration`LinguisticAssistantBoxes["", 4, Automatic, 
Dynamic[Typeset`query$$], 
Dynamic[Typeset`boxes$$], 
Dynamic[Typeset`allassumptions$$], 
Dynamic[Typeset`assumptions$$], 
Dynamic[Typeset`open$$], 
Dynamic[Typeset`querystate$$]], StandardForm],
ImageSizeCache->{78., {8., 16.}},
TrackedSymbols:>{
Typeset`query$$, Typeset`boxes$$, 
Typeset`allassumptions$$, Typeset`assumptions$$, 
Typeset`open$$, Typeset`querystate$$}],
DynamicModuleValues:>{},
UndoTrackedVariables:>{Typeset`open$$}],
BaseStyle->{"Deploy"},
DeleteWithContents->True,
Editable->False,
SelectWithContents->True]\)}]}];
GeoDensityPlot[dataonl, 
ColorFunction -> ColorData["ThermometerColors"]]
Attachment

Attachments:
POSTED BY: Andreas Nold
Posted 3 years ago

Hi Andreas,

I see a different result

dataonl = 
 Table[city -> AirTemperatureData[city], {city, 
   GeoNearest["City", 
    Entity["City", {"Berlin", "Berlin", "Germany"}], {All, Quantity[20, "Kilometers"]}]}];

GeoDensityPlot[dataonl, ColorFunction -> ColorData["ThermometerColors"]]

enter image description here

The reason it looks odd is because there are only two temperature values in the data. I am in the US so the units are Fahrenheit

dataonl // Values // QuantityMagnitude // Counts
(* <|42.8 -> 10, 32. -> 6|> *)

Looks like the values reported by AirTemperatureData are not accurate.

POSTED BY: Rohit Namjoshi
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