The script below try to simulate how Pettitt test detects inhomogeneous or homogeneous on precipitation data. Here's the updated approach:
-
Daily Precipitation Data:
- We have daily precipitation.
-
Generate Monthly Maximum Precipitation Values:
- Create synthetic monthly maxima with distinct differences to ensure inhomogeneity.



