Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. geostats =
  2. {{DateObject[{2013, 12, 5, 13, 47, 19.822}, "Instant","Gregorian", 10.], "VIC", -37.8004, 144.984, 100.},
  3. {DateObject[{2013, 12, 5, 20, 44, 57.715}, "Instant", "Gregorian", 10.], "VIC", -36.9902, 144.063, 100.},
  4. {DateObject[{2015, 3, 27, 15, 38, 46.051}, "Instant", "Gregorian", 10.], "NSW", -33.7495, 151.065, 60.},
  5. {DateObject[{2015, 4, 29, 16, 05, 10.006}, "Instant", "Gregorian", 10.], "NSW", -33.8261, 151.199, 106.},
  6. {DateObject[{2013, 6, 17, 20, 25, 34.948}, "Instant", "Gregorian", 10.], "SA", -34.9266, 138.512, 25.},
  7. {DateObject[{2017, 7, 21, 20, 01, 42.497}, "Instant", "Gregorian", 10.], "VIC", -38.3296, 144.263, 10.},
  8. {DateObject[{2016, 09, 25, 21, 27, 40.98}, "Instant", "Gregorian", 10.], "QLD", -27.4635, 152.98, 106.},
  9. {DateObject[{2014, 10, 31, 15, 19, 59.965}, "Instant","Gregorian", 10.], "VIC", -37.9829, 145.065, 31.8}}
  10.  
  11. state[s_String] := Switch[s, "VIC", "Victoria", "NSW", "New South Wales", "SA",
  12. "South Australia", "QLD", "Queensland"];
  13. geostats = geostats /. {s_, t_, u_, v_, w_} :>
  14. {s, Entity["AdministrativeDivision", {state[t], "Australia"}], GeoPosition[{u, v}], w}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement