An interactive map representing the sea surface temperature of 2005-2015
-
Downloading data from NOAA for 10 years i.e., 2005-2015
-
Setting up all libraries and utilities
-
Clipping the downloaded
tiff
files to responsible latitudes and longitudesparallel rio clip {} clip/{/} --bounds -180.0 -70.0 180.0 70.0 ::: global/*.tif
-
Changing the projection to web mercator projection
parallel gdalwarp {} mercator/{/} -t_srs EPSG:3857 -co COMPRESS=DEFLATE -r bilinear -ts 2048 1138 ::: clip/*.tif
-
Selected the following colour composite for the visualization
#f5f5f5,#E59D73,#0089BA,#007270,#EE0000,#0D8977,#2F9F78,#54B575,#7DCA6E,#ABDD65,#DEEE5F
The above color composite is applied in the pre-exising code lil code and save it as a text file (python make_color.py > color_ramp.txt).
-
Colorize the
tiff
filesparallel gdaldem color-relief {} color-ramp.txt color/{/} ::: mercator/*.tif
-
Converting
tiff
topng
parallel rio convert {} pngs/{/.}.png --format PNG ::: color/*.tif
-
Animate
png
files usingffmpeg
library -
Providing Interactivity to map using mapbox GL JS following this script