Changes between Version 5 and Version 6 of GroupActivities/Meetings/Retreat20151119/GuidelinesXIOS


Ignore:
Timestamp:
11/10/15 10:10:06 (5 years ago)
Author:
nvuilsce
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GroupActivities/Meetings/Retreat20151119/GuidelinesXIOS

    v5 v6  
    4141 
    4242== '''Guideline 2''' : Units == 
    43 Conversion of units, or operation between elementary output variables (such as a sum or a product), can be performed and defined in the field_def file. 
     43Conversion of units can be performed and defined in the field_def file. 
    4444 
    4545We propose to output variables with the same units as they are used. One exception is regarding the time unit. We don't want to ouput variables expressed per time step unit, like a flux per 30min. The unit "per second" should be the standard. 
     
    6363{{{ 
    6464<field id="zvevapp" name="zvevapp" long_name="Evaporation" unit="mm/s"/> 
    65 <field id="evap" name="evap" field_ref="zvevapp" long_name="Evaporation" unit="mm/d"/> zvevapp*86400 
     65<field id="evap" name="evap" field_ref="zvevapp" long_name="Evaporation" unit="mm/d"/> zvevapp*86400 </field> 
    6666}}} 
    6767 
    68 ''Example 2:''[[BR]] 
    69 Some outputs are only the sum of elementary outputs. For instance, in slowproc.f90, the following section can be deleted: 
     68== '''Guideline 3''' : Operation == 
     69Similarly to units conversion, some outputs are only the sum of elementary outputs.  
     70 
     71''Example:''[[BR]] 
     72For instance, in slowproc.f90, the following section can be deleted: 
    7073{{{ 
    7174! 4.2.2 Compute the net primary production as the diff from 
     
    8083}}} 
    8184beacause, gpp, resp_growth and resp_maint are already ouptuts.[[BR]] 
    82  
     85{{{ 
     86CALL xios_orchidee_send_field("maint_resp",resp_maint/dt_sechiba) 
     87CALL xios_orchidee_send_field("hetero_resp",resp_hetero/dt_sechiba) 
     88CALL xios_orchidee_send_field("growth_resp",resp_growth/dt_sechiba) 
     89}}} 
    8390npp will be now only set in the field_def file as follows: 
    84  
    85  
     91{{{ 
     92<field id="npp" name="npp" long_name="Net Primary Productivity" field_ref="gpp" /> gpp-hetero_resp-growth_resp </field> 
     93}}} 
    8694  
    87 == '''Guideline 2''' == 
     95== '''Guideline 4''' == 
    8896We do the "CALL xios_orchidee_send_field" in the module where the variable is calculated. If the variable is changed in several places, we do the call in the last XIOS module where it is changed or in sechiba_main, this has to be decided case by case. 
    8997 
    90 == '''Guideline 3''' == 
     98== '''Guideline 5''' == 
    9199If the variable is only calculated for a specific run case, then we deactivate the output from xios_orchidee.f90 with xios_set_field_attr as for the case not calculated. This leaves us the possibility of having the same file_def_orchidee.xml for different setups. If we forgot, it will work but we will have declared variables in the .nc files without values, which is is troubling. As an exception, the stomate variables are not deactivated in this way, that would be too many exception cases. But since we traditionally separated variables between sechiba_history.nc and stomate_history.nc, we have no problem because we deactivate the whole stomate_history.nc file if stomate is not active. 
    92100