CEVE 543 Fall 2025 Lab 10: Weather Generator Implementation

Markov-chain based synthetic weather generation

Author

CEVE 543 Fall 2025

Published

Fri., Nov. 14

1 Objectives

  1. Implement stochastic weather generator for precipitation and temperature
  2. Generate synthetic weather sequences and validate against observations
  3. Understand preservation of statistical properties in synthetic data
  4. Compare weather generator output to observations

2 Before

ImportantInstructions

Do this before the lab date so that lab itself can go more smoothly.

3 Background and Reading

4 Tasks

Modify the code section below to address the following tasks.

  1. Implement Markov-chain based weather generator for daily precipitation
  2. Extend generator to include temperature conditioned on precipitation state
  3. Generate long synthetic weather sequences and validate statistical properties
  4. Compare synthetic data to observations using multiple validation metrics

5 Code

using Pkg
lab_dir = dirname(@__FILE__)
Pkg.activate(lab_dir)
# Pkg.instantiate() # uncomment this the first time you run the lab to install packages, then comment it back