A map in Atlantis projection showing Surface Temperature Averages at 8am, Jan. 4, 2023
blogging

Tutorial: Visualizing global temperature step-by-step

This is a follow up to my previous tutorial for visualizing organic carbon. The process is more or less the same, but it uses a different dataset, which has some extra considerations. You can revisit it below:

Before continuing, to follow my guide and visualize global temperatures, you should be able to use your Terminal window, QGIS and optional Adobe After Effects or Photoshop.


About the data set

NASA’s Global Modeling and Assimilation Office Research Site (GMAO) provides a number of models from different data sets, this is basically a collection of data from many different services processed for historical records or forecast models. This data works well for a global picture or continent level even, but maybe isn’t a good idea to use this data for a country level analysis, for those uses you may want to check other sources of the data instead of GMAO models, like MODIS for instance if you you are looking for similar data.

Global Surface Temperature average Jan. 4, 2023, 8am. || Data by GMAO / NASA.

SURFACE TEMPERATURE

There are a lot of different sets of products available at GMAO. For purposes of this tutorial, I’ll be focusing in the Surface Temperature which is stored into the inst1_2d_lfo_Nx set. That’s a GEOS5 time-averaged reading, which includes surface air temperature in Kelvin degrees in the 5th band of the files, there is some documentation available in this pdf. ( No worries if is this sounds too technical stay with me and keep going. )

These files are generated hourly, so a day of observations accounts for 24 files. This is great for animation because it would look smooth (even smother than the one we did for Organic Carbon before).


Where’s the data? and How it’s named?

The data is stored into this url. You can go into the folders and get all 24 files for each day manually if you like or get them with a command line using wget or curl into the terminal, I’ll recommend you the command line since it’s easier. Here’s how each file is named and stored:


Step 1. Get the data

  • Create a folder to store your files with some name like “data”
  • Open your terminal window
  • Type cd in the terminal window followed by an space
  • Drag and drop the folder you created inside the terminal window:
An example stolen from the web.


Then copy+paste the following command line in your terminal window and hit enter:

curl https://portal.nccs.nasa.gov/datashare/gmao/geos-fp/das/Y2023/M01/D04/GEOS.fp.asm.inst1_2d_lfo_Nx.20230104_0000.V01.nc4 -o 20230104_0000.nc4

Once it reaches 100%, you would get a file named 20230104_0000.nc4 in you “data” folder: Note that I have renamed the output ( -o ) with a shorter name. The file will go to your folder ready to use into GQIS. Of course you will need a few more files to run an animation. Remember that this data is available for every hour every day, so you need to set the url and name for something like this:

00:00 MN >> 20230104_0000.V01.nc4
01:00 AM >> 20230104_0100.V01.nc4
02:00 AM >> 20230104_0200.V01.nc4
03:00 AM >> 20230104_0300.V01.nc4
...and so on...
08:00 PM >> 20230104_2000.V01.nc4
09:00 PM >> 20230104_2100.V01.nc4
10:00 PM >> 20230104_2200.V01.nc4
11:00 PM >> 20230104_2300.V01.nc4

Just create a text file listing all the urls you need and run the script into the terminal window with the same process:

curl -O [URL1] -O [URL2]

Each file is usually about 10MB, if there’s something wrong with the data the file will be created anyway but would be an empty file of just a few KB. Remember a full day accounts for 24 files but it starts from zero not 1.


Step 2. Loading the data into QGIS

Once you have a nice folder with all the files you want, you can just drag and drop the .nc4 files into QGIS. We are looking for the 5th Band, TLML which is our Surface air temperature:

QGIS prompt window when you drop one of the file in.

Once you have the data loaded, you want to set the data projection to WGS 84, this will enable the data layers to be re-projected later on. To do that, select all you data layers, right click on them, and select Layer CRS > Set Layer CRS > 4326. Be sure of selecting all the layers at once so you do this only one time. Otherwise you will need to doing over and over.

Data layers projection to WGS 84.

Since this is a good global data set, you may want to load a globe for reference, you can use your own custom projection, or use a plugin like globe builder:

Access Globe Builder from the plugins menu > Manage and Install > type: Globe.

Once installed, just run it from the little globe icon, or in the menu plugins > Globe builder > Build globe view. You have a few options there, play around with the center point lat/long. You can always return here and adjust the center by entering new numbers and clicking the button “Center”.


Step 3. Styling your map

The color ramp is important, you want to have a data layer and maybe a outline base map for countries, QGIS has some pre-built ramps for temperatures, you can check them out by clicking the ramp dropdown menu, select Create New Color Ramp and then select Catalog cpt-city.

Once you have your ideal color ramp for one layer, right click on that layer, go to Styles > Copy style. Then select all you temperature data layers at once, right click on them and select Styles > Paste Style.

I have created a ramp to fit better my data ranges and style a little the colors. If you not are using the optional ramp below, and want to proceed with the pre-built ramps skip this to step 4.

To use my ramp, copy and paste the following to a plain .txt file:

# QGIS Generated Color Map Export File
INTERPOLATION:INTERPOLATED
224.0615386962890625,14,17,21,255,224
250.69161088155439643,80,122,146,255,251
266.87675076104915206,235,238,217,255,267
275.3270921245858176,225,213,143,255,275
285.49591601205395364,214,155,59,255,285
293.66160637639046627,187,80,30,255,294
298.05635745871836662,170,33,23,255,298
308.53047691588960788,58,14,11,255,309

To apply the ramp to your layers, doble click one of the .nc4 files, and select Symbology in the options panel. Under render type, select Singleband pseudocolor, the look for the folder icon, click it and load your .txt file.

QGIS prompt to load a custom style.

Step 4. Preparing to export your map

You are almost done, by this point you can see how each data layer creates nice swirls, maybe some evolution of it too just by toggling the layers visibility. I like to have all the layers well organized so you can quick check the data. I’m maybe a little too obsessive but I usually rename all layers and groups to something like the image below, however this is just for me to know which files are on which day:

QGIS layers panel.

The name change works if you are using an automatic export of all layers, the script in the next step takes the name of the layer to name file output. But there are alternative ways to do this if you’re not as crazy as I’m and don’t want to spend time manually renaming.


Step 5. Export your map

There are many ways of doing this, you can set up the time for each layer by using the temporal controller, there’s a good guide here. That way you can get a mp4 video right away from QGIS, but you need to set up each data layer time manually.

You can also use a little code to export each layer into an image, which you can then import into After Effects. To do that, the first step of course, is to get the script. Download the files from my google drive HERE.

Now, go to the plugins menu at the top, there, you will see the Python console, go and click that, you will see this window popping-up:

Python console in QGIS.

Click the paper icon, then click the folder icon and select the python script you dowloaded above. Just be careful with the filePath option.

If you are on a mac, right click your output folder and hold the option key, that will allow you to copy the absolute path of you folder, paste that to replace the filePath field value (the green text in the image below). If you are on Windows, just make sure to get the absolute path and not a relative one.

I left some annotations on the script to better understand what each part is, it’s based on a script someone did with Vietnamese annotations, source and credit are in the drive link too.

Now just click the play button in the python console, seat back and look all the frames of your animation loading in the output folder you selected. You should see a file for each of your layers when the script finishes.


Step 6. Color key

The temperature in this set is provided in Kelvin degrees. The range of the data depends on your date / file set up. But if you are using the ramp I have provided above with data for Jan. 4, there’s a svg file named “scale.svg” in the drive folder within this range. I have nudge a little the color and ranges matching the map with nice round numbers.

For January 4, the data rages are about 224°K to 308°K, you can use google to covert that to Celsius or Fahrenheit depending on your needs. But basically you can take your Kelvins and subtract 273.15 to get Celsius. The min. Temperature would be ~ -49°C (224°K) and Max. ~34°C (308°K). If you are into Fahrenheit, I’m sorry the math would be a little more complex for you… go ahead and use google.


Step 7. Setup and export your animation

On my previous tutorial to visualize Organic Carbon, I used Adobe After effects to add the dates, you can use the same principle here, or using any other alternatives. For example, once you have the output files you can drop them all into photoshop. By going to the menu Window / Timeline you can add a frame animation, simply click the + icon in the timeline panel followed by turning one layer on at the time.

Adobe Photoshop frame animation.

If you are using Photoshop, pay attention to the order of the files, it should match the data dates from newest at the top to oldest at the bottom. Once you have you sequence ready, in the timeline panel menu, you will find a render option to export your animation as video, or you can create a gif animated by using the top menu File / Export / Save for Web or command + option + shift + s if you are on a mac.

Your animation should be smooth and nice, something similar to this great story from NASA’s Earth Observatory

Or something like this, if you have used the same data and ramp from this tutorial:

If any of this doesn’t make sense to you, or if you’re having trouble with a step, feel free to reach out to me on Twitter or Mastodon I will be happy to hear from you.


Happy mapping!


Update

Using gdal to convert data to 180-180

Someone contacted me about this tutorial because they were having problems with the projection of the temperature data.

For some reason if your files are in 0-360 format instead of 180-180 you will usually see the globe aligned with the vector layers but not with the temperature rasters, which usually appears to the side in QGIS

If that’s happening to you, you may need to convert your data before dropping it into QGIS. Here’s a quick tip on how to fix that:

  • From your terminal window cd your folder like you did before, look for the directory where your temperature data is.
  • Type gdalinfo add an space and paste the file name it should look like this:
  • You will find the subdatasets. We are looking for TLML (temperatures) that highlight on blue above.
  • Gdal would help you to convert the data so you can use it, the command line looks like this:
gdal_translate -of netCDF -co WRITE_BOTTOMUP=YES NETCDF:"/Users/marco/Desktop/input-original.nc4":TLML your/directory/output-file-name.nc4

***Note your file path will be different copy that from your terminal window (the blue highlight)

That will give you a new file in the directory of your choice (your/directory/output-filename.nc4) in this example there is a folder called directory inside a folder called your in which is the file called output-filename.nc4. Be careful when renaming files the dates are important to the animation process.



Advertisement
Standard
blogging

Visualizing organic carbon in near real time. –A step-by-step guide

Long time ago someone on twitter ask me to do an explainer on how I did the “smoke” animations for this Reuters piece. It has been a while since then, but maybe it would be useful for someone out there, even if that mean learning how NOT to do things.

Before continuing, to follow my guide and visualize organic carbon, you should be able to use your terminal window, QGIS and optional Adobe After Effects.

Earth globe showing organic carbon released into the atmosphere by wildfires in America
Organic carbon released into the atmosphere during the wildfires season in California in 2020

Let’s talk about this wonderful data first

NASA’s Global Modeling and Assimilation Office Research Site (GMAO) provides a number of models from different data sets, this is basically a collection of data from many different services processed for historical records or forecast models. This data works well for a global picture or continent level even, but maybe isn’t a good idea to use this data for a country level analysis, for those uses you may want to check other sources of the data instead of GMAO models, like MODIS for instance if you you are looking for similar data.

ORGANIC CARBON

There are a lot of different sets of products available at the GMAO servers, you can check details here, here and here. However for purposes of this practical guide, I’ll be focusing in the emissions of Organic Carbon which is stored into the tavg3_2d_aer_Nx set. That’s a GEOS5 FP 2d time-averaged primary aerosol diagnostics, which includes Organic Carbon Column mass density in the 38th band, there is some documentation available in this pdf. ( No worries if is this sounds too technical stay with me and keep going. )

A day of observations accounts for 8 files since this data is processed every 3 hours. This is great for animation because it would look smooth. Knowing that, let’s move to our guide.


Step 1. Get the data

The data is stored into this url. You can go into the folders and get all 8 files for each day manually if you like or get them with a command line using wget or curl into the terminal. You just need to know a little of the url structure:

url structure
GMAO organic carbon files and url structure
  • Create a folder to store your files with some name like data
  • Open your terminal window
  • Type cd in the terminal window
  • Drag the folder you created inside the window
A “cd folder” example stolen from the web.


Then run a short command like the following, you would get a file named 20220619_0130.nc4 in you data folder:

curl https://portal.nccs.nasa.gov/datashare/gmao/geos-fp/das/Y2022/M06/D19/GEOS.fp.asm.tavg3_2d_aer_Nx.20220619_0130.V01.nc4 -o 20220619_0130.nc4

Note that I have renamed the output ( -o ) with a shorter name. The file will go to your folder ready to use into GQIS. Of course you will need a few more files to run an animation. Remember that this data is available for every 3 hours daily, so you need to set the url and name for something like this:

01:30 AM >> 20220619_0130.V01.nc4
04:30 AM >> 20220619_0430.V01.nc4
07:30 AM >> 20220619_0730.V01.nc4
10:30 AM >> 20220619_1030.V01.nc4
01:30 PM >> 20220619_1330.V01.nc4
04:30 PM >> 20220619_1630.V01.nc4
07:30 PM >> 20220619_1930.V01.nc4
10:30 PM >> 20220619_2230.V01.nc4

Just create a text list with all the urls you need and run the script into the terminal window with the same process:

curl -O [URL1] -O [URL2]

Each file is usually about 120MB, if there’s something wrong with the data the file will be created anyway but would be an empty file of just a few KB. Do a day or two first and check, that’s 8-16 files, check them, if all looks good load a few more if you like.

Step 2. Loading the data

Once you have a nice folder with all the files you want, you can just drag and drop the .nc4 files into QGIS. We are looking for the 38th Band, OCCMASS which is our Organic Carbon Column mass:

QGIS prompt window when you drop one of the file in.

Once you have the data loaded, you want to set the data projection to WGS 84, this will enable the data layers to be re-projected later on. To do that, select all you data layers, right click on them, and select Layer CRS > Set Layer CRS > 4326. Be sure of selecting all the layers at once so you do this only one time. Otherwise you will need to doing over and over.

Data layers projection to WGS 84.

Since this is a good global data set, you may want to load a globe for reference, you can use your own custom projection, or use a plugin like globe builder:

Access Globe Builder from the plugins menu > Manage and Install > type: Globe.

Once installed, just run it from the little globe icon, or in the menu plugins > Globe builder > Build globe view. You have a few options there, play around with the center point lat/long. You will see that this data sets always have large concentrations of emissions in Africa, maybe that’s a great place to start. I’ll do a similar view to the California story for now.

Step 3. Styling your map

The color ramp is important, you want to have a data layer that can be overlayed in the base map, so you want to have white/black for the lower values and high contrast in the other end of the data, since we are working on white background I’m using white to black with yellow and brown stops. Check what are the highest values in your data set the style for on layer to something like this:

Number in the min/max will change depending on the highest values of your data and the style you want. This image is set for OCCMASS from June 19th, 2022, 4:30 pm.

Once you have the ideal color ramp for one layer, right click on that layer, go to Styles > Copy style. Then select all you carbon data layers, right click on them and select Styles > Paste Style.

Step 4. Preparing to export your map

You are almost done, by this point you can see how each data layer creates swirls in the atmosphere, maybe some evolution of it too just by toggling the layers visibility. I like to have all the layers well organized so you can quick check the data. I’m maybe a little too obsessive but I usually rename all layers and groups to something like this:

QGIS layers panel.

The name change works if you are using an automatic export of all layers, the script takes the name of the layer to save each file. But there are alternative ways to do this if you’re not as crazy as I am and don’t want to spend time manually renaming.

Step 5. Export your map

There are many ways of doing this, you can set up the time for each layer by using the temporal controller, there’s a good guide here. That way you can get a mp4 video right away from QGIS, but you need to set up each data layer time manually.

You can also use a little code to export each layer into an image, which you can then import into After Effects. To do that, the first step of course, is to get the script. Download the files HERE.

Now, go to the plugins menu at the top, there, you will see the Python console, go and click that, you will see this window popping-up:

Python console in QGIS.

Click the paper icon, then click the folder icon and select the python script you dowloaded above. Just be careful with the filePath option.

If you are on a mac, right click your output folder and hold the option key, that will allow you to copy the absolute path of you folder, paste that to replace the filePath field value (the green text in the image below). If you are on Windows, just make sure to get the absolute path and not a relative one.

I left some annotations on the script to better understand what each part is, it’s based on a script someone did with Vietnamese annotations, source and credit are in the drive link too.

Now just click the play button in the python console, seat back and look all the frames of your animation loading in the output folder you selected. You should see a file for each of your layers when the script finishes.

Step 6. Export your animation

Take all the files this into After Effects. First, add your carbon data as sequence (0001.png, 0002.png, 0003.png…), keep that in a sub-composition and use a multiply blend mode to overlay the layers, then add the countries/land and the optional halo.

Finally, in the drive folder you will see a .aep file, that’s a simple number animation to control dates, copy the text layer into your composition. You know when the data starts and when it ends, in the example is just 3 days 19-21, “June” is a different text layer, so add those numeric values to the keyframes into the text layer you have copied, and leave it at the very top:

Once you are all set, just export to media encoder to get you mp4 animation.

If any of this doesn’t make sense to you, or if you’re having trouble with a step, feel free to reach out to me on Twitter. I will be happy to hear from you.


Happy mapping!

Standard
Digital works

My fav little details of 2021 on Reuters

That time of year has come once again, the best of the year in my opinion. All us is doing the list of the best of the year to give a glimpse of what 2021 was like and, of course, to give a final push to their stories as well. So, like last year, I want to do a quick rundown of my favourite details of the 2021 projects. Keep in mind the pieces in this entry are out of context and you may want to take a look into the full story for better understanding.


January: The amazing Amazon rainforest

The 2021 kicked off strongly, during the first month of the year I worked various projects including some breaking news. My favourite details of January was a small graphic part of the project titled “Jungle Lab”. The graphic itself isn’t a super complex visualisation, actually it’s just a simple illustration, but the message behind it is very powerful. It makes you realise the relevance of the virgin rainforest right away. I truly believe that our work on infographics is not about fancy effects but powerful messages to our readers.

January highlight [ link HERE ]

OTHER JANUARY PROJECTS

As I said before, January was a busy month. Here are some other details that I also enjoyed working on, mostly breaking news.

You may remember the story of miners who were trapped in a mine after an explosion in Northeast China [link here]. There’s a small graphic showing dimensions of the rescue shafts dug by rescuers, that’s something really difficult to imagine without a familiar reference.

Aside from the miners, you may also remember the tragic accident of the Indonesian flight SJ182 [link here]. I recon working with those bathymetric maps helped to explain why recovering the black boxes was a difficult operation. Also kind of shocking to see a few incidents of airplanes around the same area.


February: Sand.

After a tight January, news continued to pop up everywhere, lots of stories with great potential for a visual project. I have the opportunity to do some experimentation with 3D assets using amazing high resolution images courtesy of Planet Labs. We created a detailed story of the massive landslide in India [link here]. Here’s also a short recording of the piece running in C4D: [Drive video].

However, a much larger project was published in February. For a long time we worked on a series of projects on a topic that impressed me. To be honest, I never thought about it before: Sand mining.

Sand mining and trade is a whole world itself, this commodity is unnoticed present in our daily lives. It have a dark side of illegal trafficking and mafias too and even it have sparked diplomatic issues for some countries.

But one key thing that came to mind when I started working on this was this: Why we don’t use desert sand to feed our huge demand? There’s plenty of it!

Well… the explanation is a little more complex, but in short, desert sand grains are too small and rounded. That is why we are dredging rivers, digging abysses in mountains and making beaches disappear.

February highlight [ link HERE ]


March: Rain.

2021 broke some records with extreme weather events, in fact I did an entry here about a 2021 failed project on floods. You probably remember the floods in Germany and China, but there were many more events like that throughout the year.

In March, eastern Australia suffered what the Australian government called the worst flooding in 60 years. That week I was working in a daily-graphics shift, so I did a quick small map to visualise the event, here’s a small part of the graphic:

Also in March, I did a small collaboration on the nice project “Bats and the Origin of Outbreaks”. I really enjoyed working on that piece in every aspect, from the story angle to the opportunity to work with a custom style. You may also want to take a look at that piece:


April: Volcanoes awakening.

April surprised us with a breaking news story, the Le Soufriere volcano violently covered St. Vicent island in ash, devastating the island infrastructure and prompting a sea and land evacuation of thousands of residents. It also released emissions at spectacular heights into the atmosphere. It was like the omen of a year full of massive volcanic eruptions around the world.

I collaborated in the story with different pieces, but my favourite piece was Simon’s map showing buildings, shelters and risk areas among others. Here is a small detail of that map:

April highlight [ link HERE ]


May: Space!

One other frequent topic on my daily work this year was space exploration. I did a good amount of small pieces on telescopes, comets, asteroids and spacecraft.

May saw the landing of the Martian explorer ‘Tianwen-1’ develop and successfully landed in the red planet by the Chinese. Here is a little detail of that graphic:


June: Olympics.

My favourite from June was the singular Olympic sports story. Can’t imagine the adrenaline rush of a 200m obstacle swimming competition. Jumping over boats and diving again to be the fastest hurdle swimmer of all times, they sure had a lot of fun there.

Here’s a small diagram of the course of the Paris games of the year 1900:

June highlight [ link HERE ]


July: Space! (again)

By mid year the news put me back thinking in the outer space. The Hubble Telescope was literally an eye-opening for the scientific community and for all of us in general. Even more so if you stop to think that this magnificent achievement of science was designed with technology from the 80’s. I can’t believe how the old computer from the 80’s still worked there. Here’s a small detail from a daily basis graphic that explains where the telescope problem was. ( The 80’s computer SIC&DH )

This 2021, I spent a little more time making small single-day graphics. I enjoyed the small break from big projects, and the quick and intensive research part you have to do to get it done in a single day. However, I think the best part was going back to the long-medium term projects that were almost done to finish them, with my mind clear and fresh.


August: Wildfires & aircraft data

August was a very busy month too. One of my favourite pieces was this sad new record: For the first time in the records, smoke from the fires reached the north pole. Check out the graphics thread below. There’s a third graphic in that thread, click on it if you want to see some temperature records too:

The second part of the month was infused with the chaos surrounding the US departure from Afghanistan. We did a few pieces on this, overall my favourite was the spaghetti drawn by the aircraft around the airport. It’s really cool how when you are digging into the data many stories pop up, and often many questions more.

August highlight [ link HERE ]


September: Ice.

Like what happened to me this year with the sand, there are things that you never expect to be so interesting. Ice is more than frozen water, ice cores are cool stuff. These things can help to retrieve ancient records, they are like windows to the past of our planet. On September we published this story about that.

The sad part is that we are loosing those records due global warming, and it’s not slowly loosing them, it happens at freaking vertiginous fast speed. The graphic above shows the average of how much ice melts in the world EVERY DAY! The amount is equivalent of placing a gigantic 273m-high ice cube in NY’s Central Park.

September highlight [ link HERE ]


October: Rainforest.

The forests stories returned in October. This project took many days of 3D scene testing, hundreds of calculations to put thousands upon thousands of trees in place, modelling objects and illuminating leaves to show how quickly we are removing the things that are keeping us alive. We are nuts isn’t?

Not just ice, but we are also losing trees on an incredible rate. On average, 67,000sqm of rainforest is lost EVERY MINUTE. The following video begins at ground level, right in front of 3 people and a logging tractor, all to scale. In order to see the portion of the forest that we lose, you see people and tractors as ants.

There were also other quick projects on this month, one of them was the story of the Chinese incursions on the Taiwanese ADIZ. Since then, many more events had happened and tensions only continued to escalate between both sides. Thinking about the region that has been my home for so many years, I hope this doesn’t go any further. Unfortunately, there are always chances that this will get out of control.

October highlight [ link HERE ]


November: Pollution.

India is a very particular place. During the last months of each year, northern cities are suffocated by pollution trapped at the foot of the Himalayas. There are many reasons behind this such as seasonal crop fires, fireworks celebrations, and many others. However, southern cities avoid polluted skies. That was the subject of a one-day quick map, here’s a detail of it:


December: spin, spin and throw it.

Back to outer space news! …or kind of.

Near the end of last month (Nov.) I was working in one more of those small pieces for the daily basis. This time my mind blowed up with this idea of launching things into space without rockets.

The idea is to spin a projectile in a vacuum chamber, gain momentum, and propel it into orbit around the Earth. I imagine something like throwing a hammer at the Olympics, but on an enormous scale. Here is a small detail of the graphic in mention:


My 2021 list of graphics

Just a few days more of the 2021 are left, so many stories have crossed under my Wacom and keyboard, it was a great year. Hope you enjoyed this sneak pick of all the stuff I worked on over the year. I hope you also considered visiting the stories mentioned, just hit the link at the end of each month’s entry to get a better context of each of the details highlighted here.

2021 was a great year, I’m very grateful to Reuters for all the good things, also to my teammates, for everything we did together and how much I learned. There is no better way to say goodbye to this year.

Animation by @Kirun via Giphy


See you all in 2022, Merry Christmas!

Standard
Digital works

Nerd facts: The Rule of Law World Index

score

Rendered view of the World rank of rule of law 2016

This is a project based in data of the “World Justice Project Rule Of Law Index, 2016″ by the SCMP infographics team. Our goal was to show the information in a simply visual interactive tool, to give our readers also a perspective of Hong Kong and the world overview.

This was a very fast-build graphic, the idea was to show the world rank moving up and down from the last year to this year and also a visual report of each country/region.

screen-shot-2016-11-02-at-10-00-23-am

Country report assets. The graphic is generated by json data thought js, this svg assets are rotated, scaled and positioned according the country data.

This graphic is a combination of css, svg, js, and json data. But only uses 8 files of a simply vector shape, so load very fast. The main idea was to give a comparison tool, to view the countries of interest side-by-side but also their position related to other countries in the region, that is the irregular shape, according to the scale, the average of each of the 7 regions is added via js to every country.

screen-shot-2016-11-02-at-9-59-58-am

Seven region average index layers

The graphics evolved to an more effective visual representation, in my work is usual to create at less five previous concepts, from data reports like excel pivot tables to paper concepts and finally to vector graphics. The most effective way to show the data, some times come on the fifth or seventh iteration, but is the best way to create some informative and usable infographic.

screen-shot-2016-11-02-at-10-00-41-am

Early concepts for the Rule of Law global index

 

Also, maybe thats the reason of some mistakes in the data, text or color codes in this images, the building up of this graphics always have the main ideas to guide the next versions, so it needs the text and visuals in more than simply Lorem Ipsum

rank

First version of the index change (2015-2016)

Hope you enjoy the graphic story, please take a look in to the final version here: http://multimedia.scmp.com/news/world/article/rule-of-law/

Standard
Digital works

Nerd facts: Asian American population

US elections are coming and here in Hong Kong we want to see it from an Asian perspective. Some weeks ago I start this project to collect the data of Asians in US and visualize it.

boundaries

The map in first instance is nothing more than a choropleth map, I start from a black map as the one in the top, then one by one I manually add a grey value in five clusters, white for 0% and so on to +25% as the dark grey.

The US Census Bureau has a very specific data for Asians in US, but I use data also from the APIA and AAJC Asian organizations in US as well, the research phase takes me about a week, producing the graphics and coding it was about four days, and about an other week making edits and corroborating each small graphic and each word in the special feature. I must highlight that this graphic was not just a map, each state in the US has a detail of text and graphics so it was not ease to check, edit and revise.

screen-shot-2016-10-20-at-1-00-48-pm

Early version of the country over view. As you may note, beyond color the elevation is different, my first data set was for total population instead of percent of the population

The map was generated with Cinema 4D, based on a grey scale county map, then styled with Illustrator and photoshop and coded with Brackets io trough SVG, Jquery, JS…

This slideshow requires JavaScript.

The color code is very important because the position of camera will change in perspective, so the color make easier to visually determinate the height of each area no matter the position. In the following image the camera position affect the way we perceive the height of the counties, just because the matter of point of view, but when color is on… well, see your self:

color

Brown means Asian population over 25% in the specific county (as well the height), I call that to perceive data in multidimensional ways, but keep it understandable

The position of cameras will change for each state, as for the videos and other sections using the specific portions of the map to tell different stories.

Following the 3D idea, the complementary graphics was also generated in C4D and the layout phase begin.

screen-shot-2016-10-20-at-12-57-26-pm

Some graphics display scroll-trigged video on desktop versions, then for mobile switch for static renders because IOS don’t allow autoplay videos or video out side the native player

hi_motion

This is one of the city spinners, all of them uses an image like this, is positioned by the mouse drag final position and makes the 3d effect

Hope you as reader enjoy the project much as I enjoy to make it, please visit the special feature here http://multimedia.scmp.com/news/world/AsianAmerican/

Standard
Digital works

Hong Kong’s ageing population

A few days ago this project about the ageing population goes live at scmp.com

This slideshow requires JavaScript.

Here is a lot of information to explore, the interactive special feature have plus 40 years of population forecast for Hong Kong, there, you can explore how the population will be conformed for the next years a how will be getting older and older.

Usually I don’t use or make much illustration by my self, but I been losing fear about, I have the intention to use illustration to make a balance of the serious and hard data-viz.

Take a look in to the project trough this link http://multimedia.scmp.com/2016/ageing/ comments always welcome.

 

Standard
Digital works

Pokemon invasion

The Pokemon fever runs out the whole world, here in Hong Kong the people also was infected with the Pokemon global madness, so we in the SCMP graphics want’s to offer something different to our readers, and that was a detailed map of the Hong Kong Pokemon spots and a plus graphic about the Skills and weaknesses of each class of Pokemon.

 

folder

The map was a hard work, to get all this data the folder of Pokemon project reach about 12 Gigabytes of my computer, but off course the final application on line is just about 500KB, I catch this information from an other game in which the creators was based to create the Pokemon virtual world, the whole process takes me 5 days including the new design and the development phase.

When I finish the data catch phase and clean it, the points shows a really nice pattern, following the urban areas but also reveals by him self the Islands shapes.

vector_10pc

10% map sized of the original data. In the bottom right corner the most concentrated area of Pokemon spots, corresponds with the Hong Kong Island districts and the Kowloon territory crossing the bay area.

My first design was a purple points for the spots over a grey map, to give it a high contrast, but, then turns green and blue to keep it closer to the actual game interface. Usually I wrote my own text, but as you may know my english is not the best so, the layouts and the final product changes a bit on that also.

layout_vrs2

Illustrator layouts for Pokemon project. Version 2.2

The bottom section has a graphic about some characteristics of each class of Pokemon, the dropdown menu allows readers to switch the class and display different graphics, I have to say that I don’t like the Pokemon at all, even when I was younger, but I love to create data visualizations and offer to the people an other way of stories… visual stories; so Yes, I enjoy this project much as the Pokemon lovers has enjoy it also.

pokemon_types

All the small graphics for Pokemon skills. Red for attack, blue for defence.

If you go inside a region of the map, the graphics will show you how dense are the spots in that area, how many spots are there and how big is in square km, ho! and also will allow you to zoom in just hovering the mouse in the map.

sitezoom

Area in detail, you can access by clicking areas in the main map, clicking the half circles of the top graphic, or choosing an specific region in the drop down menu.

You can find and enjoy the infographic in this link http://bit.ly/2aFU7W8

Standard
Awards, Digital works

SND Digital Awards

SND

Two of our digital works published at nacion.com wins an Award Of Excellence in the 2015 edition of the contest. The first one is the project in celebration of the “75th anniversary of the National Symphonic Orchestra” the design and development of this projects set a starting point to the trends of our unit.

The second project awarded this February in Washington D.C. was the “Birth of a Century“, I was invited to work in this project for the unit of Data from La Nación, and I have the fortune of the collaboration of the development unit as the artist Augusto Ramírez.

I have to say that I’m very very happy to get this awards of the Society for News Design in his digital contest, but this is a team work, and I must say thanks to my partners in the infographics unit, the Data Team of LN, the Development area, my Editors, and many many people who supports me last year.

This slideshow requires JavaScript.

 

 

 

 

 

 

 

 

 

Standard
Digital works, Motion graphics

Quick graphics for social networks

Last year (2015) I start many new projects, some of them are still progress, but one of these are the quick graphics for social media.

At the unit of infographics and datavisualization, we spend many time in daily production and in special huge projects, I believe that we have enough time and muscle to produce frequently these small graphics,  every single infographic must have a print version, desktop digital versión, mobile version but also, i like to choose some of these to develop a social media version, sometimes a gif, or an image or even a short video with a compact version of the main graphic.

So, here is some of my favorites picks:

The spooky asteroid:

In october 31, an asteroid pass near the earth (near in space terms), this asteroid was renamed “the spooky asteroid” and take the attention of the world by the time of his visit, so it was a nice opportunity for a quick graphic for social media:


Compact version for social media. Motion-Infographic by Marco Hernández.

spooky

Gif version for social media. Infographic by Marco Hernández.

pesoInfo_spooky

Desktop digital version for article. Infographic by Marco Hernández.

The MAVEN findings:

The NASA made the announcement of the Maven mission findings about what happened with the atmosphere and magnetic fields of the red planet. We are awaiting the press release with a stock of pieces to develop soon as we can a simply animation for social media:

ARTpieces

Illustrations by Dominick Baltodano and Marco Hernández.


Compact version for social media. Motion-infographic by Marco Hernández.

MAVEN-Marte_LNCIMA20151105_0084_1

Desktop version, infographic by Edgar Jiménez, Carlos Fonseca and Marco Hernández.

Hope in this 2016 have many more of these chances to create more quick graphics for social media, these are a great way to engage readers with content made exclusively for consumption on social networks.

Standard
Digital works

The birth of a century visualized: Backstage

Illustrations by Augusto Ramírez

Illustrations by Augusto Ramírez

A few days ago We published at nacion.com this special feature analyzing the data of 115 years of births in Costa Rica. We decide to take this special as an opportunity to explore the deep exploration of data visualizations with the efficiency and impact of illustrations. But besides the style and interface, the production process its the most interesting story.

One of the most complicated pieces of the special its the section of conceptions, we have all this data about the births, and the necessary references to relate it with the conception, so, We wanted to create a customized visualization to navigate through a 115 years of the country history and relating how the people gets pregnant.

We begin with a model of variation per decade, where we can see the balance in favor or against each decade in births. We use this chart as a navigator to show in the bottom detail of those ten years. By this time we have the idea of linking these points with major events taking place in the country and the region to relate the behavior of people with some important facts in time.

first version of the visualization of conceptions

First version of the visualization of conceptions. Note the dummy text 🙂

This special was an conjunction exercise with the Data Team of La Nación, I made my part in visualization and other support, but it because the skillfully profesional of they, it’s that the final product becomes properly. In spite of I have a small part of the special, the versions of the charts, the motion graphics and some other assets take about 1.1 GB of space. This is it because I made so many versions and testing design to find the better way to present the findings in the data.

I start with this horizon chart to visualize the concentration of conceptions, it was fun because i start thinking that i’m seeing in the moment in which the persons did their things in their beds conceiving new compatriots. So I could be seeing as in some parts of the graphics I surprised myself with what they meant those lines.

Full visualization by decade of conceptions in Costa Rica

Full visualization by decade of conceptions in Costa Rica

Obviously we not publish comments like the next ones that I’ll score when analyzing the chart in search of curiosities, but between the equipment if the process is to make more fun, I must say that is a personal process and does not refer to style publication of our environment here at La Nación.

in the top graphic I wrote "The begin of the Century, our grandparents also was having fun" the data reflects that they in the early century don't discriminate the time to get pregned

in the top graphic I wrote “The begin of the Century, our grandparents also was having fun” the data reflects that they in the early century don’t have prefers or discrimination of the time to get pregnant

Findings

in the top graphic I wrote “five months giving it!!!” the data show periods or season of conceptions, the behaviour changes through the time, the late conceptions prefers the 3 or 4 last months of the year to get pregnant. At the bottom I wrote “the early ones” for 2011

Also i add some drafted emoticons, at the top a sad face because the high season is only of 2 months, but for 2006-2007 the high season extended for 6 months OMG a lot of time enjoying the bed time!

Also i add some emotions, at the top a sad face because the high season is only of 2 months, but for 2006-2007 the high season has a prolongation of 6 months OMG a lot of time enjoying the bed time!

This if the full visualization if the 115 years of data of baby conceptions in Costa Rica, then i split it by decade.

This if the full visualization if the 115 years of data of baby conceptions in Costa Rica, then i split it by decade.

 

The final version have the instructions to read the horizon graphic and the indications of each space that will change when the reader click the upper menu by decade, then, the dashboard change the data according the user interest.

The main graphic is the conception concentration, at the bottom the decade resume, and the percent variation between decades

The main graphic is the conception concentration, at the bottom the decade resume, and the percent variation between decades

How to read the graphic, the title show a legend "before you start, you must know"

How to read the graphic, the title show a legend “before you start, you must know”

PLUS EXPERIENCE

We add some hide effects to give different experiences of navigation to the readers, if you use the side menu to navigate each section is preceded by an animation like the next one, if you want a see more of this project please visit it here http://bit.ly/1kpN45p  hope you enjoy the data experience.

 

Illustration by Augusto Ramírez.

Illustration by Augusto Ramírez, Motion by Marco Hernández.

Standard