Changes between Version 5 and Version 6 of GroupActivities/Meetings/Retreat20151119/GuidelinesXIOS
- Timestamp:
- 2015-11-10T10:10:06+01:00 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GroupActivities/Meetings/Retreat20151119/GuidelinesXIOS
v5 v6 41 41 42 42 == '''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.43 Conversion of units can be performed and defined in the field_def file. 44 44 45 45 We 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. … … 63 63 {{{ 64 64 <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> 66 66 }}} 67 67 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 == 69 Similarly to units conversion, some outputs are only the sum of elementary outputs. 70 71 ''Example:''[[BR]] 72 For instance, in slowproc.f90, the following section can be deleted: 70 73 {{{ 71 74 ! 4.2.2 Compute the net primary production as the diff from … … 80 83 }}} 81 84 beacause, gpp, resp_growth and resp_maint are already ouptuts.[[BR]] 82 85 {{{ 86 CALL xios_orchidee_send_field("maint_resp",resp_maint/dt_sechiba) 87 CALL xios_orchidee_send_field("hetero_resp",resp_hetero/dt_sechiba) 88 CALL xios_orchidee_send_field("growth_resp",resp_growth/dt_sechiba) 89 }}} 83 90 npp 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 }}} 86 94 87 == '''Guideline 2''' ==95 == '''Guideline 4''' == 88 96 We 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. 89 97 90 == '''Guideline 3''' ==98 == '''Guideline 5''' == 91 99 If 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. 92 100