Shige's Research Blog

Sunday, October 11, 2020

Reading map files into NetLogo

 I am trying to read the map files provided by the coronavirus-data into NetLogo using the following code: 

extensions [gis]

globals [zip-data projection]

to setup


  ;gis:load-coordinate-system (word "data/" projection ".prj")

  set zip-data gis:load-dataset "MODZCTA_2010.shp"

  gis:set-drawing-color 5  gis:fill zip-data 1.0


I got the error message complaining about the unsupported Lambert_Conformal_Conic projection. A simple solution is provided here.

Monday, April 13, 2020

Unleash the Privateers!

I usually don't pay much attention to politics, but these folks are really hilarious!

Tuesday, March 03, 2020

Thursday, January 23, 2020

Illuminating Statistical Analysis Using Scenarios and Simulations

This looks like an interesting textbook for an introductory statistics course. I did not see a code repository associated with the book though.

Monday, January 13, 2020

Using raster data in Netlogo

I am trying to replicate the procedure described on page 111-114 in AGIS. The generated clipped population data file cannot be read into NetLogo. After some digging, here is the problem and the solution is really simple: just add '-co force_cellsize=true' to the text box for additional command-line parameters.

Tuesday, December 31, 2019