Repository navigation
Conversation
568f0d9 to
7734550
Compare
…tal interpolation When interpolating soil moisture from coarse source grids (e.g., RAP/HRRR/GFS), open-water grid cells often carry a constant 1.0_RKIND placeholder flag. For coastal land cells, narrow spits, and barrier islands surrounded by water, these placeholder values previously leaked into land cells through four-point stencil averaging or nearest-neighbor searches, setting SMOIS = 1.0 across all soil layers. This commit updates search_extrap, four_pt_average, wt_four_pt_average, and four_pt in mpas_init_atm_hinterp.F to reject donor points when mask_array == 1.0_RKIND and array == 1.0_RKIND. Restricting the filter to terrestrial land donors prevents water placeholders from contaminating coastal land soil moisture while preserving legitimate 100% sea ice (SEAICE = 1.0) on water points (mask_array == 0.0_RKIND).
7734550 to
9564457
Compare
… == 0.0 Encapsulate the open-water placeholder check into a pure function `is_water_placeholder` that requires `maskval == 0.0_RKIND`. This fixes an issue where valid 1 m/s land wind donors (which pass maskval = -1.0) were erroneously excluded in search_extrap.
|
@spanNOAA Thanks for identifying this issue and proposing a fix. So I am confused how the 1.0 SMOIL values happen. |
@guoqing-noaa Even in our RRFS retro cycling runs where atmospheric initial/boundary conditions come from GFS, the cold-start surface fields (
! Modify the 2017 GFS masked fields
if (index(map%source,'NCEP GFS') .ne. 0 .or. &
index(map%source,'NCEP GEFS') .ne. 0 ) then
if ( is_there(200100, 'ST000010')) then
call get_dims(200100, 'ST000010')
call fix_gfs_miss (map%nx, map%ny, 200100.)
endif
endifNeither As a result, |
|
@spanNOAA Thanks for the extra information. That's very helpful! Upon further investigation, I found the issue came from the the combination of RAP's For RAP, To determine the actual soil type, we need to check soiltype=16 means land ice. For references, here is the RAP STAS-RUC table in SOILPARM.TBL
So I think a better fix may be to read the @clark-evans and @harsh-kamath Do you have any suggestions? We'd love to hear your thoughts. Thanks! |
|
@guoqing-noaa Thanks for looking into To test this idea, I checked
Would love to hear @clark-evans and @harsh-kamath's thoughts on this as well! |
|
@spanNOAA Thanks for the discussions! Since the interpolation applies to all fields, not smois only, I am not sure whether It will be good if we can limit this check to soil moisture only (or RAP soil moisture only) instead of inside the general code May be we can recreate the mask_array for RAP soil moisture fields before Also, since we don't want to use these "unintended" points to interpolate soil moisture to a land MPAS cell, should we also avoid using them for soil temperature interpolation? |
|
@guoqing-noaa Thanks for the helpful suggestion! Moving this logic out of the generic I also think that we should exclude these same donor points for soil temperature (
One small detail on how to construct the mask: since
If everyone agrees with this approach, I'll update the PR and re-verify both |
…e and temperature
Description
This PR resolves a land-surface initialization defect in
init_atmospherewhen cold-starting MPAS from RAP / HRRR / RUC intermediate files (init_atm_case_gfs), where coastal land cells, sand spits, and islands near ice-covered water are erroneously initialized with water/sea-ice placeholder soil values (SMOIS = 1.000 m³/m³andTSLB[3m] = -1.75 °C).Following reviewer feedback, the earlier
mpas_init_atm_hinterp.Flogic has been completely reverted (0diff vsnoaa/develop), and the fix is now scoped cleanly insidesrc/core_init_atmosphere/mpas_init_atm_cases.F(+57 / -4lines) for both soil moisture (sm_fg) and soil temperature (st_fg).Problem Statement: RAP/HRRR/RUC
SOILM000 == 1.0Leakage at Coastal Land CellsIn RAP / HRRR / RUC intermediate files (
is_ruc_lsm_source(field % map_source)), ice-covered inland water/sea-ice points (e.g.,1,223points inRAP:2025-12-16_03withLANDSEA == 1andSOTYP == 16) carry open-water/ice placeholders:SOILM000..300 == 1.0 m³/m³SOILT300 == -1.75 °C(271.4 K, sea-ice bottom temperature)Because
maskslabtreatsLANDSEA == 1as valid land,interp_to_gridallowed those points to act as donors for coastal and island MPAS land cells (landmask == 1), corrupting bothSMOISandTSLB. This PR aligns MPAS with NOAA-GSL'sMETGRID.TBL.ARW.rap(missing_value=1.onSOILM000+interp_mask=SOILM000(1)onSOILM*andSOILT*).Solution & Implementation (
mpas_init_atm_cases.F)flowchart LR A["Pass 1: Scan LANDSEA & SOILM000<br/>(is_ruc_lsm_source)"] --> B["maskslab: original LANDSEA mask<br/>(non-soil fields unchanged)"] A --> C["soilmaskslab: set 0.0 where<br/>maskslab == 1.0 AND SOILM000 == 1.0"] B --> D{"Pass 2: active_maskslab target"} C --> D D -- "sm_fg (SMOIS) or st_fg (TSLB)<br/>for RUC/RAP/HRRR" --> E["Use soilmaskslab"] D -- "All other 2D/3D fields<br/>or non-RUC sources" --> F["Use maskslab"] E --> G["Deallocate soilmaskslab after read_met_close()"] F --> GLANDSEA/SOILM000pre-scan): Whenis_ruc_lsm_source(field % map_source)matches ('NCEP RAP Model','NCEP HRRR Model','NOAA GSD HRRR Model','NOAA GSD Rapid Refresh Model','NCEP RUC Model','unknown model from NCEP'), buildssoilmaskslabalongsidemaskslabby masking out points wheremaskslab == 1.0_RKIND .and. soilmaskslab == 1.0_RKIND.active_maskslabselection): Routesinterp_to_gridtosoilmaskslabstrictly when interpolating 2D soil moisture (sm_fg) or soil temperature (st_fg) from RUC-LSM sources; all other fields continue using the untouchedmaskslab.soilmaskslabimmediately afterread_met_close().Verification & Expected Changes
1. CONUS 3 km Cold-Start Verification (
RAP:2025-12-16_03, Latestcases.FFix)Tested on the CONUS 3 km mesh (
conus3km,2,341,818cells, Gaea C7,384MPI tasks, Slurm Job269257129,Error messages = 0):noaa/develop)8ec2f412)864889)SMOIS[0] = 1.000,TSLB[3.0 m] = -1.76 °CSMOIS[0] = 0.126,TSLB[3.0 m] = +9.41 °C(+11.17 °C)1938925)SMOIS ~ 0.602,TSLB[3.0 m] = +2.65 °CSMOIS 0.167–0.190,TSLB[3.0 m] = +7.45 °C(matches mainland1939069:0.160–0.192,+7.39 °C)smois(all1,461,560land cells)61land cells at1.0,79at> 0.9527land cells fixed (land == 1.0:61 -> 0; range[0.002, 0.465], bit-identical toSMOIS-only prototype)tslb(all1,461,560land cells)-1.75 °Ccold bias along coast/islands735land cells fixed (ΔTSLB[-1.70, +11.17] °C)880,258cells)SMOIS = 1.000,TSLBuntouched0cells changedseaice,xice,skintemp,sst,snow*,sh2o,u10,v10,t2m,rh2, all 3D fields)0diff across all2,341,818cells2. Zero Side Effects on Interior Continental & Non-Soil Fields
noaa/develop,smoisis bit-identical to theSMOIS-only validation run (which also showed< 0.001 m³/m³difference across> 24,000interior Ohio/PA mainland cells), and pure water cells (landmask == 0) remain completely unaffected (0cells changed insmoisortslb).3. Zero Side Effects on Non-RUC (
NCEP GFS Model) Inputs & Interior Continental CellsTested an end-to-end CONUS 3 km GFS cold-start (
GFS:2025-12-23_03,map_source = 'NCEP GFS Model', Gaea C7,384MPI tasks, Slurm Job269257380,Error messages = 0) againstnoaa/develop:8ec2f412)GFS:2025-12-23_03)init.nc(55 time-dependent numeric vars incl.smois,tslb,sh2o,skintemp,sst,seaice,xice,snow*,u10,v10,t2m,rh2,q2,pressure,theta,rho,qv,u,w, hydrometeors/aerosols + 101 static/char vars)0differences across all 156 variablesVisual Comparison
A. Latest
cases.FFix (SMOIS+ DeepTSLBCold-Start Spatial & Vertical Comparison)B. Initial
SMOIS-Only Prototype: Long Point Forecast Timeseries & Soil Profile Detail(Preserved from initial validation; shows the downstream forecast timeseries improvement at Long Point
1938925where theSMOISfield in the finalcases.Ffix is bit-identical to theSMOIS-only prototype.)How Has This Been Tested?
RAP:2025-12-16_03, Slurm269257129,Error messages = 0).smois(527land cells fixed,land == 1.0reduced from61 -> 0) andtslb(735land cells fixed,0water cells changed) ininit.nc.0diff) output across all 52 non-smois/tslbtime-dependent variables and interior continental cells.GFS:2025-12-23_03(map_source = 'NCEP GFS Model', Slurm269257380,Error messages = 0) and confirmed all 156 / 156 variables ininit.ncare 100% bit-identical tonoaa/develop.