This replication package contains the datasets and dual-language processing scripts used to analyze the interaction between climate shocks and exchange rate volatility in Morocco and Türkiye (2010-2024).
Datasets Included:Trade Volume Series: Monthly export volumes (kg) at the HS 6-digit level. Sourced from ITC Trade Map with hierarchical gap-filling via mirror statistics for minor categories.Geospatial Climate Data: GeoJSON coordinates for national production clusters and high-resolution (up to 30m) water productivity and SPI series. Data were extracted via TerraClimate, NASA AppEEARS, and FAO WaPOR v3, and spatially masked to isolate the specific climatic conditions of Morocco and Türkiye's agricultural regions.Virtual Water Exports Index: A derived longitudinal series constructed by integrating crop-specific water requirements with monthly export volumes. This index quantifies the Blue and Green water footprints embedded in agricultural exportsMacroeconomic Variables: Monthly REER (Bruegel) and interpolated RGDP of partner countries (World Bank).Code Repository:Python Scripts: Contains the Gravity Model implementation using the Poisson Pseudo-Maximum Likelihood (PPML) estimator. Includes scripts for data cleaning and early-stage diagnostics.R Scripts: Dedicated to Panel Granger Causality tests. Includes panel stationarity diagnostics (IPS tests).