Ignore:
Timestamp:
2024-02-12T19:49:09+01:00 (5 months ago)
Author:
bertrand.guenet
Message:

The Moyano function describing the soil moisture effect on OM decomposition is added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ORCHIDEE_2_2/ORCHIDEE/src_xml/context_input_orchidee.xml

    r8133 r8418  
    3030      <field id="soilcolor" name="soilcolor" domain_ref="dom_file_soil" operation="instant" freq_offset="1ts" enabled="false"/> 
    3131      <field id="soiltext" name="soiltext" domain_ref="dom_file_soil" operation="instant" freq_offset="1ts"/> 
     32    </file> 
     33 
     34    <!-- Default file name: soil_bulk_and_ph.nc for both soilbulk and soilph. The variables can be read from different files, specified in run.def 
     35                  This file is read in the initialization phase only if there is no restart file. 
     36         For soilbulk and soilph, set values lower than min_sechiba as masked values because missing values are zero in the file. 
     37        Renormalization will be done later using the interpolated mask.  --> 
     38    <file id="soilbulk_file" mode="read" output_freq="1y" enabled="true"> 
     39      <field id="soilbulk_mask_read" name="soilbulk" domain_ref="dom_file_soilbulk" operation="instant" freq_offset="1ts" > this &gt; $min_sechiba ? 1 : 0 </field> 
     40      <field id="soilbulk_read" name="soilbulk" domain_ref="dom_file_soilbulk" operation="instant" freq_offset="1ts" > this &gt; $min_sechiba ? this : 0 </field> 
    3241    </file> 
    3342 
     
    134143        <field id="soiltext13" > soiltext == 13 </field> 
    135144      </field_group> 
     145 
     146      <!-- If soilbulk_mask .gt. min_sechiba, then renormalize by dividing with soilbulk_mask else set bulk_default. 
     147      soilbulk_mask interpolated to the model grid corresponds to the fraction of the grid cell covered by non-masked 
     148      values in the input file. Where soilbulk_mask=0, no data where found on the source grid. --> 
     149      <field id="soilbulk_tmp"  field_ref="soilbulk_read" domain_ref="dom_from_soilbulk" /> 
     150      <field id="soilbulk_mask" field_ref="soilbulk_mask_read" domain_ref="dom_from_soilbulk" read_access="true" enabled="true" /> 
     151      <field id="soilbulk"      field_ref="soilbulk_tmp"  domain_ref="dom_from_soilbulk" read_access="true" enabled="true"  > soilbulk_mask &gt; $min_sechiba ? soilbulk_tmp/(soilbulk_mask+1e-100) : $bulk_default </field> 
    136152       
    137153      <field id="frac_veget"      field_ref="maxvegetfrac_read" domain_ref="dom_from_pft" read_access="true" enabled="true" /> 
     
    220236    </domain> 
    221237 
     238    <domain id="dom_from_soilbulk" domain_ref="domain_landpoints"> 
     239    <interpolate_domain order="1" renormalize="false" /> 
     240    </domain> 
     241 
    222242    <domain id="dom_from_pft" domain_ref="domain_landpoints"> 
    223243      <interpolate_domain order="1" renormalize="false" /> 
     
    258278      <!-- generate_rectilinear_domain bounds_lon_start="-180" bounds_lon_end="180" bounds_lat_start="-90" bounds_lat_end="90"/--> 
    259279      <generate_rectilinear_domain bounds_lon_start="-180" bounds_lon_end="180" bounds_lat_start="90" bounds_lat_end="-90"/> 
     280    </domain> 
     281 
     282    <domain id="dom_file_soilbulk" type="rectilinear"> 
     283    <generate_rectilinear_domain bounds_lon_start="-180" bounds_lon_end="180" bounds_lat_start="90" bounds_lat_end="-90"/>/> 
    260284    </domain> 
    261285     
     
    346370    <variable id="albbg_vis_default" type="double">xxx</variable> 
    347371    <variable id="albbg_nir_default" type="double">xxx</variable> 
     372    <variable id="bulk_default" type="double">xxx</variable> 
    348373     
    349374  </variable_definition> 
Note: See TracChangeset for help on using the changeset viewer.