MODIS MOD021KM and FIRMS

Wildfires Modelling Standard Python

license binder render review

RoHub doi

Context

Purpose

Explore MODIS satellite imagery and wildfire data that is open and free for scientific use.

Sensor description

The MOD021KM product contains calibrated and geolocated at-aperture radiances for 36 discrete bands located in the 0.4 to 14.4 micron region of the electromagnetic spectrum.

Highlights

  • Use satpy to load, visualise, and regrid MODIS level 1B data.

  • Fetch a fire database containing some 497364 fires from 2020.

  • Visualisation of fire pixels from the database.

  • Visualisation of the fire pixels alongside bands from the MODIS satellite data.

Contributions

Notebook

  • Samuel Jackson (author), Science & Technology Facilities Council, @samueljackson92

  • Alejandro Coca-Castro (reviewer), The Alan Turing Institute, @acocac

Dataset originator/creator

MOD021KM
  • MODIS Characterization Support Team (MCST)

  • MODIS Adaptive Processing System (MODAPS)

Firms
  • University of Maryland

Dataset authors

MOD021KM
  • MODIS Science Data Support Team (SDST)

Firms
  • NASA’s Applied Sciences Program

Dataset documentation

Note

The author acknowledges MODIS Science Team and the use of data and/or imagery from NASA’s Fire Information for Resource Management System (FIRMS) (https://earthdata.nasa.gov/firms), part of NASA’s Earth Observing System Data and Information System (EOSDIS).

Install and load libraries

!pip -q install geopandas
!pip -q install geoviews
WARNING: The directory '/home/jovyan/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: The directory '/home/jovyan/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

import pandas as pd
import numpy as np
import geopandas
import intake
import fsspec, aiohttp
import hvplot.xarray
import hvplot.pandas
import holoviews as hv
import panel as pn
import satpy
import xarray as xr
import tempfile
from pathlib import Path
from scipy.spatial import cKDTree
from satpy.writers import get_enhanced_image
from getpass import getpass
from pathlib import Path
from pyresample import geometry
import datetime
import urllib.request
import os.path
from dotenv import load_dotenv
import warnings
warnings.filterwarnings(action='ignore')