Tag Info

New answers tagged

2

To address the Centroid issue. zip = EntityValue[Entity["AdministrativeDivision", {"NewYork", "UnitedStates"}], EntityProperty["AdministrativeDivision", "ZIPCodes"]]; list = {#, EntityValue[#, {"Polygon", "Population"}]} & /@ zip; Eliminate Zip codes without Polygons and remove the GeoPosition head to allow us to calculate the centroids. ...


3

Expanding a bit @jose answer, instead of using the GeoStyling directive, maybe using the plot data is better. Let's generate a random sample, but with the same format as yours: data = Join @@ Table[{lat, lon, Exp[-(90 - lat) Degree] Cos[lon Degree] + RandomReal[0.2]}, {lat, 50, 90}, {lon, -180, 180, 5}]; Then we should use ListContourPlot in the same ...


1

The following approach will address the requirement Areas where the histogram is more than some threshold value... asamjson = Import["http://msi.nga.mil/MSI_JWS/ASAM_JSON/getJSON?typename=\ DateRange_AllRefNumbers&fromDate=19900101&toDate=20140801", "JSON"]; Needs["GeneralUtilities`"] asamdataset = Dataset[ToAssociations@asamjson]; asamdataset = ...


4

I think you first need to start by generating the graphics with ListContourPlot. For example, take this arbitrary data as a 31x31 matrix: data = Table[Exp[-(90 - lat) Degree] Cos[lon Degree] + RandomReal[0.2], {lat, 60, 90}, {lon, -180, 180, 12}]; and construct the contour plot: g = ListContourPlot[data, Frame -> False, PlotRangePadding -> 0] Use ...


5

The approach to address the encircling areas will be using the Graph fucntionality available in Mathematica. There are some null values in the dataset so we'll remove them in the new dataset piracyLocations. asamjson = Import["http://msi.nga.mil/MSI_JWS/ASAM_JSON/getJSON?typename=\ DateRange_AllRefNumbers&fromDate=19900101&toDate=20140801", ...



Top 50 recent answers are included