# Heatmap Plotter

**URL:** <https://forum.cmascenter.org/t/heatmap-plotter/2936>\
**Category:** PYTHON\
**Tags:** python, heatmap\
**Created:** [December 30, 2021, 12:36pm UTC](https://forum.cmascenter.org/t/heatmap-plotter/2936 "2021-12-30T12:36:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bukim1](https://avatars.discourse-cdn.com/v4/letter/b/c6cbf5/32.png) [@bukim1](https://forum.cmascenter.org/u/bukim1)\
**Post date:** [December 30, 2021, 12:36pm UTC](https://forum.cmascenter.org/t/heatmap-plotter/2936/1 "2021-12-30T12:36:39Z")

</div>

I am sharing a code that can be used to create “heatmap” plots to show data with two temporal scales (e.g., day of month vs month).  
[MakeHeatmapPlot.py](https://forum.cmascenter.org/uploads/short-url/6JrK1nyYWeiTUZ2emRp5W9tiUhP.py) (7.1 KB)

For plots with days of month, the code will handle the leap-year issue based on the length of the input data.

I am posting input data files as well as example outputs.

* * *

[monthly\_daily\_PM25\_Z2\_A004\_FB.csv](https://forum.cmascenter.org/uploads/short-url/qCSPpQcWd6wb7ZuRqTv4xM70SO9.csv) (9.6 KB)

 ![monthly_daily_PM25_Z2_A004_FB](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/6/6d61f3b6797d79782abfa5d6504030e7dce0b777.png)

* * *

[monthly\_daily\_PM25\_Z2\_A005\_FB.csv](https://forum.cmascenter.org/uploads/short-url/aLWgSYzkWiytB8uYParNshSGV5i.csv) (9.3 KB)

 ![monthly_daily_PM25_Z2_A005_FB](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/9/9b6a9a0ec79f3fa3fe7ab5e9afccc8bbbb9b9eae.png)

* * *

[monthly\_diurnal\_DPT\_Z2\_CONUS\_bias.csv](https://forum.cmascenter.org/uploads/short-url/lqGGtiikksMEHe4N9GZyG1Etbqz.csv) (7.1 KB)

 ![monthly_diurnal_DPT_Z2_CONUS_bias](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/6/6b0af85f28d0c78824aea0609e454131beaf4ca2.png)

* * *

[monthly\_diurnal\_DPT\_Z2\_CONUS\_RMSE.csv](https://forum.cmascenter.org/uploads/short-url/omiyjBoHDioeFQ3g40c7OK7TqXL.csv) (4.3 KB)

 ![monthly_diurnal_DPT_Z2_CONUS_RMSE](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/5/5369556fdfbf942cb4a64129eca6b7ceecb91eaa.png)

* * *

[daily\_diurnal\_TEMP\_Z2\_SEMAP\_bias.csv](https://forum.cmascenter.org/uploads/short-url/qF5lPn5SEhvLg2wzaNR1dArjFtZ.csv) (10.7 KB)

 ![daily_diurnal_TEMP_Z2_SEMAP_bias](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/a/abac9b761164d420b190bd57e4fd048e2cc647e0.png)

* * *
