|
| 1 | +# =========================================================================== |
| 2 | +# CATRINE D7.1 — ERA5 Spectral 0.5° Lat-Lon (1-Week Test) |
| 3 | +# |
| 4 | +# 4-tracer intercomparison: CO2, fossil CO2, SF6, 222Rn |
| 5 | +# Period: 1 Dec 2021 — 7 Dec 2021 (28 windows = 7 days × 4 windows/day) |
| 6 | +# Met data: ERA5 spectral mass fluxes, preprocessed to 720×361×137 |
| 7 | +# Output: 3-hourly, full 3D fields + column mass (BinaryOutputWriter) |
| 8 | +# |
| 9 | +# Preprocessing: |
| 10 | +# julia --project=. scripts/preprocessing/preprocess_spectral_massflux.jl \ |
| 11 | +# config/preprocessing/catrine_spectral_dec2021.toml |
| 12 | +# |
| 13 | +# Usage: |
| 14 | +# julia --threads=2 --project=. scripts/run.jl \ |
| 15 | +# config/runs/catrine_era5_spectral_1week.toml |
| 16 | +# =========================================================================== |
| 17 | + |
| 18 | +[architecture] |
| 19 | +use_gpu = true |
| 20 | +float_type = "Float32" |
| 21 | + |
| 22 | +[grid] |
| 23 | +type = "latlon" |
| 24 | +met_source = "era5" |
| 25 | +size = [720, 361, 137] # 0.5° × 0.5°, full 137 levels |
| 26 | + |
| 27 | +[met_data] |
| 28 | +driver = "preprocessed_latlon" |
| 29 | +directory = "/temp1/atmos_transport/era5_spectral_catrine" |
| 30 | +dt = 300 # advection sub-step [s] (Prather needs CFL<1) |
| 31 | +max_windows = 28 # 7 days × 4 windows/day |
| 32 | + |
| 33 | +# --- Initial conditions --- |
| 34 | +# CO2 and SF6 from LSCE inversions (1 Dec 2021 00:00 UTC) |
| 35 | +# Bilinear horizontal + log-pressure vertical interpolation |
| 36 | +# from LMDZ 360×180×79 → ERA5 720×361×137 |
| 37 | +# fossil_co2 and rn222 start from zero (no IC entry needed) |
| 38 | +[initial_conditions] |
| 39 | +co2.file = "~/data/AtmosTransport/catrine/InitialConditions/startCO2_202112010000.nc" |
| 40 | +co2.variable = "CO2" |
| 41 | +sf6.file = "~/data/AtmosTransport/catrine/InitialConditions/startSF6_202112010000.nc" |
| 42 | +sf6.variable = "SF6" |
| 43 | + |
| 44 | +# --- Tracers --- |
| 45 | + |
| 46 | +[tracers.co2] |
| 47 | +emission = "prebuilt" |
| 48 | +file = "~/data/AtmosTransport/catrine/output/era5_spectral_1week/emissions_prebuild/co2_720x361.bin" |
| 49 | +species = "co2" |
| 50 | + |
| 51 | +[tracers.fossil_co2] |
| 52 | +emission = "prebuilt" |
| 53 | +file = "~/data/AtmosTransport/catrine/output/era5_spectral_1week/emissions_prebuild/fossil_co2_720x361.bin" |
| 54 | +species = "fossil_co2" |
| 55 | + |
| 56 | +[tracers.sf6] |
| 57 | +emission = "edgar_sf6" |
| 58 | +file = "~/data/AtmosTransport/catrine/Emissions/edgar_v8/v8.0_FT2022_GHG_SF6_2022_TOTALS_emi.nc" |
| 59 | +noaa_growth_file = "~/data/AtmosTransport/catrine/Emissions/sf6_gr_gl.txt" |
| 60 | +year = 2022 |
| 61 | +scale_year = 2022 |
| 62 | + |
| 63 | +[tracers.rn222] |
| 64 | +emission = "prebuilt" |
| 65 | +file = "~/data/AtmosTransport/catrine/output/era5_spectral_1week/emissions_prebuild/rn222_720x361.bin" |
| 66 | +chemistry = "decay" |
| 67 | +half_life = 330350.4 # 3.8235 days in seconds |
| 68 | + |
| 69 | +# --- Chemistry (222Rn radioactive decay) --- |
| 70 | +[chemistry] |
| 71 | +type = "composite" |
| 72 | + |
| 73 | +# --- Advection --- |
| 74 | +[advection] |
| 75 | +scheme = "slopes" |
| 76 | + |
| 77 | +# --- Convection --- |
| 78 | +# NOTE: Tiedtke convection requires CMFMC fields, which are not yet merged |
| 79 | +# into the preprocessed spectral mass flux files. Enable once surface fields |
| 80 | +# are integrated via merge_era5_surface_to_massflux.jl. |
| 81 | +#[convection] |
| 82 | +#type = "tiedtke" |
| 83 | + |
| 84 | +# --- Diffusion --- |
| 85 | +[diffusion] |
| 86 | +type = "pbl" |
| 87 | +beta_h = 15.0 |
| 88 | +Kz_bg = 0.1 |
| 89 | +Kz_min = 0.01 |
| 90 | +#Kz_max = 500.0 |
| 91 | + |
| 92 | +# --- Output (3-hourly, full 3D + column mass) --- |
| 93 | +[output] |
| 94 | +filename = "~/data/AtmosTransport/catrine/output/era5_spectral_1week/catrine_era5_week" |
| 95 | +interval = 10800 # 3 hours |
| 96 | +auto_convert = true |
| 97 | +format = "binary" |
| 98 | +split = "daily" |
| 99 | + |
| 100 | +[output.fields] |
| 101 | +co2_3d = {type = "full_3d", species = "co2"} |
| 102 | +fossil_co2_3d = {type = "full_3d", species = "fossil_co2"} |
| 103 | +sf6_3d = {type = "full_3d", species = "sf6"} |
| 104 | +rn222_3d = {type = "full_3d", species = "rn222"} |
| 105 | +co2_column_mass = {type = "column_mass", species = "co2"} |
| 106 | +fco2_column_mass = {type = "column_mass", species = "fossil_co2"} |
| 107 | +sf6_column_mass = {type = "column_mass", species = "sf6"} |
| 108 | +rn222_column_mass = {type = "column_mass", species = "rn222"} |
| 109 | +surface_pressure = "surface_pressure" |
| 110 | + |
| 111 | +[buffering] |
| 112 | +strategy = "double" |
0 commit comments