Syria nightlights

For the period  2012 – 2016, click for the animated gif.

Find the script here.

output_AVi0Xs

2 comments

  1. I tried to run the code and got this errors

    2012: Layer error: Image.visualize: Color is not a valid CSS 3.0 color (‘FF0000’ or ‘red’ for red). Found: ‘000000,700000,808080,FFFF00,ffffff,ffffff,ffffff’.

    2013: Layer error: Image.visualize: Color is not a valid CSS 3.0 color (‘FF0000’ or ‘red’ for red). Found: ‘000000,700000,808080,FFFF00,ffffff,ffffff,ffffff’.

    2015: Layer error: Image.visualize: Color is not a valid CSS 3.0 color (‘FF0000’ or ‘red’ for red). Found: ‘000000,700000,808080,FFFF00,ffffff,ffffff,ffffff’.

    2014: Layer error: Image.visualize: Color is not a valid CSS 3.0 color (‘FF0000’ or ‘red’ for red). Found: ‘000000,700000,808080,FFFF00,ffffff,ffffff,ffffff’.

    2016: Layer error: Image.visualize: Color is not a valid CSS 3.0 color (‘FF0000’ or ‘red’ for red). Found: ‘000000,700000,808080,FFFF00,ffffff,ffffff,ffffff’.

    how can I get this solved to be able to run the code

    Like

    1. Hi

      I think you need little change in some stuff, Use that ————->

      // vizualization parameters
      var viz = {min:0, max:1, palette:[‘Black’, ‘RED’, ‘gray’ , ‘Yellow ‘, ‘White’]};

      It’s working in my case

      Best of luck

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s