@@ -64,17 +64,18 @@ spinup_days = 20
6464SOC_init = FT (2.0 )
6565dt = Float64 (450 ) # 7.5 minutes
6666
67- # Dates - get location from FLUXNET metadata, but use ERA5 forcing
67+ # Dates - get location and tower height from FLUXNET metadata
6868(; time_offset, lat, long) =
6969 FluxnetSimulations. get_location (FT, Val (site_ID_val))
70+ (; atmos_h) = FluxnetSimulations. get_fluxtower_height (FT, Val (site_ID_val))
7071(start_date, stop_date) =
7172 FluxnetSimulations. get_data_dates (site_ID, time_offset)
7273spinup_date = start_date + Day (spinup_days)
7374
7475# UKI settings
7576rng_seed = 1234
7677rng = Random. MersenneTwister (rng_seed)
77- N_iterations = 5
78+ N_iterations = 20
7879
7980# ── 3. One-time Setup (domain, forcing, LAI) ─────────────────────────────────
8081# Use global domain settings: 15m depth, 15 vertical elements, stretched grid
@@ -93,15 +94,17 @@ land_domain = Column(;
9394surface_space = land_domain. space. surface
9495canopy_domain = ClimaLand. Domains. obtain_surface_domain (land_domain)
9596
96- # Build ERA5 forcing (global-style )
97+ # Build forcing from NEON CSV data (site-level meteorological observations )
9798toml_dict_base = LP. create_toml_dict (FT)
98- (atmos, radiation) = ClimaLand. prescribed_forcing_era5 (
99+ (; atmos, radiation) = FluxnetSimulations. prescribed_forcing_fluxnet (
100+ site_ID,
101+ lat,
102+ long,
103+ time_offset,
104+ atmos_h,
99105 start_date,
100- stop_date,
101- surface_space,
102106 toml_dict_base,
103- FT;
104- use_lowres_forcing = true ,
107+ FT,
105108)
106109
107110# LAI from MODIS (global-style)
0 commit comments