Nighttime Lights in Myanmar

Nighttime Lights in Myanmar#

Data & Methodology Note:

This notebook uses VIIRS Nighttime Lights Collection 2 monthly and annual products. For all analyses and visualizations where the year 2025 is shown, monthly data are aggregated to the annual level to ensure completeness, as the official annual product for 2025 may not be available yet. All other years use the official annual product where possible.

../../../_images/dc4e1ee060ddcc93c038720769d58f517f1cb75b827dc0bc0673076e93082c68.png
../../../_images/f71cec4a11366eecc2f96658bd0e3ecaea58c026e219768a7883723b9777edbc.png
../../../_images/5ba01a73e26a99452e516371394479751be7a62e8bfb58f7a461a615cef782da.png
/var/folders/gs/_227cnyd0pq1fr817_0jbcyw0000gp/T/ipykernel_87311/1568446717.py:19: UserWarning: Glyph 8594 (\N{RIGHTWARDS ARROW}) missing from font(s) Open Sans.
  plt.tight_layout()
/Users/ssarva/Library/Python/3.13/lib/python/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 8594 (\N{RIGHTWARDS ARROW}) missing from font(s) Open Sans.
  fig.canvas.print_figure(bytes_io, **kw)
../../../_images/6027bef9b013eae2f0505149e5adf762b7c08694b3abe4750bee0eba591b79c4.png
ntl_annual_adm1["date"] = pd.to_datetime(ntl_annual_adm1["date"])
ntl_annual_adm1["year"] = ntl_annual_adm1["date"].dt.year

ntl_monthly_adm1["date"] = pd.to_datetime(ntl_monthly_adm1["date"])
ntl_monthly_agg_adm1 = (
    ntl_monthly_adm1.groupby(
        ["ADM1_PCODE", "ADM1_EN", pd.Grouper(key="date", freq="YS")]
    )["ntl_sum"]
    .mean()
    .reset_index()
)
ntl_monthly_agg_adm1["year"] = ntl_monthly_agg_adm1["date"].dt.year
../../../_images/13e7dadeda6390ff2c95533795b5e8f926cfeb6835dd8e0255d37578da8f48b7.png