Index: LMDZ6/branches/Ocean_skin/DefLists/CMIP6_ping_atmos.xml
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/CMIP6_ping_atmos.xml	(revision 3673)
+++ LMDZ6/branches/Ocean_skin/DefLists/CMIP6_ping_atmos.xml	(revision 3798)
@@ -155,4 +155,5 @@
    <field id="CMIP6_loadss"        field_ref="loadss"           /> <!-- P1 (kg m-2) atmosphere_mass_content_of_seasalt_dry_aerosol : Load of Seasalt -->
    <field id="CMIP6_longitude"     field_ref="dummy_not_provided"         /> <!-- P1 (degrees_east) longitude : Longitude -->
+   <!--field id="CMIP6_lwsffluxaero"  field_ref="sollwad"         --> <!-- P2 (W m-2) longwave__flux__due_to_volcanic_aerosols_at_the_surface : downwelling longwave  flux  due to volcanic aerosols at the surface to be diagnosed through double radiation call with ok_volcan=y-->
    <field id="CMIP6_lwsffluxaero"  field_ref="dummy_not_provided"         /> <!-- P2 (W m-2) longwave__flux__due_to_volcanic_aerosols_at_the_surface : downwelling longwave  flux  due to volcanic aerosols at the surface to be diagnosed through double radiation call -->
    <field id="CMIP6_lwsrfasdust"   field_ref="dummy_not_provided"         /> <!-- P1 (W m-2) surface_instantaneous_longwave_forcing_due_to_dust : All-sky Surface Longwave radiative flux due to Dust -->
@@ -161,4 +162,5 @@
    <field id="CMIP6_lwtoacsaer"    field_ref="toplwad0"         /> <!-- P1 (W m-2) toa_instantaneous_longwave_forcing : Clear-Sky LW-RF Aerosols at TOA -->
    <field id="CMIP6_lwtoacsdust"   field_ref="dummy_not_provided"         /> <!-- P1 (W m-2) toa_instantaneous_longwave_forcing_due_to_dust_in_clearsky : Clear-sky TOA Longwave radiative flux due to Dust -->
+   <!-- field id="CMIP6_lwtoafluxaerocs" field_ref="toplwad0"       --> <!-- P1 (W m-2) longwave_flux_due_to_volcanic_aerosols_at_TOA_under_clear_sky : downwelling longwave flux due to volcanic aerosols at TOA under clear sky to be diagnosed through double radiation call with ok_volcan=y -->
    <field id="CMIP6_lwtoafluxaerocs" field_ref="dummy_not_provided"       /> <!-- P1 (W m-2) longwave_flux_due_to_volcanic_aerosols_at_TOA_under_clear_sky : downwelling longwave flux due to volcanic aerosols at TOA under clear sky to be diagnosed through double radiation call -->
    <field id="CMIP6_mc"            field_ref="mc"               /> <!-- P1 (kg m-2 s-1) atmosphere_net_upward_convective_mass_flux : The net mass flux should represent the difference between the updraft and downdraft components.  The flux is computed as the mass divided by the area of the grid cell. -->
@@ -282,4 +284,5 @@
    <field id="CMIP6_snwc"          field_ref="dummy_not_provided"         /> <!-- P1 (kg m-2) canopy_snow_amount : canopy_snow_amount -->
    <field id="CMIP6_solbnd"        field_ref="solbnd"         />  <!-- P1 (W m-2) solar_irradiance : Top-of-Atmosphere Solar Insolation for each band -->
+   <!-- field id="CMIP6_swsffluxaero"  field_ref="solswad"         --> <!-- P2 (W m-2) shortwave__flux_due_to_volcanic_aerosols_at__the_surface : downwelling shortwave  flux due to volcanic aerosols at  the surface to be diagnosed through double radiation call with ok_volcan=y-->
    <field id="CMIP6_swsffluxaero"  field_ref="dummy_not_provided"         /> <!-- P2 (W m-2) shortwave__flux_due_to_volcanic_aerosols_at__the_surface : downwelling shortwave  flux due to volcanic aerosols at  the surface to be diagnosed through double radiation call -->
    <field id="CMIP6_swsrfasdust"   field_ref="dummy_not_provided"         /> <!-- P1 (W m-2) tendency_of_all_sky_surface_shortwave_flux_due_to_dust_ambient_aerosol_particles : All-sky Surface Shortwave radiative flux due to Dust -->
@@ -287,4 +290,5 @@
    <field id="CMIP6_swtoaasdust"   field_ref="dummy_not_provided"         /> <!-- P1 (W m-2) toa_instantaneous_shortwave_forcing : all sky sw-rf dust at toa -->
    <field id="CMIP6_swtoacsdust"   field_ref="dummy_not_provided"         /> <!-- P1 (W m-2) toa_instantaneous_shortwave_forcing : clear sky sw-rf dust at toa -->
+   <!-- field id="CMIP6_swtoafluxaerocs" field_ref="topswad0"       --> <!-- P1 (W m-2) shortwave_flux_due_to_volcanic_aerosols_at_TOA_under_clear_sky : downwelling shortwave flux due to volcanic aerosols at TOA under clear sky to be diagnosed through double radiation call with ok_volcan=y-->
    <field id="CMIP6_swtoafluxaerocs" field_ref="dummy_not_provided"       /> <!-- P1 (W m-2) shortwave_flux_due_to_volcanic_aerosols_at_TOA_under_clear_sky : downwelling shortwave flux due to volcanic aerosols at TOA under clear sky to be diagnosed through double radiation call -->
    <field id="CMIP6_sza"           field_ref="sza"              /> <!-- P1 (degree) solar_zenith_angle : solar zenith angle -->
Index: LMDZ6/branches/Ocean_skin/DefLists/config_AMIP.def
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/config_AMIP.def	(revision 3673)
+++ LMDZ6/branches/Ocean_skin/DefLists/config_AMIP.def	(revision 3798)
@@ -46,7 +46,7 @@
 #
 ### ok_ade=y/n   flag Aerosol direct effect
-ok_ade= y
+ok_ade= n
 ### ok_aie=y/n   flag Aerosol indirect effect
-ok_aie= y
+ok_aie= n
 ### aer_type =   Aerosol variation type : actuel / preind / scenario / annuel
 aer_type=annuel
@@ -55,7 +55,7 @@
 ###  flag_aerosol = type of coupled aerosol, if aerosol offline 
 ###  0 => no aerosol, 1 => sulfate only, 2 => bc only, 3 => pom only, 4 => seasalt only, 5 => dust only, 6 => all aerosol
-flag_aerosol= 6
+flag_aerosol= 0
 ### ok_cdnc=y/n   Cloud droplet number concentration
-ok_cdnc= y
+ok_cdnc= n
 # ok_alw=y flag pour activer l effet LW des poussieres
 ok_alw=y
@@ -71,5 +71,5 @@
 # 
 # Aerosols stratospheriques utilises par defaut 
-flag_aerosol_strat=2
+flag_aerosol_strat=0
 # COSP
-ok_cosp= y
+ok_cosp= n
Index: LMDZ6/branches/Ocean_skin/DefLists/context_lmdz.xml
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/context_lmdz.xml	(revision 3673)
+++ LMDZ6/branches/Ocean_skin/DefLists/context_lmdz.xml	(revision 3798)
@@ -10,18 +10,11 @@
               Each file contains the list of variables and their output levels -->
 
-  <file_definition src="./file_def_histday_lmdz.xml"/>
-  <file_definition src="./file_def_histhf_lmdz.xml"/>
-  <file_definition src="./file_def_histins_lmdz.xml"/>
-  <file_definition src="./file_def_histLES_lmdz.xml"/>
-  <file_definition src="./file_def_histmth_lmdz.xml"/>
-  <file_definition src="./file_def_histstn_lmdz.xml"/>
-  <file_definition src="./file_def_histmthNMC_lmdz.xml"/>
-  <file_definition src="./file_def_histdayNMC_lmdz.xml"/>
-  <file_definition src="./file_def_histhfNMC_lmdz.xml"/>
-  <file_definition src="./file_def_histmthCOSP_lmdz.xml"/>
-  <file_definition src="./file_def_histdayCOSP_lmdz.xml"/> 
-  <file_definition src="./file_def_histhfCOSP_lmdz.xml"/>  
-  <file_definition src="./file_def_histstrataer_lmdz.xml"/>
-  <file_definition src="./file_def_histdaystrataer_lmdz.xml"/>
+  <file_definition src="./histday_ave_2d.xml"/>
+  <file_definition src="./histday_ave_3d.xml"/>
+  <file_definition src="./histday_max.xml"/>
+  <file_definition src="./histday_min.xml"/>
+  <file_definition src="./histhf_ave.xml"/>
+  <file_definition src="./histhf_ins.xml"/>
+  <file_definition src="./histmth.xml"/>
 
   <!-- Define domains and groups of domains -->
@@ -73,9 +66,4 @@
         <reduce_domain operation="average" direction="iDir" />
     </axis>
-    <axis id="spectband" standard_name="Sensor Band Central Radiation Wavenumber" unit="m-1">
-    </axis>
-    <axis id="axis_lat" standard_name="Latitude axis">
-        <reduce_domain operation="average" direction="iDir" />
-    </axis>
 
 <!-- Cosp axis definitions-->
Index: LMDZ6/branches/Ocean_skin/DefLists/context_lmdz_sans_cosp.xml
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/context_lmdz_sans_cosp.xml	(revision 3673)
+++ LMDZ6/branches/Ocean_skin/DefLists/context_lmdz_sans_cosp.xml	(revision 3798)
@@ -71,9 +71,4 @@
     <axis id="axis_lat" standard_name="Latitude axis">
       <reduce_domain operation="average" direction="iDir" />
-    </axis>
-    <axis id="spectband" standard_name="Sensor Band Central Radiation Wavenumber" unit="m-1">
-    </axis>
-    <axis id="axis_lat" standard_name="Latitude axis">
-           <reduce_domain operation="average" direction="iDir" />
     </axis>
   </axis_definition>
Index: LMDZ6/branches/Ocean_skin/DefLists/cospv2_input_nl.txt
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/cospv2_input_nl.txt	(revision 3673)
+++ LMDZ6/branches/Ocean_skin/DefLists/cospv2_input_nl.txt	(revision 3798)
@@ -1,24 +1,24 @@
 ! (c) British Crown Copyright 2008, the Met Office.
 ! All rights reserved.
-! 
-! Redistribution and use in source and binary forms, with or without modification, are permitted 
+!
+! Redistribution and use in source and binary forms, with or without modification, are permitted
 ! provided that the following conditions are met:
-! 
-!     * Redistributions of source code must retain the above copyright notice, this list 
+!
+!     * Redistributions of source code must retain the above copyright notice, this list
 !       of conditions and the following disclaimer.
 !     * Redistributions in binary form must reproduce the above copyright notice, this list
-!       of conditions and the following disclaimer in the documentation and/or other materials 
+!       of conditions and the following disclaimer in the documentation and/or other materials
 !       provided with the distribution.
-!     * Neither the name of the Met Office nor the names of its contributors may be used 
-!       to endorse or promote products derived from this software without specific prior written 
+!     * Neither the name of the Met Office nor the names of its contributors may be used
+!       to endorse or promote products derived from this software without specific prior written
 !       permission.
-! 
-! THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR 
-! IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 
-! FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-! CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
-! DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-! DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 
-! IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 
+!
+! THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+! IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+! FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+! CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+! DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+! DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+! IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 ! OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
@@ -26,30 +26,31 @@
 ! Namelist that sets up the main COSP options
 &COSP_INPUT
-  NPOINTS_IT=10000,! Max number of gridpoints to be processed in one iteration
+!  NPOINTS=153,! Number of gridpoints 153,27840,7081,6912
+  NPOINTS_IT=5000,! Max number of gridpoints to be processed in one iteration
   NCOLUMNS=20,  ! Number of subcolumns
-  USE_VGRID=.true., ! Use fixed vertical grid for outputs? (if .true. then you need to define number of levels with Nlr)
-  NLR=40,       ! Number of levels in statistical outputs (only used if USE_VGRID=.true.)
-  CSAT_VGRID=.true., ! CloudSat vertical grid? (if .true. then the CloudSat standard grid is used for the outputs.
+!  NLEVELS=38,   ! Number of model levels
+  USE_VGRID_IN=.true., ! Use fixed vertical grid for outputs? (if .true. then you need to define number of levels with Nlr)
+!  NLVGRID=40,       ! Number of levels in statistical outputs (only used if USE_VGRID=.true.)
+  CSAT_VGRID_IN=.true., ! CloudSat vertical grid? (if .true. then the CloudSat standard grid is used for the outputs.
                      !  USE_VGRID needs also be .true.)
+!  DINPUT='./',  ! Directory where the input files are located. Useful when processing multiple files.
+                ! Leave blank ('') if you are using the full path in FINPUT.
+!  FINPUT='../data/inputs/UKMO/cosp_input_um.nc', ! List input NetCDF files
+!  FOUTPUT='../data/outputs/UKMO/cosp2_output_um.nc',
   !----------------------------------------------------------------------------------
   !--------------- Inputs related to radar simulations
   !----------------------------------------------------------------------------------
-  RADAR_FREQ=94.0, ! CloudSat radar frequency (GHz)
+  cloudsat_RADAR_FREQ=94.0, ! CloudSat radar frequency (GHz)
   SURFACE_RADAR=0, ! surface=1, spaceborne=0
-  use_mie_tables=0,! use a precomputed lookup table? yes=1,no=0
-  use_gas_abs=1,   ! include gaseous absorption? yes=1,no=0
-  do_ray=0,        ! calculate/output Rayleigh refl=1, not=0
-  melt_lay=0,      ! melting layer model off=0, on=1
-  k2=-1,           ! |K|^2, -1=use frequency dependent default
-  use_reff=.true., ! True if you want effective radius to be used by radar simulator (always used by lidar)
-  use_precipitation_fluxes=.true.,  ! True if precipitation fluxes are input to the algorithm 
+  cloudsat_use_gas_abs=1,   ! include gaseous absorption? yes=1,no=0
+  cloudsat_do_ray=0,        ! calculate/output Rayleigh refl=1, not=0
+  cloudsat_k2=-1,           ! |K|^2, -1=use frequency dependent default
+  use_precipitation_fluxes=.true.,  ! True if precipitation fluxes are input to the algorithm
+  cloudsat_micro_scheme='MMF_v3_single_moment', !'MMF_v3.5_two_moment'
   !----------------------------------------------------------------------------------
   !---------------- Inputs related to lidar simulations
   !----------------------------------------------------------------------------------
-  Nprmts_max_hydro=12, ! Max number of parameters for hydrometeor size distributions
-  Naero=1,             ! Number of aerosol species (Not used)
-  Nprmts_max_aero=1,   ! Max number of parameters for aerosol size distributions (Not used)
   lidar_ice_type=0,    ! Ice particle shape in lidar calculations (0=ice-spheres ; 1=ice-non-spherical)
-  OVERLAP=3,   !  overlap type: 1=max, 2=rand, 3=max/rand
+  OVERLAP=3,           !  overlap assumption used by scops: 1=max, 2=rand, 3=max/rand
   !----------------------------------------------------------------------------------
   !---------------- Inputs related to ISCCP simulator
@@ -75,20 +76,18 @@
                                  ! determined cloud-top temperature
                                  ! 2 = find the *highest* altitude (lowest pressure) level
-                                 ! with interpolated temperature equal to the radiance 
-                                 ! determined cloud-top temperature
+                                 ! with interpolated temperature equal to the radiance
+                                 ! determined cloud-top temperature. This is the
+                                 ! default value since V4.0 of the ISCCP simulator.
                                  ! ONLY APPLICABLE IF top_height EQUALS 1 or 3
-                                 ! 1 = default setting, and matches all versions of 
-                                 ! ISCCP simulator with versions numbers 3.5.1 and lower
-                                 ! 2 = experimental setting  
   !----------------------------------------------------------------------------------
   !-------------- RTTOV inputs
   !----------------------------------------------------------------------------------
-  Platform=1,    ! satellite platform
-  Satellite=15,  ! satellite
-  Instrument=0,  ! instrument
-  Nchannels=8,   ! Number of channels to be computed
-  Channels=1,3,5,6,8,10,11,13,        ! Channel numbers (please be sure that you supply Nchannels)
-  Surfem=0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,  ! Surface emissivity (please be sure that you supply Nchannels)
-  ZenAng=50.0, ! Satellite Zenith Angle
+  rttov_Platform=1,    ! satellite platform
+  rttov_Satellite=15,  ! satellite
+  rttov_Instrument=5,  ! instrument
+  rttov_Nchannels=3,   ! Number of channels to be computed
+  rttov_Channels=1,2,3,        ! Channel numbers (please be sure that you supply Nchannels)
+  rttov_Surfem=0.0,0.0,0.0,  ! Surface emissivity (please be sure that you supply Nchannels)
+  rttov_ZenAng=50.0, ! Satellite Zenith Angle
   CO2=5.241e-04, ! Mixing ratios of trace gases
   CH4=9.139e-07,
@@ -96,4 +95,2 @@
   CO=2.098e-07
 /
-
-
Index: LMDZ6/branches/Ocean_skin/DefLists/field_def_cosp1.xml
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/field_def_cosp1.xml	(revision 3798)
+++ LMDZ6/branches/Ocean_skin/DefLists/field_def_cosp1.xml	(revision 3798)
@@ -0,0 +1,105 @@
+    <field_group operation="average" freq_offset="0ts" freq_op="3h">
+
+    <field_group id="fields_COSP_CALIPSO_2D" grid_ref="grid_glo" freq_offset="0ts" freq_op="3h">
+      <field id="cllcalipso"    long_name="Lidar Low-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clhcalipso"    long_name="Lidar Hight-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clmcalipso"    long_name="Lidar Mid-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="cltcalipso"    long_name="Lidar Total Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="cllcalipsoice"   long_name="Lidar Ice-Phase Low-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clhcalipsoice"   long_name="Lidar Ice-Phase Hight-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clmcalipsoice"   long_name="Lidar Ice-Phase Mid-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="cltcalipsoice"   long_name="Lidar Ice-Phase Total Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="cllcalipsoliq"   long_name="Lidar Liq-Phase Low-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clhcalipsoliq"   long_name="Lidar Liq-Phase Hight-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clmcalipsoliq"   long_name="Lidar Liq-Phase Mid-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="cltcalipsoliq"   long_name="Lidar Liq-Phase Total Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="cllcalipsoun"    long_name="Lidar Undefined-Phase Low-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clhcalipsoun"    long_name="Lidar Undefined-Phase Hight-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clmcalipsoun"    long_name="Lidar Undefined-Phase Mid-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="cltcalipsoun"    long_name="Lidar Undefined-Phase Total Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clopaquecalipso"  long_name="Lidar Opaque Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clthincalipso"    long_name="Lidar Thin Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clzopaquecalipso" long_name="Lidar mean altitude of opacity"   unit="m"  detect_missing_value=".true." />
+    </field_group>
+    <field_group id="fields_COSP_CALIPSO_3D_height" grid_ref="grid_glo_height" freq_offset="0ts" freq_op="3h">
+      <field id="clcalipso"  long_name="Lidar Cloud Fraction (532 nm)" unit="1" detect_missing_value=".true." />
+      <field id="clcalipsoice"    long_name="Lidar Ice-Phase Cloud Fraction (532 nm)" unit="1" detect_missing_value=".true." />
+      <field id="clcalipsoliq"    long_name="Lidar Liq-Phase Cloud Fraction (532 nm)" unit="1" detect_missing_value=".true." />
+      <field id="clcalipsoun"    long_name="Lidar Undefined-Phase Cloud Fraction (532 nm)" unit="1" detect_missing_value=".true." />
+      <field id="clcalipsoopaque"  long_name="Lidar Opaque Cloud profile Fraction (532 nm)" unit="1" detect_missing_value=".true." />
+      <field id="clcalipsothin"    long_name="Lidar Thin Cloud profile Fraction (532 nm)" unit="1" detect_missing_value=".true." />
+      <field id="clcalipsozopaque" long_name="Lidar z_opaque Fraction (532 nm)" unit="1"  detect_missing_value=".true." />
+      <field id="clcalipsoopacity" long_name="Lidar opacity Fraction (532 nm)" unit="1" detect_missing_value=".true." />
+      <field id="proftemp"         long_name="Temperature profile (40 lev)" unit="K" detect_missing_value=".true." />
+    </field_group>
+    <field_group id="fields_COSP_CALIPSO_3D_heightmlev" grid_ref="grid_glo_heightmlev" freq_offset="0ts" freq_op="3h">
+      <field id="beta_mol532" long_name="Lidar Molecular Backscatter (532 nm)" unit="m-1 sr-1" detect_missing_value=".true." />
+    </field_group>
+    <field_group id="fields_COSP_CALIPSO_3D_temp" grid_ref="grid_glo_temp" freq_offset="0ts" freq_op="3h">
+      <field id="clcalipsotmp"    long_name="Lidar Cloud Fraction (532 nm)" unit="%"  detect_missing_value=".true." />
+      <field id="clcalipsotmpliq" long_name="Lidar Liq-Phase Cloud Fraction (532 nm)" unit="1" detect_missing_value=".true." />
+      <field id="clcalipsotmpice" long_name="Lidar Ice-Phase Cloud Fraction (532 nm)" unit="1" detect_missing_value=".true." />
+      <field id="clcalipsotmpun"  long_name="Undefined-Phase Total Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+    </field_group>
+   <field_group id="fields_COSP_CALIPSO_3D_sza" grid_ref="grid_glo_sza" freq_offset="0ts" freq_op="3h">
+     <field id="parasol_refl"  long_name="PARASOL-like mono-directional reflectance" unit="1" detect_missing_value=".true." />
+      <field id="parasol_crefl"  long_name="PARASOL-like mono-directional reflectance (integral)" unit="1" detect_missing_value=".true." />
+      <field id="Ncrefl"  long_name="Nb for PARASOL-like mono-directional reflectance" unit="1" detect_missing_value=".true." />
+    </field_group>
+      <field id="cfad_lidarsr532" long_name="Lidar Scattering Ratio CFAD (532 nm)" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Dsrbin"  detect_missing_value=".true." />
+      <field id="atb532" long_name="Lidar Attenuated Total Backscatter (532 nm)" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Dcol"  detect_missing_value=".true." />
+      <field id="profSR" long_name="Scattering Ratio profiles" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Dcol2"  detect_missing_value=".true." />
+
+    <field_group id="fields_COSP_CLOUDSAT_2D" grid_ref="grid_glo" freq_offset="0ts" freq_op="3h">
+      <field id="cltlidarradar" long_name="Lidar and Radar Total Cloud Fraction" unit="1"  detect_missing_value=".true." />
+    </field_group>
+    <field_group id="fields_COSP_CLOUDSAT_3D" grid_ref="grid_glo_height" freq_offset="0ts" freq_op="3h">
+      <field id="clcalipso2"  long_name="CALIPSO Cloud Fraction Undetected by CloudSat" unit="1" detect_missing_value=".true." />
+    </field_group>
+      <field id="dbze94" long_name="CloudSat Radar Reflectivity" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Dcol"  detect_missing_value=".true." />
+      <field id="cfadDbze94" long_name="CloudSat Radar Reflectivity CFAD" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Ddbze"  detect_missing_value=".true." />
+
+    <field_group id="fields_COSP_ISCCP_2D" grid_ref="grid_glo" freq_offset="0ts" freq_op="3h">
+      <field id="sunlit" long_name="1 for day points, 0 for nightime" unit="1"  detect_missing_value=".true." />
+      <field id="tclisccp" long_name="Total Cloud Fraction as Calculated by the ISCCP Simulator" unit="1"  detect_missing_value=".true." />
+      <field id="ctpisccp" long_name="Mean Cloud Top Pressure as Calculated by the ISCCP Simulator" unit="Pa"  detect_missing_value=".true." />
+      <field id="tauisccp" long_name="Optical Depth as Calculated by the ISCCP Simulator" unit="1"  detect_missing_value=".true." />
+      <field id="albisccp" long_name="Mean Cloud Albedo as Calculated by the ISCCP Simulator" unit="1"  detect_missing_value=".true." />
+      <field id="meantbisccp" long_name="Mean all-sky 10.5 micron brightness temperature as calculated by the ISCCP Simulator" unit="K"  detect_missing_value=".true." />
+      <field id="meantbclrisccp" long_name="Mean clear-sky 10.5 micron brightness temperature as calculated by the ISCCP Simulator" unit="K"  detect_missing_value=".true." />
+    </field_group>
+    <field_group id="fields_COSP_ISCCP_3D" grid_ref="grid_glo_column" freq_offset="0ts" freq_op="3h">
+      <field id="boxtauisccp" long_name="Optical Depth in Each Column as Calculated by the ISCCP Simulator" unit="1" detect_missing_value=".true." />
+      <field id="boxptopisccp" long_name="Cloud Top Pressure in Each Column as Calculated by the ISCCP Simulator" unit="Pa" detect_missing_value=".true." />
+    </field_group>
+      <field id="clisccp2" long_name="Cloud Fraction as Calculated by the ISCCP Simulator" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Dtau"  detect_missing_value=".true." />
+
+    <field_group id="fields_COSP_MISR" freq_offset="0ts" freq_op="3h">
+      <field id="clMISR" long_name="Cloud Fraction as Calculated by the MISR Simulator" unit="1" grid_ref="grid4Dmisr"  detect_missing_value=".true." />
+    </field_group>
+
+    <field_group id="fields_COSP_MODIS" grid_ref="grid_glo" freq_offset="0ts"  freq_op="3h">
+      <field id="cllmodis" long_name="MODIS Low-level Cloud Fraction" unit="1"  detect_missing_value=".true." />
+      <field id="clmmodis" long_name="MODIS Mid-level Cloud Fraction" unit="1"  detect_missing_value=".true." />
+      <field id="clhmodis" long_name="MODIS Hight-level Cloud Fraction" unit="1"  detect_missing_value=".true." />
+      <field id="cltmodis" long_name="MODIS Total Cloud Fraction" unit="1"  detect_missing_value=".true." />
+      <field id="clwmodis" long_name="MODIS Cloud Fraction water mean" unit="1"  detect_missing_value=".true." />
+      <field id="climodis" long_name="MODIS Cloud Fraction ice mean" unit="1"  detect_missing_value=".true." />
+      <field id="tautmodis" long_name="MODIS Optical_Thickness_Total_Mean" unit="1"  detect_missing_value=".true." />
+      <field id="tauwmodis" long_name="MODIS Optical_Thickness_Water_Mean" unit="1"  detect_missing_value=".true." />
+      <field id="tauimodis" long_name="MODIS Optical_Thickness_Ice_Mean" unit="1"  detect_missing_value=".true." />
+      <field id="tautlogmodis" long_name="MODIS Optical_Thickness_Total_logMean" unit="1"  detect_missing_value=".true." />
+      <field id="tauwlogmodis" long_name="MODIS Optical_Thickness_Water_logMean" unit="1"  detect_missing_value=".true." />
+      <field id="tauilogmodis" long_name="MODIS Optical_Thickness_Ice_logMean" unit="1"  detect_missing_value=".true." />
+      <field id="reffclwmodis"  long_name="Modis Cloud_Particle_Size_Water_Mean" unit="m"  detect_missing_value=".true." />
+      <field id="reffclimodis"  long_name="Modis Cloud_Particle_Size_Ice_Mean" unit="m"  detect_missing_value=".true." />
+      <field id="pctmodis"  long_name="Modis Cloud_Top_Pressure_Total_Mean" unit="Pa"  detect_missing_value=".true." />
+      <field id="lwpmodis" long_name="Modis Liquid_Water_Path_Mean" unit="kg m-2"  detect_missing_value=".true." />
+      <field id="iwpmodis" long_name="Modis Ice_Water_Path_Mean" unit="kg m-2" detect_missing_value=".true." />
+    </field_group>
+      <field id="clmodis" long_name="MODIS Cloud Area Fraction" unit="1"  grid_ref="grid4Dtau"  detect_missing_value=".true." />
+      <field id="crimodis" long_name="MODIS Optical_Thickness_vs_ReffIce" unit="1" grid_ref="grid4Dreffi"  detect_missing_value=".true." />
+      <field id="crlmodis" long_name="MODIS Optical_Thickness_vs_ReffLiq" unit="1" grid_ref="grid4Dreffl"  detect_missing_value=".true." />
+
+
+    </field_group>  <!-- ----------------------------COSP------------------------ -->
Index: LMDZ6/branches/Ocean_skin/DefLists/field_def_cospv2.xml
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/field_def_cospv2.xml	(revision 3798)
+++ LMDZ6/branches/Ocean_skin/DefLists/field_def_cospv2.xml	(revision 3798)
@@ -0,0 +1,160 @@
+<field_group operation="instant" freq_offset="0ts" freq_op="3h">
+
+    <field_group id="fields_COSP_LIDAR_2D" grid_ref="grid_glo" freq_offset="0ts" freq_op="3h">
+<!-- CALIPSO 2D -->
+      <field id="cllcalipso"    long_name="CALIPSO Low-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clhcalipso"    long_name="CALIPSO Hight-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clmcalipso"    long_name="CALIPSO Mid-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="cltcalipso"    long_name="CALIPSO Total Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="cllcalipsoice"   long_name="CALIPSO Ice-Phase Low-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clhcalipsoice"   long_name="CALIPSO Ice-Phase Hight-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clmcalipsoice"   long_name="CALIPSO Ice-Phase Mid-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="cltcalipsoice"   long_name="CALIPSO Ice-Phase Total Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="cllcalipsoliq"   long_name="CALIPSO Liq-Phase Low-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clhcalipsoliq"   long_name="CALIPSO Liq-Phase Hight-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clmcalipsoliq"   long_name="CALIPSO Liq-Phase Mid-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="cltcalipsoliq"   long_name="CALIPSO Liq-Phase Total Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="cllcalipsoun"    long_name="CALIPSO Undefined-Phase Low-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clhcalipsoun"    long_name="CALIPSO Undefined-Phase Hight-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clmcalipsoun"    long_name="CALIPSO Undefined-Phase Mid-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="cltcalipsoun"    long_name="CALIPSO Undefined-Phase Total Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clopaquecalipso"  long_name="CALIPSO Opaque Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clthincalipso"    long_name="CALIPSO Thin Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clzopaquecalipso" long_name="CALIPSO Altitude of opacity"   unit="m"  detect_missing_value=".true." />
+      <field id="clopaquetemp" long_name="CALIPSO Opaque Cloud Temperature"   unit="K"  detect_missing_value=".true." />
+      <field id="clthintemp" long_name="CALIPSO Thin Cloud Temperature"   unit="K"  detect_missing_value=".true." />
+      <field id="clzopaquetemp" long_name="CALIPSO Altitude of opacity Temperature"   unit="K"  detect_missing_value=".true." />
+      <field id="clopaquemeanz" long_name="CALIPSO Opaque Cloud Altitude"   unit="m"  detect_missing_value=".true." />
+      <field id="clthinmeanz" long_name="CALIPSO Thin Cloud Altitude"   unit="m"  detect_missing_value=".true." />
+      <field id="clthinemis" long_name="CALIPSO Thin Cloud Emissivity"   unit="1"  detect_missing_value=".true." />
+      <field id="clopaquemeanzse"  long_name="CALIPSO Opaque Cloud Altitude with respect to Surface Elevation"   unit="m"  detect_missing_value=".true." />
+      <field id="clthinmeanzse"    long_name="CALIPSO Thin Cloud Altitude with respect to Surface Elevation"   unit="m"  detect_missing_value=".true." />
+      <field id="clzopaquecalipsose" long_name="CALIPSO Altitude of opacity with respect to Surface Elevation"   unit="m"  detect_missing_value=".true." />
+<!-- GROUND LIDAR 532 nm 2D -->
+      <field id="cllgrLidar532"    long_name="GROUND LIDAR (532 nm) Low-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clhgrLidar532"    long_name="GROUND LIDAR (532 nm) High-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clmgrLidar532"    long_name="GROUND LIDAR (532 nm) Mid-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="cltgrLidar532"    long_name="GROUND LIDAR (532 nm) Total Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+<!-- ATLID 2D -->
+      <field id="cllatlid"    long_name="ATLID Low-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clhatlid"    long_name="ATLID High-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="clmatlid"    long_name="ATLID Mid-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+      <field id="cltatlid"    long_name="ATLID Total Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+    </field_group>
+
+    <field_group id="fields_COSP_LIDAR_3D_height" grid_ref="grid_glo_height" freq_offset="0ts" freq_op="3h">
+<!-- CALIPSO 3D -->
+      <field id="clcalipso"  long_name="CALIPSO Cloud Fraction (532 nm)" unit="1" detect_missing_value=".true." />
+      <field id="clcalipsoice"    long_name="CALIPSO Ice-Phase Cloud Fraction (532 nm)" unit="1" detect_missing_value=".true." />
+      <field id="clcalipsoliq"    long_name="CALIPSO Liq-Phase Cloud Fraction (532 nm)" unit="1" detect_missing_value=".true." />
+      <field id="clcalipsoun"    long_name="CALIPSO Undefined-Phase Cloud Fraction (532 nm)" unit="1" detect_missing_value=".true." />
+      <field id="clcalipsoopaque"  long_name="CALIPSO Opaque Cloud profile Fraction" unit="1" detect_missing_value=".true." />
+      <field id="clcalipsothin"    long_name="CALIPSO Thin Cloud profile Fraction" unit="1" detect_missing_value=".true." />
+      <field id="clcalipsozopaque" long_name="CALIPSO z_opaque Fraction" unit="1"  detect_missing_value=".true." />
+      <field id="clcalipsoopacity" long_name="CALIPSO opacity Fraction" unit="1" detect_missing_value=".true." />
+<!-- GROUND LIDAR 532 nm 3D -->
+      <field id="clgrLidar532"  long_name="GROUND LIDAR (532 nm) Cloud Fraction" unit="1" detect_missing_value=".true." />
+<!-- ATLID 3D -->
+      <field id="clatlid"  long_name="ATLID Cloud Fraction" unit="1" detect_missing_value=".true." />
+    </field_group>
+
+<!-- CALIPSO 3D TEMP -->
+    <field_group id="fields_COSP_CALIPSO_3D_temp" grid_ref="grid_glo_temp" freq_offset="0ts" freq_op="3h">
+      <field id="clcalipsotmp"    long_name="CALIPSO Cloud Fraction (532 nm)" unit="%"  detect_missing_value=".true." />
+      <field id="clcalipsotmpliq" long_name="CALIPSO Liq-Phase Cloud Fraction (532 nm)" unit="1" detect_missing_value=".true." />
+      <field id="clcalipsotmpice" long_name="CALIPSO Ice-Phase Cloud Fraction (532 nm)" unit="1" detect_missing_value=".true." />
+      <field id="clcalipsotmpun"  long_name="CALIPSO Undefined-Phase Total Cloud Fraction"   unit="1"  detect_missing_value=".true." />
+    </field_group>
+
+<!-- CALIPSO 4D -->
+      <field id="lidarBetaMol532" long_name="CALIPSO Molecular Backscatter (532 nm)" unit="m-1 sr-1" freq_offset="0ts" freq_op="3h" grid_ref="grid_glo_heightmlev" detect_missing_value=".true." />
+      <field id="cfadLidarsr532" long_name="CALIPSO Scattering Ratio CFAD (532 nm)" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Dsrbin"  detect_missing_value=".true." />
+      <field id="atb532" long_name="CALIPSO Attenuated Total Backscatter (532 nm)" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Dcol"  detect_missing_value=".true." />
+<!-- GROUND LIDAR 532 nm 4D -->
+      <field id="lidarBetaMol532gr" long_name="GROUND LIDAR Molecular Backscatter (532 nm)" unit="m-1 sr-1" freq_offset="0ts" freq_op="3h" grid_ref="grid_glo_heightmlev" detect_missing_value=".true." />
+      <field id="cfadLidarsr532gr" long_name="GROUND LIDAR Scattering Ratio CFAD (532 nm)" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Dsrbin"  detect_missing_value=".true." />
+      <field id="atb532gr" long_name="GROUND LIDAR Attenuated Total Backscatter (532 nm)" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Dcol"  detect_missing_value=".true." />
+<!-- ATLID 4D -->
+      <field id="lidarBetaMol355" long_name="ATLID Molecular Backscatter (355 nm)" unit="m-1 sr-1" freq_offset="0ts" freq_op="3h" grid_ref="grid_glo_heightmlev" detect_missing_value=".true." />
+      <field id="cfadLidarsr355" long_name="ATLID Scattering Ratio CFAD (355 nm)" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Dsrbin"  detect_missing_value=".true." />
+      <field id="atb355" long_name="ATLID Attenuated Total Backscatter (355 nm)" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Dcol"  detect_missing_value=".true." />
+
+<!-- PARASOL -->
+<!--    <field_group id="fields_COSP_PARASOL_3D_sza" grid_ref="grid_glo_sza" freq_offset="0ts" freq_op="3h"> -->
+     <field id="parasolGrid_refl" long_name="PARASOL Reflectance" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid_glo_sza" detect_missing_value=".true." />
+      <field id="parasolPix_refl" long_name="PARASOL Subcolumn Reflectance" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Dsza" detect_missing_value=".true." />
+<!--       <field id="Ncrefl"  long_name="Nb for PARASOL-like mono-directional reflectance" unit="1" detect_missing_value=".true." /> -->
+<!--     </field_group> -->
+
+    <field_group id="fields_COSP_CLOUDSAT_2D" grid_ref="grid_glo" freq_offset="0ts" freq_op="3h">
+<!-- CLOUDSAT ONLY -->
+      <field id="cloudsat_tcc" long_name="CLOUDSAT Total Cloud Fraction" unit="1"  detect_missing_value=".true." />
+      <field id="cloudsat_tcc2" long_name="CLOUDSAT Total Cloud Fraction (no 1km)" unit="1"  detect_missing_value=".true." />
+
+      <field id="ptradarflag0" long_name="CLOUDSAT precipitation occurence fraction flag 0 (No precipitation)" unit="1"  detect_missing_value=".true." />
+      <field id="ptradarflag1" long_name="CLOUDSAT precipitation occurence fraction flag 1 (Rain possible)" unit="1"  detect_missing_value=".true." />
+      <field id="ptradarflag2" long_name="CLOUDSAT precipitation occurence fraction flag 2 (Rain probable)" unit="1"  detect_missing_value=".true." />
+      <field id="ptradarflag3" long_name="CLOUDSAT precipitation occurence fraction flag 3 (Rain certain)" unit="1"  detect_missing_value=".true." />
+      <field id="ptradarflag4" long_name="CLOUDSAT precipitation occurence fraction flag 4 (Snow possible)" unit="1"  detect_missing_value=".true." />
+      <field id="ptradarflag5" long_name="CLOUDSAT precipitation occurence fraction flag 5 (Snow certain)" unit="1"  detect_missing_value=".true." />
+      <field id="ptradarflag6" long_name="CLOUDSAT precipitation occurence fraction flag 6 (Mixed-precipitation possible)" unit="1"  detect_missing_value=".true." />
+      <field id="ptradarflag7" long_name="CLOUDSAT precipitation occurence fraction flag 7 (Mixed-precipitation certain)" unit="1"  detect_missing_value=".true." />
+      <field id="ptradarflag8" long_name="CLOUDSAT precipitation occurence fraction flag 8 (Heavy rain)" unit="1"  detect_missing_value=".true." />
+      <field id="ptradarflag9" long_name="CLOUDSAT precipitation occurence fraction flag 9 (Default)" unit="1"  detect_missing_value=".true." />
+      <field id="radarpia" long_name="CLOUDSAT PIA" unit="1"  detect_missing_value=".true." />
+<!-- CLOUDSAT + CALIPSO -->
+      <field id="cltlidarradar" long_name="CALIPSO and CLOUDSAT Total Cloud Fraction" unit="1"  detect_missing_value=".true." />
+    </field_group>
+
+    <field_group id="fields_COSP_CLOUDSAT_3D" grid_ref="grid_glo_height" freq_offset="0ts" freq_op="3h">
+      <field id="clcalipso2"  long_name="CALIPSO Cloud Fraction Undetected by CloudSat" unit="1" detect_missing_value=".true." />
+    </field_group>
+
+      <field id="dbze94" long_name="CloudSat Radar Reflectivity" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Dcol"  detect_missing_value=".true." />
+      <field id="cfadDbze94" long_name="CloudSat Radar Reflectivity CFAD" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Ddbze"  detect_missing_value=".true." />
+<!-- ISCCP -->
+    <field_group id="fields_COSP_ISCCP_2D" grid_ref="grid_glo" freq_offset="0ts" freq_op="3h">
+<!--      <field id="sunlit" long_name="1 for day points, 0 for nightime" unit="1"  detect_missing_value=".true." /> -->
+      <field id="cltisccp" long_name="Total Cloud Fraction as Calculated by the ISCCP Simulator" unit="1"  detect_missing_value=".true." />
+      <field id="pctisccp" long_name="Mean Cloud Top Pressure as Calculated by the ISCCP Simulator" unit="Pa"  detect_missing_value=".true." />
+      <field id="tauisccp" long_name="Optical Depth as Calculated by the ISCCP Simulator" unit="1"  detect_missing_value=".true." />
+      <field id="albisccp" long_name="Mean Cloud Albedo as Calculated by the ISCCP Simulator" unit="1"  detect_missing_value=".true." />
+      <field id="meantbisccp" long_name="Mean all-sky 10.5 micron brightness temperature as calculated by the ISCCP Simulator" unit="K"  detect_missing_value=".true." />
+      <field id="meantbclrisccp" long_name="Mean clear-sky 10.5 micron brightness temperature as calculated by the ISCCP Simulator" unit="K"  detect_missing_value=".true." />
+    </field_group>
+    <field_group id="fields_COSP_ISCCP_3D" grid_ref="grid_glo_column" freq_offset="0ts" freq_op="3h">
+      <field id="boxtauisccp" long_name="Optical Depth in Each Column as Calculated by the ISCCP Simulator" unit="1" detect_missing_value=".true." />
+      <field id="boxptopisccp" long_name="Cloud Top Pressure in Each Column as Calculated by the ISCCP Simulator" unit="Pa" detect_missing_value=".true." />
+    </field_group>
+      <field id="clisccp" long_name="ISCCP joint-PDF of cloud top pressure and optical depth" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Dtau"  detect_missing_value=".true." />
+<!-- MISR -->
+    <field_group id="fields_COSP_MISR" freq_offset="0ts" freq_op="3h">
+      <field id="misr_fq" long_name="MISR joint-PDF of cloud top pressure and optical depth" unit="1" grid_ref="grid4Dmisr"  detect_missing_value=".true." />
+      <field id="misr_meanztop" long_name="MISR Mean Cloud Top Height" unit="1" grid_ref="grid_glo"  detect_missing_value=".true." />
+      <field id="misr_cldarea" long_name="MISR cloud cover" unit="1" grid_ref="grid_glo"  detect_missing_value=".true." />
+    </field_group>
+<!-- MODIS -->
+    <field_group id="fields_COSP_MODIS" grid_ref="grid_glo" freq_offset="0ts"  freq_op="3h">
+      <field id="cllmodis" long_name="MODIS Low-level Cloud Fraction" unit="1"  detect_missing_value=".true." />
+      <field id="clmmodis" long_name="MODIS Mid-level Cloud Fraction" unit="1"  detect_missing_value=".true." />
+      <field id="clhmodis" long_name="MODIS High-level Cloud Fraction" unit="1"  detect_missing_value=".true." />
+      <field id="cltmodis" long_name="MODIS Total Cloud Fraction" unit="1"  detect_missing_value=".true." />
+      <field id="clwmodis" long_name="MODIS Cloud Fraction water mean" unit="1"  detect_missing_value=".true." />
+      <field id="climodis" long_name="MODIS Cloud Fraction ice mean" unit="1"  detect_missing_value=".true." />
+      <field id="tautmodis" long_name="MODIS Optical_Thickness_Total_Mean" unit="1"  detect_missing_value=".true." />
+      <field id="tauwmodis" long_name="MODIS Optical_Thickness_Water_Mean" unit="1"  detect_missing_value=".true." />
+      <field id="tauimodis" long_name="MODIS Optical_Thickness_Ice_Mean" unit="1"  detect_missing_value=".true." />
+      <field id="tautlogmodis" long_name="MODIS Optical_Thickness_Total_logMean" unit="1"  detect_missing_value=".true." />
+      <field id="tauwlogmodis" long_name="MODIS Optical_Thickness_Water_logMean" unit="1"  detect_missing_value=".true." />
+      <field id="tauilogmodis" long_name="MODIS Optical_Thickness_Ice_logMean" unit="1"  detect_missing_value=".true." />
+      <field id="reffclwmodis"  long_name="Modis Cloud_Particle_Size_Water_Mean" unit="m"  detect_missing_value=".true." />
+      <field id="reffclimodis"  long_name="Modis Cloud_Particle_Size_Ice_Mean" unit="m"  detect_missing_value=".true." />
+      <field id="pctmodis"  long_name="Modis Cloud_Top_Pressure_Total_Mean" unit="Pa"  detect_missing_value=".true." />
+      <field id="lwpmodis" long_name="Modis Liquid_Water_Path_Mean" unit="kg m-2"  detect_missing_value=".true." />
+      <field id="iwpmodis" long_name="Modis Ice_Water_Path_Mean" unit="kg m-2" detect_missing_value=".true." />
+    </field_group>
+      <field id="modis_ot_vs_ctp" long_name="MODIS joint-PDF of cloud top pressure and optical depth" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Dtau"  detect_missing_value=".true." />
+      <field id="modis_ot_vs_reffice" long_name="MODIS Joint-PDF of optical-depth and ice particle size" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Dreffi"  detect_missing_value=".true." />
+      <field id="modis_ot_vs_reffliq" long_name="MODIS Joint-PDF of optical-depth and liquid particle size" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Dreffl"  detect_missing_value=".true." />
+
+    </field_group>
Index: LMDZ6/branches/Ocean_skin/DefLists/field_def_lmdz.xml
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/field_def_lmdz.xml	(revision 3673)
+++ LMDZ6/branches/Ocean_skin/DefLists/field_def_lmdz.xml	(revision 3798)
@@ -2,10 +2,4 @@
 <field_definition level="1" prec="4" operation="average" freq_op="1ts" enabled=".true." default_value="9.96921e+36">
     
-<!--    <field_group id="fields_1D" grid_ref="vertical">  -->
-<!--        <field id="Ap"   long_name="Hybrid coordinate: pressure part"    unit="Pa" />  -->
-<!--        <field id="Bp"   long_name="Hybrid coordinate: sigma part"    unit="-" />  -->
-<!--        <field id="Alt"  long_name="Pseudo-altitude (for an 8km scale height)"    unit="km" />  -->
-<!--    </field_group>  -->
-
     <field_group id="remap_expr" level="_reset_" prec="_reset_" operation="_reset_" freq_op="_reset_" enabled="_reset_" default_value="_reset_">
       <field_group id="remap_1ts" />
@@ -17,5 +11,4 @@
       <field_group id="remap_1mo" />
     </field_group>
-    
     
     <field_group id="coordinates" grid_ref="grid_glo">
@@ -57,7 +50,13 @@
         <field id="t2m_oce"    long_name="Temp 2m oce"    unit="K" />
         <field id="t2m_sic"    long_name="Temp 2m sic"    unit="K" />
+        <field id="t2m_probsup25"   field_ref="t2m" long_name="Prob. t2m exceeds 25 degC" unit="-"> t2m &gt; 298.15 </field>
+        <field id="t2m_probsup28"   field_ref="t2m" long_name="Prob. t2m exceeds 28 degC" unit="-"> t2m &gt; 301.15 </field>
+        <field id="t2m_probsup30"   field_ref="t2m" long_name="Prob. t2m exceeds 30 degC" unit="-"> t2m &gt; 303.15 </field>
         <field id="gusts"    long_name="surface gustiness"    unit="m2/s2" />
         <field id="wind10m"    long_name="10-m wind speed"      unit="m/s" />
         <field id="wind10max"  long_name="10m wind speed max"   unit="m/s" operation="maximum"/>
+        <field id="wind100m"   long_name="100-m wind speed"      unit="m/s" />
+        <field id="woncfr"   long_name="Onshore Wind Capacity factor"      unit="kW/kW_installed" />
+        <field id="wofcfr"   long_name="Offshore Wind Capacity factor"     unit="kW/kW_installed" />
         <field id="sfcWindmax" field_ref="wind10m" operation="maximum" />
         <field id="sicf"    long_name="Sea-ice fraction"        unit="-" />
@@ -137,4 +136,5 @@
         <field id="SWdnSFCclr"    long_name="SWdn clear sky at surface"    unit="W/m2" />
         <field id="SWdnSFCcleanclr"    long_name="SWdn clean (no aerosol) clear sky at surface"    unit="W/m2" />
+        <field id="fdiffSWdnSFC"    long_name="Fraction of diffuse SWdn at surface"    unit="-" />
         <field id="LWupSFC"    long_name="Upwd. IR rad. at surface"    unit="W/m2" />
         <field id="LWupSFCclr"    long_name="CS Upwd. IR rad. at surface"    unit="W/m2" />
@@ -439,4 +439,5 @@
         <field id="cldnvi"    long_name="Column Integrated Cloud Droplet Number"    unit="m-2" />
         <field id="lcc"    long_name="Cloud liquid fraction at top of cloud"    unit="1" />
+        <field id="lcc_limit"          field_ref="lcc" > lcc /= 0 ? lcc : 1e-15  </field>
         <field id="wvapp"    long_name="-"    unit="-" />
         <field id="albe_ter"    long_name="Albedo VIS surf. ter"    unit="-" />
@@ -515,8 +516,23 @@
         <field id="flx_co2_ff"     long_name="CO2 flux from ff"               unit="kg CO2/m2/s" />    <!-- Added OB -->
         <field id="flx_co2_bb"     long_name="CO2 flux from bb"               unit="kg CO2/m2/s" />    <!-- Added OB -->
+        <field id="delta_SST" long_name="ocean-air interface temperature minus bulk SST" unit="K" detect_missing_value=".true." />
+        <field id="delta_sal"
+	       long_name="ocean-air interface salinity minus bulk salinity"
+	       unit="ppt" detect_missing_value=".true." />
+        <field id="dS_ns" long_name="delta salinity near surface" unit="ppt" detect_missing_value=".true." />
+        <field id="dT_ns" long_name="sub-skin temperature minus foundation temperature" unit="K" detect_missing_value=".true." />
+        <field id="dTer" 	       long_name="interface temperature minus sub-skin temperature" 	       unit="K" detect_missing_value=".true." />
+        <field id="dSer"
+	       long_name="salinity variation in the diffusive microlayer"
+ 	       unit="ppt" detect_missing_value=".true." />
+        <field id="tkt" long_name="thickness of thermal microlayer" 	       unit="m" 	       detect_missing_value=".true." />
+        <field id="tks" long_name="thickness of salinity microlayer" 	       unit="m" 	       detect_missing_value=".true." />
+        <field id="taur" long_name="momentum flux due to rain" 	       unit="Pa" 	       detect_missing_value=".true." />
+        <field id="SSS" long_name="bulk sea-surface salinity" unit="ppt" detect_missing_value=".true." />
     </field_group>
 
     <field_group id="fields_3D" grid_ref="grid_glo_presnivs" >
         <field id="tke"    long_name="TKE"    unit="m2/s2" />
+	<field id="tke_dissip" long_name="TKE DISSIPATION" unit="m2/s3" />
         <field id="tke_ter"    long_name="Max Turb. Kinetic Energy ter"    unit="m2/s2" />
         <field id="tke_lic"    long_name="Max Turb. Kinetic Energy lic"    unit="m2/s2" />
@@ -578,4 +594,6 @@
         <field id="rneblsvol" long_name="LS Cloud fraction by volume"    unit="-" />
         <field id="rhum"    long_name="Relative humidity"    unit="-" />
+	<field id="rhl" long_name="Relative humidity wrt liquid" unit="%" />
+	<field id="rhi" long_name="Relative humidity wrt ice" unit="%" />
         <field id="ozone"    long_name="Ozone mole fraction"    unit="-" />
         <field id="ozone_daylight"    long_name="Daylight ozone mole fraction"    unit="-" />
@@ -856,114 +874,5 @@
     </field_group>
 
-    <field_group operation="average" freq_offset="0ts" freq_op="3h">  <!-- ----------------------------COSP------------------------ -->
-
-    <field_group id="fields_COSP_CALIPSO_2D" grid_ref="grid_glo" freq_offset="0ts" freq_op="3h">
-      <field id="cllcalipso"    long_name="Lidar Low-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
-      <field id="clhcalipso"    long_name="Lidar Hight-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
-      <field id="clmcalipso"    long_name="Lidar Mid-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
-      <field id="cltcalipso"    long_name="Lidar Total Cloud Fraction"   unit="1"  detect_missing_value=".true." />
-      <field id="pcllcalipso"   long_name="Lidar Low-level Cloud Fraction"   unit="%"  detect_missing_value=".true." > cllcalipso*100 </field>
-      <field id="pclhcalipso"   long_name="Lidar Hight-level Cloud Fraction"   unit="%"  detect_missing_value=".true." > clhcalipso*100 </field>
-      <field id="pclmcalipso"   long_name="Lidar Mid-level Cloud Fraction"   unit="%"  detect_missing_value=".true." > clmcalipso*100 </field>
-      <field id="pcltcalipso"   long_name="Lidar Total Cloud Fraction"   unit="%" detect_missing_value=".true." > cltcalipso*100 </field>
-      <field id="cllcalipsoice"   long_name="Lidar Ice-Phase Low-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
-      <field id="clhcalipsoice"   long_name="Lidar Ice-Phase Hight-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
-      <field id="clmcalipsoice"   long_name="Lidar Ice-Phase Mid-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
-      <field id="cltcalipsoice"   long_name="Lidar Ice-Phase Total Cloud Fraction"   unit="1"  detect_missing_value=".true." />
-      <field id="cllcalipsoliq"   long_name="Lidar Liq-Phase Low-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
-      <field id="clhcalipsoliq"   long_name="Lidar Liq-Phase Hight-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
-      <field id="clmcalipsoliq"   long_name="Lidar Liq-Phase Mid-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
-      <field id="cltcalipsoliq"   long_name="Lidar Liq-Phase Total Cloud Fraction"   unit="1"  detect_missing_value=".true." />
-      <field id="cllcalipsoun"    long_name="Lidar Undefined-Phase Low-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
-      <field id="clhcalipsoun"    long_name="Lidar Undefined-Phase Hight-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
-      <field id="clmcalipsoun"    long_name="Lidar Undefined-Phase Mid-level Cloud Fraction"   unit="1"  detect_missing_value=".true." />
-      <field id="cltcalipsoun"    long_name="Lidar Undefined-Phase Total Cloud Fraction"   unit="1"  detect_missing_value=".true." />
-      <field id="clopaquecalipso"  long_name="Lidar Opaque Cloud Fraction"   unit="1"  detect_missing_value=".true." />
-      <field id="clthincalipso"    long_name="Lidar Thin Cloud Fraction"   unit="1"  detect_missing_value=".true." />
-      <field id="clzopaquecalipso" long_name="Lidar mean altitude of opacity"   unit="m"  detect_missing_value=".true." />
-    </field_group>  
-    <field_group id="fields_COSP_CALIPSO_3D_height" grid_ref="grid_glo_height" freq_offset="0ts" freq_op="3h">
-      <field id="clcalipso"  long_name="Lidar Cloud Fraction (532 nm)" unit="1" detect_missing_value=".true." />
-      <field id="pclcalipso" long_name="Lidar Cloud Fraction (532 nm)" unit="%" detect_missing_value=".true." > clcalipso*100 </field>
-      <field id="clcalipsoice"    long_name="Lidar Ice-Phase Cloud Fraction (532 nm)" unit="1" detect_missing_value=".true." />
-      <field id="clcalipsoliq"    long_name="Lidar Liq-Phase Cloud Fraction (532 nm)" unit="1" detect_missing_value=".true." />
-      <field id="clcalipsoun"    long_name="Lidar Undefined-Phase Cloud Fraction (532 nm)" unit="1" detect_missing_value=".true." />
-      <field id="clcalipsoopaque"  long_name="Lidar Opaque Cloud profile Fraction (532 nm)" unit="1" detect_missing_value=".true." />
-      <field id="clcalipsothin"    long_name="Lidar Thin Cloud profile Fraction (532 nm)" unit="1" detect_missing_value=".true." />
-      <field id="clcalipsozopaque" long_name="Lidar z_opaque Fraction (532 nm)" unit="1"  detect_missing_value=".true." />
-      <field id="clcalipsoopacity" long_name="Lidar opacity Fraction (532 nm)" unit="1" detect_missing_value=".true." />
-      <field id="proftemp"         long_name="Temperature profile (40 lev)" unit="K" detect_missing_value=".true." />
-    </field_group>
-    <field_group id="fields_COSP_CALIPSO_3D_heightmlev" grid_ref="grid_glo_heightmlev" freq_offset="0ts" freq_op="3h">
-      <field id="beta_mol532" long_name="Lidar Molecular Backscatter (532 nm)" unit="m-1 sr-1" detect_missing_value=".true." />
-    </field_group>
-    <field_group id="fields_COSP_CALIPSO_3D_temp" grid_ref="grid_glo_temp" freq_offset="0ts" freq_op="3h">
-      <field id="clcalipsotmp"    long_name="Lidar Cloud Fraction (532 nm)" unit="%"  detect_missing_value=".true." />
-      <field id="clcalipsotmpliq" long_name="Lidar Liq-Phase Cloud Fraction (532 nm)" unit="1" detect_missing_value=".true." />
-      <field id="clcalipsotmpice" long_name="Lidar Ice-Phase Cloud Fraction (532 nm)" unit="1" detect_missing_value=".true." />
-      <field id="clcalipsotmpun"  long_name="Undefined-Phase Total Cloud Fraction"   unit="1"  detect_missing_value=".true." />
-    </field_group>
-   <field_group id="fields_COSP_CALIPSO_3D_sza" grid_ref="grid_glo_sza" freq_offset="0ts" freq_op="3h">
-     <field id="parasol_refl"  long_name="PARASOL-like mono-directional reflectance" unit="1" detect_missing_value=".true." />
-      <field id="parasol_crefl"  long_name="PARASOL-like mono-directional reflectance (integral)" unit="1" detect_missing_value=".true." />
-      <field id="Ncrefl"  long_name="Nb for PARASOL-like mono-directional reflectance" unit="1" detect_missing_value=".true." />
-    </field_group>
-      <field id="cfad_lidarsr532" long_name="Lidar Scattering Ratio CFAD (532 nm)" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Dsrbin"  detect_missing_value=".true." />
-      <field id="atb532" long_name="Lidar Attenuated Total Backscatter (532 nm)" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Dcol"  detect_missing_value=".true." />
-      <field id="profSR" long_name="Scattering Ratio profiles" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Dcol2"  detect_missing_value=".true." />
-
-    <field_group id="fields_COSP_CLOUDSAT_2D" grid_ref="grid_glo" freq_offset="0ts" freq_op="3h">
-      <field id="cltlidarradar" long_name="Lidar and Radar Total Cloud Fraction" unit="1"  detect_missing_value=".true." />
-    </field_group>
-    <field_group id="fields_COSP_CLOUDSAT_3D" grid_ref="grid_glo_height" freq_offset="0ts" freq_op="3h">
-      <field id="clcalipso2"  long_name="CALIPSO Cloud Fraction Undetected by CloudSat" unit="1" detect_missing_value=".true." />
-    </field_group>
-      <field id="dbze94" long_name="CloudSat Radar Reflectivity" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Dcol"  detect_missing_value=".true." />
-      <field id="cfadDbze94" long_name="CloudSat Radar Reflectivity CFAD" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Ddbze"  detect_missing_value=".true." />
-
-    <field_group id="fields_COSP_ISCCP_2D" grid_ref="grid_glo" freq_offset="0ts" freq_op="3h">
-      <field id="sunlit" long_name="1 for day points, 0 for nightime" unit="1"  detect_missing_value=".true." />
-      <field id="tclisccp" long_name="Total Cloud Fraction as Calculated by the ISCCP Simulator" unit="1"  detect_missing_value=".true." />
-      <field id="ctpisccp" long_name="Mean Cloud Top Pressure as Calculated by the ISCCP Simulator" unit="Pa"  detect_missing_value=".true." />
-      <field id="tauisccp" long_name="Optical Depth as Calculated by the ISCCP Simulator" unit="1"  detect_missing_value=".true." />
-      <field id="albisccp" long_name="Mean Cloud Albedo as Calculated by the ISCCP Simulator" unit="1"  detect_missing_value=".true." />
-      <field id="meantbisccp" long_name="Mean all-sky 10.5 micron brightness temperature as calculated by the ISCCP Simulator" unit="K"  detect_missing_value=".true." />
-      <field id="meantbclrisccp" long_name="Mean clear-sky 10.5 micron brightness temperature as calculated by the ISCCP Simulator" unit="K"  detect_missing_value=".true." />
-    </field_group>
-    <field_group id="fields_COSP_ISCCP_3D" grid_ref="grid_glo_column" freq_offset="0ts" freq_op="3h">
-      <field id="boxtauisccp" long_name="Optical Depth in Each Column as Calculated by the ISCCP Simulator" unit="1" detect_missing_value=".true." />
-      <field id="boxptopisccp" long_name="Cloud Top Pressure in Each Column as Calculated by the ISCCP Simulator" unit="Pa" detect_missing_value=".true." />
-    </field_group>
-      <field id="clisccp2" long_name="Cloud Fraction as Calculated by the ISCCP Simulator" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Dtau"  detect_missing_value=".true." />
-
-    <field_group id="fields_COSP_MISR" freq_offset="0ts" freq_op="3h">
-      <field id="clMISR" long_name="Cloud Fraction as Calculated by the MISR Simulator" unit="1" grid_ref="grid4Dmisr"  detect_missing_value=".true." />
-    </field_group>
-
-    <field_group id="fields_COSP_MODIS" grid_ref="grid_glo" freq_offset="0ts"  freq_op="3h">
-      <field id="cllmodis" long_name="MODIS Low-level Cloud Fraction" unit="1"  detect_missing_value=".true." />
-      <field id="clmmodis" long_name="MODIS Mid-level Cloud Fraction" unit="1"  detect_missing_value=".true." />
-      <field id="clhmodis" long_name="MODIS Hight-level Cloud Fraction" unit="1"  detect_missing_value=".true." />
-      <field id="cltmodis" long_name="MODIS Total Cloud Fraction" unit="1"  detect_missing_value=".true." />
-      <field id="clwmodis" long_name="MODIS Cloud Fraction water mean" unit="1"  detect_missing_value=".true." />
-      <field id="climodis" long_name="MODIS Cloud Fraction ice mean" unit="1"  detect_missing_value=".true." />
-      <field id="tautmodis" long_name="MODIS Optical_Thickness_Total_Mean" unit="1"  detect_missing_value=".true." />
-      <field id="tauwmodis" long_name="MODIS Optical_Thickness_Water_Mean" unit="1"  detect_missing_value=".true." /> 
-      <field id="tauimodis" long_name="MODIS Optical_Thickness_Ice_Mean" unit="1"  detect_missing_value=".true." />
-      <field id="tautlogmodis" long_name="MODIS Optical_Thickness_Total_logMean" unit="1"  detect_missing_value=".true." />
-      <field id="tauwlogmodis" long_name="MODIS Optical_Thickness_Water_logMean" unit="1"  detect_missing_value=".true." />
-      <field id="tauilogmodis" long_name="MODIS Optical_Thickness_Ice_logMean" unit="1"  detect_missing_value=".true." />
-      <field id="reffclwmodis"  long_name="Modis Cloud_Particle_Size_Water_Mean" unit="m"  detect_missing_value=".true." />
-      <field id="reffclimodis"  long_name="Modis Cloud_Particle_Size_Ice_Mean" unit="m"  detect_missing_value=".true." />
-      <field id="pctmodis"  long_name="Modis Cloud_Top_Pressure_Total_Mean" unit="Pa"  detect_missing_value=".true." /> 
-      <field id="lwpmodis" long_name="Modis Liquid_Water_Path_Mean" unit="kg m-2"  detect_missing_value=".true." />
-      <field id="iwpmodis" long_name="Modis Ice_Water_Path_Mean" unit="kg m-2" detect_missing_value=".true." />
-    </field_group>
-      <field id="clmodis" long_name="MODIS Cloud Area Fraction" unit="1"  grid_ref="grid4Dtau"  detect_missing_value=".true." />
-      <field id="crimodis" long_name="MODIS Optical_Thickness_vs_ReffIce" unit="1" grid_ref="grid4Dreffi"  detect_missing_value=".true." />
-      <field id="crlmodis" long_name="MODIS Optical_Thickness_vs_ReffLiq" unit="1" grid_ref="grid4Dreffl"  detect_missing_value=".true." />
-
-
-    </field_group>  <!-- ----------------------------COSP------------------------ -->
+
 
     <field_group id="fields_AIRS" grid_ref="grid_glo" operation="instant" freq_op="3h">
Index: LMDZ6/branches/Ocean_skin/DefLists/field_def_lmdz_cospv2.xml
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/field_def_lmdz_cospv2.xml	(revision 3673)
+++ LMDZ6/branches/Ocean_skin/DefLists/field_def_lmdz_cospv2.xml	(revision 3798)
@@ -1,3 +1,3 @@
-<!-- $Id: field_def_lmdz.xml 3515 2019-05-21 10:41:38Z emillour $ -->
+<!-- $Id: field_def_lmdz.xml 3622 2020-01-15 10:50:43Z oboucher $ -->
 <field_definition level="1" prec="4" operation="average" freq_op="1ts" enabled=".true." default_value="9.96921e+36">
     
@@ -60,5 +60,6 @@
         <field id="wind10m"    long_name="10-m wind speed"      unit="m/s" />
         <field id="wind10max"  long_name="10m wind speed max"   unit="m/s" operation="maximum"/>
-	<field id="sfcWindmax" field_ref="wind10m" operation="maximum" />
+        <field id="wind100m"   long_name="100-m wind speed"      unit="m/s" />
+        <field id="sfcWindmax" field_ref="wind10m" operation="maximum" />
         <field id="sicf"    long_name="Sea-ice fraction"        unit="-" />
         <field id="q2m"     long_name="Specific humidity 2m"    unit="kg/kg" />
@@ -511,4 +512,8 @@
         <field id="colO3_strat"    long_name="Ozone stratospheric column"     unit="DU" />             <!-- Added ThL -->
         <field id="colO3_trop"     long_name="Ozone tropospheric column"      unit="DU" />             <!-- Added ThL -->
+        <field id="flx_co2_land"   long_name="CO2 flux from land"             unit="kg CO2/m2/s" />    <!-- Added OB -->
+        <field id="flx_co2_ocean"  long_name="CO2 flux from ocean"            unit="kg CO2/m2/s" />    <!-- Added OB -->
+        <field id="flx_co2_ff"     long_name="CO2 flux from ff"               unit="kg CO2/m2/s" />    <!-- Added OB -->
+        <field id="flx_co2_bb"     long_name="CO2 flux from bb"               unit="kg CO2/m2/s" />    <!-- Added OB -->
     </field_group>
 
@@ -852,5 +857,6 @@
     </field_group>
 
-<!-- LIDAR DIAGNOSTICS -->
+    
+    <!-- LIDAR DIAGNOSTICS -->
     <field_group id="fields_COSP_LIDAR_2D" grid_ref="grid_glo" freq_offset="0ts" freq_op="3h">
 <!-- CALIPSO 2D -->
@@ -1015,5 +1021,5 @@
       <field id="modis_ot_vs_reffliq" long_name="MODIS Joint-PDF of optical-depth and liquid particle size" unit="1" freq_offset="0ts" freq_op="3h" grid_ref="grid4Dreffl"  detect_missing_value=".true." />
 
-    
+
     <field_group id="fields_AIRS" grid_ref="grid_glo" operation="instant" freq_op="3h">
       <field id="alt_tropo" long_name="Tropopause pressure" unit="hPa" />
@@ -1064,5 +1070,5 @@
 <!-- reducing mass 3D variable to atmosphere total mass scalar -->
       <field id="mass_sum_axis"    field_ref="mass" grid_ref="grid_sum_axis" freq_op="1mo" > @mass  </field>
-      <field id="mass_sum" field_ref="mass_sum_axis" grid_ref="grid_sum" freq_op="1mo" > @mass_sum_axis  </field>
+      <field id="mass_sum" field_ref="mass_sum_axis" grid_ref="grid_sum" freq_op="1mo" > @mass_sum_axis*aire  </field>
    </field_group>
 
Index: LMDZ6/branches/Ocean_skin/DefLists/file_def_histdayCOSP_lmdz.xml
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/file_def_histdayCOSP_lmdz.xml	(revision 3673)
+++ LMDZ6/branches/Ocean_skin/DefLists/file_def_histdayCOSP_lmdz.xml	(revision 3798)
@@ -1,5 +1,5 @@
-<file_definition>
+<file_definition type="one_file">
       <file_group id="defile">
-        <file id="histdayCOSP" name="histdayCOSP" output_freq="1d" output_level="_AUTO_"  enabled="_AUTO_" compression_level="0">
+        <file id="histdayCOSP" name="histdayCOSP" output_freq="1d" output_level="_AUTO_"  enabled="_AUTO_" compression_level="2" sync_freq="1d">
           
             <field_group group_ref="remap_1d">
@@ -10,8 +10,4 @@
                 <field field_ref="clhcalipso"         level="5" grid_ref="grid_out"/>
                 <field field_ref="cltcalipso"         level="5" grid_ref="grid_out"/>
-                <field field_ref="pcllcalipso"         level="5" grid_ref="grid_out"/>
-                <field field_ref="pclmcalipso"         level="5" grid_ref="grid_out"/>
-                <field field_ref="pclhcalipso"         level="5" grid_ref="grid_out"/>
-                <field field_ref="pcltcalipso"         level="5" grid_ref="grid_out"/>
                 <field field_ref="cllcalipsoice"         level="5" grid_ref="grid_out"/>
                 <field field_ref="clmcalipsoice"         level="5" grid_ref="grid_out"/>
Index: LMDZ6/branches/Ocean_skin/DefLists/file_def_histdayCOSPv2_lmdz.xml
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/file_def_histdayCOSPv2_lmdz.xml	(revision 3673)
+++ LMDZ6/branches/Ocean_skin/DefLists/file_def_histdayCOSPv2_lmdz.xml	(revision 3798)
@@ -1,16 +1,13 @@
 <file_definition>
       <file_group id="defile">
-        <file id="histdayCOSP" name="histdayCOSP" output_freq="1d" output_level="1" type="one_file" enabled=".TRUE.">
+        <file id="histdayCOSP" name="histdayCOSP" output_freq="1d" output_level="1" type="one_file" enabled=".TRUE." compression_level="2" sync_freq="1d">
+<!-- <variable id="LongName" type="string">LMDZOR configuration</variable> -->
             <!-- VARS LIDAR -->
-            <field_group operation="average" freq_op="3h" detect_missing_value=".true.">
+            <field_group operation="average" freq_op="3h" freq_offset="0ts" detect_missing_value=".true.">
             <!-- VARS CALIPSO -->
-                <field field_ref="cllcalipso"           level="1" />
+                <field field_ref="cllcalipso"           level="0" />
                 <field field_ref="clmcalipso"           level="1" />
                 <field field_ref="clhcalipso"           level="1" />
                 <field field_ref="cltcalipso"           level="1" />
-                <field field_ref="pcllcalipso"          level="10" />
-                <field field_ref="pclmcalipso"          level="10" />
-                <field field_ref="pclhcalipso"          level="10" />
-                <field field_ref="pcltcalipso"          level="10" />
                 <field field_ref="cllcalipsoice"        level="1" />
                 <field field_ref="clmcalipsoice"        level="1" />
@@ -103,42 +100,42 @@
             <field_group operation="average" freq_op="3h" detect_missing_value=".true.">
 <!--                <field field_ref="sunlit" level="1" /> -->
-                <field field_ref="clisccp"             level="1" />
-                <field field_ref="boxtauisccp"         level="1" />
-                <field field_ref="boxptopisccp"        level="1" />
-                <field field_ref="cltisccp"            level="1" />
-                <field field_ref="pctisccp"            level="1" />
-                <field field_ref="tauisccp"            level="1" /> 
-                <field field_ref="albisccp"            level="1" />
-                <field field_ref="meantbisccp"         level="1" />
-                <field field_ref="meantbclrisccp"      level="1" />
+                <field field_ref="clisccp"             level="10" />
+                <field field_ref="boxtauisccp"         level="10" />
+                <field field_ref="boxptopisccp"        level="10" />
+                <field field_ref="cltisccp"            level="10" />
+                <field field_ref="pctisccp"            level="10" />
+                <field field_ref="tauisccp"            level="10" /> 
+                <field field_ref="albisccp"            level="10" />
+                <field field_ref="meantbisccp"         level="10" />
+                <field field_ref="meantbclrisccp"      level="10" />
              </field_group>
              <!-- VARS MISR -->
             <field_group operation="average" freq_op="3h" detect_missing_value=".true.">
-                <field field_ref="misr_fq"             level="1" />
-                <field field_ref="misr_meanztop"       level="1" />
-                <field field_ref="misr_cldarea"        level="1" />
+                <field field_ref="misr_fq"             level="10" />
+                <field field_ref="misr_meanztop"       level="10" />
+                <field field_ref="misr_cldarea"        level="10" />
             </field_group>
              <!-- VARS MODIS -->
             <field_group operation="average" freq_op="3h" detect_missing_value=".true.">
-                <field field_ref="cllmodis"            level="1" />
-                <field field_ref="clmmodis"            level="1" />
-                <field field_ref="clhmodis"            level="1" />
-                <field field_ref="cltmodis"            level="1" />
-                <field field_ref="clwmodis"            level="1" />
-                <field field_ref="climodis"            level="1" />
-                <field field_ref="tautmodis"           level="1" />
-                <field field_ref="tauwmodis"           level="1" />
-                <field field_ref="tauimodis"           level="1" />
-                <field field_ref="tautlogmodis"        level="1" />
-                <field field_ref="tauilogmodis"        level="1" />
-                <field field_ref="tauwlogmodis"        level="1" />
-                <field field_ref="reffclwmodis"        level="1" />
-                <field field_ref="reffclimodis"        level="1" />
-                <field field_ref="pctmodis"            level="1" />
-                <field field_ref="lwpmodis"            level="1" />
-                <field field_ref="iwpmodis"            level="1" />
-                <field field_ref="modis_ot_vs_ctp"     level="1" />
-                <field field_ref="modis_ot_vs_reffice" level="1" />
-                <field field_ref="modis_ot_vs_reffliq" level="1" />
+                <field field_ref="cllmodis"            level="10" />
+                <field field_ref="clmmodis"            level="10" />
+                <field field_ref="clhmodis"            level="10" />
+                <field field_ref="cltmodis"            level="10" />
+                <field field_ref="clwmodis"            level="10" />
+                <field field_ref="climodis"            level="10" />
+                <field field_ref="tautmodis"           level="10" />
+                <field field_ref="tauwmodis"           level="10" />
+                <field field_ref="tauimodis"           level="10" />
+                <field field_ref="tautlogmodis"        level="10" />
+                <field field_ref="tauilogmodis"        level="10" />
+                <field field_ref="tauwlogmodis"        level="10" />
+                <field field_ref="reffclwmodis"        level="10" />
+                <field field_ref="reffclimodis"        level="10" />
+                <field field_ref="pctmodis"            level="10" />
+                <field field_ref="lwpmodis"            level="10" />
+                <field field_ref="iwpmodis"            level="10" />
+                <field field_ref="modis_ot_vs_ctp"     level="10" />
+                <field field_ref="modis_ot_vs_reffice" level="10" />
+                <field field_ref="modis_ot_vs_reffliq" level="10" />
             </field_group>
 
Index: LMDZ6/branches/Ocean_skin/DefLists/file_def_histdayNMC_lmdz.xml
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/file_def_histdayNMC_lmdz.xml	(revision 3673)
+++ LMDZ6/branches/Ocean_skin/DefLists/file_def_histdayNMC_lmdz.xml	(revision 3798)
@@ -3,6 +3,8 @@
         <file id="histdayNMC" name="histdayNMC" output_freq="1d" output_level="5" enabled="_AUTO_" compression_level="4">
 
+            <field_group group_ref="remap_1d">
+
             <!-- VARS 3D -->
-            <field_group operation="average" freq_op="1ts" detect_missing_value=".true.">
+            <field_group operation="average" grid_ref="grid_out_plev" freq_op="1ts" detect_missing_value=".true.">
 <!--            <field field_ref="tnondef" level="5" /> -->
                 <field field_ref="ta" level="1" />
@@ -25,4 +27,5 @@
                 <field field_ref="v2" level="6" />
                 <field field_ref="T2" level="6" />
+              </field_group>
             </field_group>
         </file>
Index: LMDZ6/branches/Ocean_skin/DefLists/file_def_histhfCOSP_lmdz.xml
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/file_def_histhfCOSP_lmdz.xml	(revision 3673)
+++ LMDZ6/branches/Ocean_skin/DefLists/file_def_histhfCOSP_lmdz.xml	(revision 3798)
@@ -1,5 +1,5 @@
 <file_definition>
      <file_group id="defile">
-        <file id="histhfCOSP" name="histhfCOSP" output_freq="3h" output_level="0"  enabled=".TRUE." compression_level="4">
+        <file id="histhfCOSP" name="histhfCOSP" output_freq="3h" output_level="0"  enabled=".FALSE." compression_level="2" sync_freq="3h">
             <!-- VARS Calipso and PARASOL -->
             <field_group operation="instant" freq_op="3h" detect_missing_value=".true.">
@@ -8,8 +8,4 @@
                 <field field_ref="clhcalipso"         level="5" />
                 <field field_ref="cltcalipso"         level="5" />
-                <field field_ref="pcllcalipso"         level="5" />
-                <field field_ref="pclmcalipso"         level="5" />
-                <field field_ref="pclhcalipso"         level="5" />
-                <field field_ref="pcltcalipso"         level="5" />
                 <field field_ref="cllcalipsoice"         level="5" />
                 <field field_ref="clmcalipsoice"         level="5" />
Index: LMDZ6/branches/Ocean_skin/DefLists/file_def_histhfCOSPoff_lmdz.xml
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/file_def_histhfCOSPoff_lmdz.xml	(revision 3798)
+++ LMDZ6/branches/Ocean_skin/DefLists/file_def_histhfCOSPoff_lmdz.xml	(revision 3798)
@@ -0,0 +1,677 @@
+<file_definition>
+    <file_group id="defile">
+        <file id="histhf" name="histhf" output_freq="3h" output_level="0" enabled="TRUE" compression_level="2">
+<variable id="LongName" type="string">LMDZOR configuration</variable>
+            
+            <field_group operation="instant">
+                <field field_ref="R_ecc" level="10" name="R_ecc" />
+                <field field_ref="R_peri" level="10" name="R_peri" />
+                <field field_ref="R_incl" level="10" name="R_incl" />
+                <field field_ref="solaire" level="10" name="solar_irradiance" />
+
+                <field field_ref="rsun1" level="10" name="rsun1" />
+                <field field_ref="rsun2" level="10" name="rsun2" />
+                <field field_ref="rsun3" level="10" name="rsun3" />
+                <field field_ref="rsun4" level="10" name="rsun4" />
+                <field field_ref="rsun5" level="10" name="rsun5" />
+                <field field_ref="rsun6" level="10" name="rsun6" />
+
+                <field field_ref="co2_ppm" level="10" name="co2_ppm" />
+                <field field_ref="CH4_ppb" level="10" name="CH4_ppb" />
+                <field field_ref="N2O_ppb" level="10" name="N2O_ppb" />
+                <field field_ref="CFC11_ppt" level="10" name="CFC11_ppt" />
+                <field field_ref="CFC12_ppt" level="10" name="CFC12_ppt" />
+            </field_group>
+            <!-- VARS 2D -->
+            <field_group operation="instant" freq_op="1ts">
+                <field field_ref="phis" name="orography" level="0"> phis / 9.81 </field>
+                <field field_ref="aire" level="10" operation="once" />
+                <field field_ref="contfracATM" level="1" operation="once" />
+                <field field_ref="contfracOR" level="1" />
+                <field field_ref="flat" level="10" />
+                <field field_ref="slp" level="10" />
+                <field field_ref="sza" level="10" />
+                <field field_ref="ptstar" level="10" />
+                <field field_ref="pt0" level="10" />
+                <field field_ref="tsol" name="skt" level="0" />
+                <field field_ref="t2m" level="5" />
+                <field field_ref="t2m_min" level="10" operation="minimum" />
+                <field field_ref="t2m_max" level="10" operation="maximum" />
+                <field field_ref="t2m_ter" level="10" />
+                <field field_ref="t2m_lic" level="10" />
+                <field field_ref="t2m_oce" level="10" />
+                <field field_ref="t2m_sic" level="10" />
+                <field field_ref="treedrg_ter" level="10" />
+                <field field_ref="treedrg_lic" level="10" />
+                <field field_ref="treedrg_oce" level="10" />
+                <field field_ref="treedrg_sic" level="10" />
+                <field field_ref="gusts" level="10" />
+                <field field_ref="wind10m" level="10" />
+                <field field_ref="wind10max" level="10" operation="maximum" />
+                <field field_ref="sicf" level="10" />
+                <field field_ref="q2m" level="5" />
+                <field field_ref="ustar" level="10" />
+                <field field_ref="u10m" name="u_wind" level="0" />
+                <field field_ref="v10m" name="v_wind" level="0" />
+                <field field_ref="psol" name="psfc" level="0" />
+                <field field_ref="qsurf" level="5" />
+                <field field_ref="ustar_ter" level="10" />
+                <field field_ref="ustar_lic" level="10" />
+                <field field_ref="ustar_oce" level="10" />
+                <field field_ref="ustar_sic" level="10" />
+                <field field_ref="wstar_ter" level="10" />
+                <field field_ref="wstar_lic" level="10" />
+                <field field_ref="wstar_oce" level="10" />
+                <field field_ref="wstar_sic" level="10" />
+                <field field_ref="wstar" level="10" />
+                <field field_ref="u10m_ter" level="10" />
+                <field field_ref="u10m_lic" level="10" />
+                <field field_ref="u10m_oce" level="10" />
+                <field field_ref="u10m_sic" level="10" />
+                <field field_ref="v10m_ter" level="10" />
+                <field field_ref="v10m_lic" level="10" />
+                <field field_ref="v10m_oce" level="10" />
+                <field field_ref="v10m_sic" level="10" />
+                <field field_ref="qsol" level="10" />
+                <field field_ref="ndayrain" level="10" operation="instant" />
+                <field field_ref="precip" level="5" />
+                <field field_ref="rain_fall" level="10" />
+                <field field_ref="rain_con" level="10" />
+                <field field_ref="plul" level="10" />
+                <field field_ref="plun" level="10" />
+                <field field_ref="pluc" level="10" />
+                <field field_ref="snow" level="5" />
+                <field field_ref="evap" level="10" />
+                <field field_ref="evap_ter" level="10" />
+                <field field_ref="evap_lic" level="10" />
+                <field field_ref="evap_oce" level="10" />
+                <field field_ref="evap_sic" level="10" />
+                <field field_ref="msnow" level="10" />
+                <field field_ref="fsnow" level="10" />
+                <field field_ref="tops" level="10" />
+                <field field_ref="tops0" level="10" />
+                <field field_ref="topl" level="10" />
+                <field field_ref="topl0" level="10" />
+                <field field_ref="SWupTOA" level="10" />
+                <field field_ref="SWupTOAclr" level="10" />
+                <field field_ref="SWdnTOA" level="10" />
+                <field field_ref="SWdnTOAclr" level="10" />
+                <field field_ref="nettop" level="10" />
+                <field field_ref="SWup200" level="15" />
+                <field field_ref="SWup200clr" level="15" />
+                <field field_ref="SWdn200" level="15" />
+                <field field_ref="SWdn200clr" level="15" />
+                <field field_ref="LWup200" level="15" />
+                <field field_ref="LWup200clr" level="15" />
+                <field field_ref="LWdn200" level="15" />
+                <field field_ref="LWdn200clr" level="15" />
+                <field field_ref="sols" level="10" />
+                <field field_ref="sols0" level="10" />
+                <field field_ref="soll" level="10" />
+                <field field_ref="soll0" level="10" />
+                <field field_ref="radsol" level="10" />
+                <field field_ref="SWupSFC" level="10" />
+                <field field_ref="SWupSFCclr" level="10" />
+                <field field_ref="SWdnSFC" level="10" />
+                <field field_ref="SWdnSFCclr" level="10" />
+                <field field_ref="LWupSFC" level="10" />
+                <field field_ref="LWupSFCclr" level="10" />
+                <field field_ref="LWdnSFC" level="10" />
+                <field field_ref="LWdnSFCclr" level="10" />
+                <field field_ref="bils" level="10" />
+                <field field_ref="bils_tke" level="10" />
+                <field field_ref="bils_diss" level="10" />
+                <field field_ref="bils_ec" level="10" />
+                <field field_ref="bils_kinetic" level="10" />
+                <field field_ref="bils_enthalp" level="10" />
+                <field field_ref="bils_latent" level="10" />
+                <field field_ref="sens" level="10" />
+                <field field_ref="sens_x" level="11" />
+                <field field_ref="sens_w" level="11" />
+                <field field_ref="flat_x" level="11" />
+                <field field_ref="flat_w" level="11" />
+                <field field_ref="delta_tsurf" level="11" />
+                <field field_ref="cdragh_x" level="11" />
+                <field field_ref="cdragh_w" level="11" />
+                <field field_ref="cdragm_x" level="11" />
+                <field field_ref="cdragm_w" level="11" />
+                <field field_ref="kh" level="11" />
+                <field field_ref="kh_x" level="11" />
+                <field field_ref="kh_w" level="11" />
+                <field field_ref="fder" level="10" />
+                <field field_ref="ffonte" level="10" />
+                <field field_ref="fqcalving" level="10" />
+                <field field_ref="fqfonte" level="10" />
+                <field field_ref="mrroli" level="10" />
+                <field field_ref="runofflic" level="10" />
+                <field field_ref="taux" level="10" />
+                <field field_ref="tauy" level="10" />
+                <field field_ref="taux_ter" level="10" />
+                <field field_ref="taux_lic" level="10" />
+                <field field_ref="taux_oce" level="10" />
+                <field field_ref="taux_sic" level="10" />
+                <field field_ref="tauy_ter" level="10" />
+                <field field_ref="tauy_lic" level="10" />
+                <field field_ref="tauy_oce" level="10" />
+                <field field_ref="tauy_sic" level="10" />
+                <field field_ref="pourc_ter" level="10" />
+                <field field_ref="pourc_lic" level="10" />
+                <field field_ref="pourc_oce" level="10" />
+                <field field_ref="pourc_sic" level="10" />
+                <field id="landmask" field_ref="pourc_ter" name="landmask" level="0"> pourc_lic+pourc_ter &gt; 0.5 ? 1 : 0 </field>
+                <field field_ref="JrNt" name="sunlit" level="0" />
+                <field field_ref="rmu0" name='cos_solarr_zenithr_angle' level="10" />
+                <field field_ref="fract" level="10" />
+                <field field_ref="fract_ter" level="10" />
+                <field field_ref="fract_lic" level="10" />
+                <field field_ref="fract_oce" level="10" />
+                <field field_ref="fract_sic" level="10" />
+                <field field_ref="tsol_ter" level="10" />
+                <field field_ref="tsol_lic" level="10" />
+                <field field_ref="tsol_oce" level="10" />
+                <field field_ref="tsol_sic" level="10" />
+                <field field_ref="evappot_ter" level="10" />
+                <field field_ref="evappot_lic" level="10" />
+                <field field_ref="evappot_oce" level="10" />
+                <field field_ref="evappot_sic" level="10" />
+                <field field_ref="sens_ter" level="7" />
+                <field field_ref="sens_lic" level="7" />
+                <field field_ref="sens_oce" level="7" />
+                <field field_ref="sens_sic" level="7" />
+                <field field_ref="lat_ter" level="7" />
+                <field field_ref="lat_lic" level="7" />
+                <field field_ref="lat_oce" level="7" />
+                <field field_ref="lat_sic" level="7" />
+                <field field_ref="flw_ter" level="10" />
+                <field field_ref="flw_lic" level="10" />
+                <field field_ref="flw_oce" level="10" />
+                <field field_ref="flw_sic" level="10" />
+                <field field_ref="fsw_ter" level="10" />
+                <field field_ref="fsw_lic" level="10" />
+                <field field_ref="fsw_oce" level="10" />
+                <field field_ref="fsw_sic" level="10" />
+                <field field_ref="wbils_ter" level="10" />
+                <field field_ref="wbils_lic" level="10" />
+                <field field_ref="wbils_oce" level="10" />
+                <field field_ref="wbils_sic" level="10" />
+                <field field_ref="wbilo_ter" level="10" />
+                <field field_ref="wbilo_lic" level="10" />
+                <field field_ref="wbilo_oce" level="10" />
+                <field field_ref="wbilo_sic" level="10" />
+                <field field_ref="wevap_ter" level="10" />
+                <field field_ref="wevap_lic" level="10" />
+                <field field_ref="wevap_oce" level="10" />
+                <field field_ref="wevap_sic" level="10" />
+                <field field_ref="wrain_ter" level="10" />
+                <field field_ref="wrain_lic" level="10" />
+                <field field_ref="wrain_oce" level="10" />
+                <field field_ref="wrain_sic" level="10" />
+                <field field_ref="wsnow_ter" level="10" />
+                <field field_ref="wsnow_lic" level="10" />
+                <field field_ref="wsnow_oce" level="10" />
+                <field field_ref="wsnow_sic" level="10" />
+                <field field_ref="cdrm" level="10" />
+                <field field_ref="cdrh" level="7" />
+                <field field_ref="cldl" level="10" />
+                <field field_ref="cldm" level="10" />
+                <field field_ref="cldh" level="10" />
+                <field field_ref="cldt" level="10" />
+                <field field_ref="cldq" level="10" />
+                <field field_ref="lwp" level="10" />
+                <field field_ref="iwp" level="10" />
+                <field field_ref="ue" level="10" />
+                <field field_ref="ve" level="10" />
+                <field field_ref="uq" level="10" />
+                <field field_ref="vq" level="10" />
+                <field field_ref="cape" level="10" />
+                <field field_ref="pbase" level="10" />
+                <field field_ref="ptop" level="10" />
+                <field field_ref="fbase" level="10" />
+                <field field_ref="plcl" level="10" />
+                <field field_ref="plfc" level="10" />
+                <field field_ref="wbeff" level="10" />
+                <field field_ref="convoccur" level="10" />
+                <field field_ref="prw" level="10" />
+                <field field_ref="prlw" level="10" />
+                <field field_ref="prsw" level="10" />
+                <field field_ref="s_pblh" level="10" />
+                <field field_ref="s_pblt" level="10" />
+                <field field_ref="s_lcl" level="10" />
+                <field field_ref="s_therm" level="10" />
+                <field field_ref="slab_bils_oce" level="10" />
+                <field field_ref="ale_bl" level="10" />
+                <field field_ref="alp_bl" level="10" />
+                <field field_ref="ale_wk" level="10" />
+                <field field_ref="alp_wk" level="10" />
+                <field field_ref="ale" level="10" />
+                <field field_ref="alp" level="10" />
+                <field field_ref="cin" level="10" />
+                <field field_ref="wape" level="10" />
+                <field field_ref="n2" level="6" />
+                <field field_ref="s2" level="6" />
+                <field field_ref="proba_notrig" level="6" />
+                <field field_ref="random_notrig" level="6" />
+                <field field_ref="ale_bl_stat" level="6" />
+                <field field_ref="ale_bl_trig" level="6" />
+                <field field_ref="alp_bl_det" level="10" />
+                <field field_ref="alp_bl_fluct_m" level="10" />
+                <field field_ref="alp_bl_fluct_tke" level="10" />
+                <field field_ref="alp_bl_conv" level="10" />
+                <field field_ref="alp_bl_stat" level="10" />
+                <field_group operation="average" freq_op="1ts" detect_missing_value=".true.">
+                    <field field_ref="u850" level="10" />
+                    <field field_ref="u700" level="10" />
+                    <field field_ref="u500" level="10" />
+                    <field field_ref="u200" level="10" />
+                    <field field_ref="u100" level="10" />
+                    <field field_ref="u50" level="10" />
+                    <field field_ref="u10" level="10" />
+                    <field field_ref="v850" level="10" />
+                    <field field_ref="v700" level="10" />
+                    <field field_ref="v500" level="10" />
+                    <field field_ref="v200" level="10" />
+                    <field field_ref="v100" level="10" />
+                    <field field_ref="v50" level="10" />
+                    <field field_ref="v10" level="10" />
+                    <field field_ref="w850" level="10" />
+                    <field field_ref="w700" level="10" />
+                    <field field_ref="w500" level="10" />
+                    <field field_ref="w200" level="10" />
+                    <field field_ref="w100" level="10" />
+                    <field field_ref="w50" level="10" />
+                    <field field_ref="w10" level="10" />
+                    <field field_ref="t850" level="10" />
+                    <field field_ref="t700" level="10" />
+                    <field field_ref="t500" level="10" />
+                    <field field_ref="t200" level="10" />
+                    <field field_ref="t100" level="10" />
+                    <field field_ref="t50" level="10" />
+                    <field field_ref="t10" level="10" />
+                    <field field_ref="q850" level="10" />
+                    <field field_ref="q700" level="10" />
+                    <field field_ref="q500" level="10" />
+                    <field field_ref="q200" level="10" />
+                    <field field_ref="q100" level="10" />
+                    <field field_ref="q50" level="10" />
+                    <field field_ref="q10" level="10" />
+                    <field field_ref="z850" level="10" />
+                    <field field_ref="z700" level="10" />
+                    <field field_ref="z500" level="10" />
+                    <field field_ref="z200" level="10" />
+                    <field field_ref="z100" level="10" />
+                    <field field_ref="z50" level="10" />
+                    <field field_ref="z10" level="10" />
+                </field_group>
+
+                <field field_ref="t_oce_sic" level="10" />
+                <field field_ref="weakinv" level="10" />
+                <field field_ref="dthmin" level="10" />
+                <field field_ref="u10_ter" level="10" />
+                <field field_ref="u10_lic" level="10" />
+                <field field_ref="u10_oce" level="10" />
+                <field field_ref="u10_sic" level="10" />
+                <field field_ref="v10_ter" level="10" />
+                <field field_ref="v10_lic" level="10" />
+                <field field_ref="v10_oce" level="10" />
+                <field field_ref="v10_sic" level="10" />
+                <field field_ref="rh2m" level="10" />
+                <field field_ref="rh2m_min" level="10" operation="minimum" />
+                <field field_ref="rh2m_max" level="10" operation="maximum" />
+                <field field_ref="qsat2m" level="10" />
+                <field field_ref="tpot" level="10" />
+                <field field_ref="tpote" level="10" />
+                <field field_ref="tke" level="10" />
+                <field field_ref="tke_ter" level="10" />
+                <field field_ref="tke_lic" level="10" />
+                <field field_ref="tke_oce" level="10" />
+                <field field_ref="tke_sic" level="10" />
+                <field field_ref="tke_max_ter" level="10" operation="maximum" />
+                <field field_ref="tke_max_lic" level="10" operation="maximum" />
+                <field field_ref="tke_max_oce" level="10" operation="maximum" />
+                <field field_ref="tke_max_sic" level="10" operation="maximum" />
+                <field field_ref="l_mix_ter" level="10" />
+                <field field_ref="l_mix_lic" level="10" />
+                <field field_ref="l_mix_oce" level="10" />
+                <field field_ref="l_mix_sic" level="10" />
+                <field field_ref="l_mixmin_ter" level="10" />
+                <field field_ref="l_mixmin_lic" level="10" />
+                <field field_ref="l_mixmin_oce" level="10" />
+                <field field_ref="l_mixmin_sic" level="10" />
+                <field field_ref="SWnetOR" level="10" />
+                <field field_ref="SWdownOR" level="5" />
+                <field field_ref="LWdownOR" level="5" />
+                <field field_ref="snowl" level="10" />
+                <field field_ref="cape_max" level="10" operation="maximum" />
+                <field field_ref="solldown" level="10" />
+                <field field_ref="dtsvdfo" level="10" />
+                <field field_ref="dtsvdft" level="10" />
+                <field field_ref="dtsvdfg" level="10" />
+                <field field_ref="dtsvdfi" level="10" />
+                <field field_ref="rugs" level="10" />
+                <field field_ref="z0m" level="10" />
+                <field field_ref="z0h" level="10" />
+                <field field_ref="topswad" level="10" />
+                <field field_ref="topswad0" level="10" />
+                <field field_ref="topswai" level="10" />
+                <field field_ref="solswad" level="10" />
+                <field field_ref="solswad0" level="10" />
+                <field field_ref="solswai" level="10" />
+                <field field_ref="od550_ASBCM" level="10" />
+                <field field_ref="od550_ASPOMM" level="10" />
+                <field field_ref="od550_ASSO4M" level="10" />
+                <field field_ref="od550_CSSO4M" level="10" />
+                <field field_ref="od550_SSSSM" level="10" />
+                <field field_ref="od550_ASSSM" level="10" />
+                <field field_ref="od550_CSSSM" level="10" />
+                <field field_ref="od550_CIDUSTM" level="10" />
+                <field field_ref="od550_AIBCM" level="10" />
+                <field field_ref="od550_AIPOMM" level="10" />
+                <field field_ref="od550_ASNO3M" level="10" />
+                <field field_ref="od550_CSNO3M" level="10" />
+                <field field_ref="od550_CINO3M" level="10" />
+                <field field_ref="od550_STRAT" level="10" />
+                <field field_ref="od550aer" level="10" />
+                <field field_ref="od865aer" level="10" />
+                <field field_ref="abs550aer" level="10" />
+                <field field_ref="od550lt1aer" level="10" />
+                <field field_ref="sconcso4" level="10" />
+                <field field_ref="sconcoa" level="10" />
+                <field field_ref="sconcbc" level="10" />
+                <field field_ref="sconcss" level="10" />
+                <field field_ref="sconcdust" level="10" />
+                <field field_ref="sconcno3" level="10" />
+                <field field_ref="loadso4" level="10" />
+                <field field_ref="loadoa" level="10" />
+                <field field_ref="loadbc" level="10" />
+                <field field_ref="loadss" level="10" />
+                <field field_ref="loaddust" level="10" />
+                <field field_ref="loadno3" level="10" />
+                <field field_ref="swtoaas_nat" level="10" />
+                <field field_ref="swsrfas_nat" level="10" />
+                <field field_ref="swtoacs_nat" level="10" />
+                <field field_ref="swsrfcs_nat" level="10" />
+                <field field_ref="swtoaas_ant" level="10" />
+                <field field_ref="swsrfas_ant" level="10" />
+                <field field_ref="swtoacs_ant" level="10" />
+                <field field_ref="swsrfcs_ant" level="10" />
+                <field field_ref="swtoacf_nat" level="10" />
+                <field field_ref="swsrfcf_nat" level="10" />
+                <field field_ref="swtoacf_ant" level="10" />
+                <field field_ref="swsrfcf_ant" level="10" />
+                <field field_ref="swtoacf_zero" level="10" />
+                <field field_ref="swsrfcf_zero" level="10" />
+                <field field_ref="cldncl" level="10" />
+                <field field_ref="reffclwtop" level="10" />
+                <field field_ref="cldnvi" level="10" />
+                <field field_ref="lcc" level="10" />
+                <field field_ref="wvapp" level="10" />
+                <field field_ref="ozone_daylight" level="10" />
+                <field field_ref="albe_ter" level="7" />
+                <field field_ref="albe_lic" level="7" />
+                <field field_ref="albe_oce" level="7" />
+                <field field_ref="albe_sic" level="7" />
+                <field field_ref="ages_ter" level="10" />
+                <field field_ref="ages_lic" level="10" />
+                <field field_ref="ages_oce" level="10" />
+                <field field_ref="ages_sic" level="10" />
+                <field field_ref="snow_ter" level="10" />
+                <field field_ref="snow_lic" level="10" />
+                <field field_ref="snow_oce" level="10" />
+                <field field_ref="snow_sic" level="10" />
+                <field field_ref="rugs_ter" level="10" />
+                <field field_ref="rugs_lic" level="10" />
+                <field field_ref="rugs_oce" level="10" />
+                <field field_ref="rugs_sic" level="10" />
+                <field field_ref="z0m_ter" level="10" />
+                <field field_ref="z0m_lic" level="10" />
+                <field field_ref="z0m_oce" level="10" />
+                <field field_ref="z0m_sic" level="10" />
+                <field field_ref="z0h_ter" level="10" />
+                <field field_ref="z0h_lic" level="10" />
+                <field field_ref="z0h_oce" level="10" />
+                <field field_ref="z0h_sic" level="10" />
+                <field field_ref="alb1" name="sw_albedo" level="10" />
+                <field field_ref="alb2" name="lw_albedo" level="10" />
+                <field field_ref="ftime_con" level="10" operation="instant" />
+                <field field_ref="wake_h" level="10" />
+                <field field_ref="wake_s" level="10" />
+                <field field_ref="epmax" level="10" />
+                <field field_ref="plulth" level="10" />
+                <field field_ref="plulst" level="10" />
+                <field field_ref="lmaxth" level="10" />
+                <field field_ref="ftime_th" level="10" />
+                <field field_ref="ftime_deepcv" level="10" />
+                <field field_ref="f0_th" level="10" />
+                <field field_ref="zmax_th" level="10" />
+                <field field_ref="rsut4co2" level="10" />
+                <field field_ref="rlut4co2" level="10" />
+                <field field_ref="rsutcs4co2" level="10" />
+                <field field_ref="rlutcs4co2" level="10" />
+                <field field_ref="dqphy2d" level="10" />
+                <field field_ref="dqlphy2d" level="10" />
+                <field field_ref="dqsphy2d" level="10" />
+                <field field_ref="dqdyn2d" level="10" />
+                <field field_ref="dqldyn2d" level="10" />
+                <field field_ref="dqsdyn2d" level="10" />
+                <field field_ref="dqcon2d" level="10" />
+                <field field_ref="dqwak2d" level="10" />
+                <field field_ref="dqlsc2d" level="10" />
+                <field field_ref="dqvdf2d" level="10" />
+                <field field_ref="dqeva2d" level="10" />
+                <field field_ref="dqlscth2d" level="10" />
+                <field field_ref="dqlscst2d" level="10" />
+                <field field_ref="dqthe2d" level="10" />
+                <field field_ref="dqajs2d" level="10" />
+            </field_group>
+
+            <field_group operation="instant" freq_op="1ts" >
+                 <field field_ref="alt_tropo" level="10" />
+                 <field field_ref="map_prop_hc" level="10" />
+                 <field field_ref="map_prop_hist" level="10" />
+                 <field field_ref="map_emis_hc" level="10" />
+                 <field field_ref="map_iwp_hc" level="10" />
+                 <field field_ref="map_deltaz_hc" level="10" />
+                 <field field_ref="map_pcld_hc" level="10" />
+                 <field field_ref="map_tcld_hc" level="10" />
+                 <field field_ref="map_emis_hist" level="10" />
+                 <field field_ref="map_iwp_hist" level="10" />
+                 <field field_ref="map_deltaz_hist" level="10" />
+                 <field field_ref="map_rad_hist" level="10" />
+                 <field field_ref="map_emis_Cb" level="10" />
+                 <field field_ref="map_pcld_Cb" level="10" />
+                 <field field_ref="map_tcld_Cb" level="10" />
+                 <field field_ref="map_emis_Anv" level="10" />
+                 <field field_ref="map_pcld_Anv" level="10" />
+                 <field field_ref="map_tcld_Anv" level="10" />
+                 <field field_ref="map_emis_ThCi" level="10" />
+                 <field field_ref="map_pcld_ThCi" level="10" />
+                 <field field_ref="map_tcld_ThCi" level="10" />
+                 <field field_ref="map_ntot" level="10" />
+                 <field field_ref="map_hc" level="10" />
+                 <field field_ref="map_hist" level="10" />
+                 <field field_ref="map_Cb" level="10" />
+                 <field field_ref="map_ThCi" level="10" />
+                 <field field_ref="map_Anv" level="10" />
+            </field_group>
+
+            <!-- VARS 3D -->
+            <field_group operation="average" freq_op="1ts" grid_ref="grid_glo_presnivs">
+                <field field_ref="cldtau" name="dtau_s" level="0" />
+                <field field_ref="cldemi" name="dem_s" level="0" />
+                <field field_ref="tke_max" level="10" operation="maximum" />
+                <field field_ref="kz" level="10" />
+                <field field_ref="kz_max" level="10" operation="maximum" />
+                <field field_ref="concso4" level="10" />
+                <field field_ref="concoa" level="10" />
+                <field field_ref="concbc" level="10" />
+                <field field_ref="concss" level="10" />
+                <field field_ref="concdust" level="10" />
+                <field field_ref="concno3" level="10" />
+                <field field_ref="ec550aer" level="10" />
+                <field field_ref="lwcon" name="mr_lsliq" level="0" />
+                <field field_ref="iwcon" name="mr_lsice" level="0" />
+                <field field_ref="temp" name="T_abs" level="0" />
+                <field field_ref="theta" level="10" />
+                <field field_ref="ovap" name="qv" level="0" />
+                <field field_ref="ovapinit" level="10" />
+                <field field_ref="oliq" level="10" />
+                <field field_ref="ocond" level="10" />
+                <field field_ref="geop" level="0" />
+                <field field_ref="vitu" level="10" />
+                <field field_ref="vitv" level="10" />
+                <field field_ref="vitw" level="6" />
+                <field field_ref="pres" name="phalf" level="0" />
+                <field field_ref="paprs" name="pfull" level="0" />
+                <field field_ref="mass" level="10" />
+                <field field_ref="zfull" name="height" level="0" />
+                <field field_ref="zhalf" name="height_half" level="0" />
+                <field field_ref="rneb" level="10" />
+                <field field_ref="rneb" name="tca" level="0" /> 
+                <field field_ref="rnebcon" name="cca" level="0" />
+                <field field_ref="rnebls" level="10" />
+                <field field_ref="rneblsvol" level="10" />
+                <field field_ref="rhum" level="10" />
+                <field field_ref="rhum" name="rh" level="0"> rhum*100. </field>
+                <field id="mr_ozone" field_ref="ozone" name="mr_ozone" level="0" > ozone*47.9942/28.9644 </field>
+                <field field_ref="upwd" level="10" />
+                <field field_ref="ep" level="10" />
+                <field field_ref="duphy" level="10" />
+                <field field_ref="dtphy" level="10" />
+                <field field_ref="dqphy" level="10" />
+                <field field_ref="dqlphy" level="10" />
+                <field field_ref="dqsphy" level="10" />
+                <field field_ref="pr_con_l" name="fl_ccrain" level="10" />
+                <field field_ref="pr_con_i" name="fl_ccsnow" level="10" />
+                <field id="fl_lsrain" field_ref="pr_lsc_l" name="fl_lsrain" level="0" > pr_con_l+pr_lsc_l </field>
+                <field id="fl_lssnow" field_ref="pr_lsc_i" name="fl_lssnow" level="0" > pr_lsc_i+pr_con_i </field>
+                <field field_ref="re" level="10" />
+                <field field_ref="fl" level="10" />
+                <field field_ref="scdnc" level="10" />
+                <field field_ref="reffclws" level="10" />
+                <field field_ref="reffclwc" level="10" />
+                <field field_ref="lcc3d" level="10" />
+                <field field_ref="lcc3dcon" level="10" />
+                <field field_ref="lcc3dstra" level="10" />
+                <field field_ref="cldwatmxrat" level="10" />
+                <field field_ref="icc3dcon" level="10" />
+                <field field_ref="icc3dstra" level="10" />
+                <field field_ref="cldicemxrat" level="10" />
+                <field field_ref="clwcon" name="clw" level="10" />
+                <field field_ref="Ma" level="10" />
+                <field field_ref="dnwd" level="10" />
+                <field field_ref="dnwd0" level="10" />
+                <field field_ref="mc" level="10" />
+                <field field_ref="dtdyn" level="10" />
+                <field field_ref="dqdyn" level="10" />
+                <field field_ref="dqldyn" level="10" />
+                <field field_ref="dqsdyn" level="10" />
+                <field field_ref="dudyn" level="10" />
+                <field field_ref="dvdyn" level="10" />
+                <field field_ref="dtcon" level="10" />
+                <field field_ref="ducon" level="10" />
+                <field field_ref="dvcon" level="10" />
+                <field field_ref="dqcon" level="10" />
+                <field field_ref="dtwak" level="10" />
+                <field field_ref="dqwak" level="10" />
+                <field field_ref="wake_deltat" level="10" />
+                <field field_ref="wake_deltaq" level="10" />
+                <field field_ref="wake_omg" level="10" />
+                <field field_ref="wdtrainA" level="10" />
+                <field field_ref="wdtrainM" level="10" />
+                <field field_ref="Vprecip" level="10" />
+                <field field_ref="ftd" level="10" />
+                <field field_ref="fqd" level="10" />
+                <field field_ref="dtlsc" level="10" />
+                <field field_ref="dtlschr" level="10" />
+                <field field_ref="dqlsc" level="10" />
+                <field field_ref="beta_prec" level="10" />
+                <field field_ref="dtvdf" level="10" />
+                <field field_ref="dtvdf_x" level="11" />
+                <field field_ref="dtvdf_w" level="11" />
+                <field field_ref="dtdis" level="10" />
+                <field field_ref="dqvdf" level="10" />
+                <field field_ref="dqvdf_x" level="11" />
+                <field field_ref="dqvdf_w" level="11" />
+                <field field_ref="dteva" level="10" />
+                <field field_ref="dqeva" level="10" />
+                <field field_ref="dqlscth" level="10" />
+                <field field_ref="dqlscst" level="10" />
+                <field field_ref="dtlscth" level="10" />
+                <field field_ref="dtlscst" level="10" />
+                <field field_ref="ptconvth" level="10" />
+                <field field_ref="ptconv" level="10" />
+                <field field_ref="ratqs" level="10" />
+                <field field_ref="dtthe" level="10" />
+                <field field_ref="f_th" level="10" />
+                <field field_ref="e_th" level="10" />
+                <field field_ref="w_th" level="10" />
+                <field field_ref="lambda_th" level="10" />
+                <field field_ref="q_th" level="10" />
+                <field field_ref="a_th" level="10" />
+                <field field_ref="s_th" level="10" />
+                <field field_ref="s_env" level="10" />
+                <field field_ref="sigma_th" level="10" />
+                <field field_ref="sigma_env" level="10" />
+                <field field_ref="d_th" level="10" />
+                <field field_ref="dqthe" level="10" />
+                <field field_ref="dtajs" level="10" />
+                <field field_ref="dqajs" level="10" />
+                <field field_ref="dtswr" level="10" />
+                <field field_ref="dtsw0" level="10" />
+                <field field_ref="dtlwr" level="10" />
+                <field field_ref="dtlw0" level="10" />
+                <field field_ref="dtec" level="10" />
+                <field field_ref="duvdf" level="10" />
+                <field field_ref="dvvdf" level="10" />
+                <field field_ref="duoro" level="10" />
+                <field field_ref="dvoro" level="10" />
+                <field field_ref="dulif" level="10" />
+                <field field_ref="dvlif" level="10" />
+                <field field_ref="du_gwd_hines" level="10" />
+                <field field_ref="dv_gwd_hines" level="10" />
+                <field field_ref="du_gwd_front" level="10" />
+                <field field_ref="dv_gwd_front" level="10" />
+                <field field_ref="east_gwstress" level="10" />
+                <field field_ref="west_gwstress" level="10" />
+                <field field_ref="dtoro" level="10" />
+                <field field_ref="dtlif" level="10" />
+                <field field_ref="dthin" level="10" />
+                <field field_ref="rsu" level="10" />
+                <field field_ref="rsd" level="10" />
+                <field field_ref="rlu" level="10" />
+                <field field_ref="rld" level="10" />
+                <field field_ref="rsucs" level="10" />
+                <field field_ref="rsdcs" level="10" />
+                <field field_ref="rlucs" level="10" />
+                <field field_ref="rldcs" level="10" />
+                <field field_ref="tnt" level="10" />
+                <field field_ref="tntc" level="10" />
+                <field field_ref="tntr" level="10" />
+                <field field_ref="tntscpbl" level="10" />
+                <field field_ref="tnhus" level="10" />
+                <field field_ref="tnhusc" level="10" />
+                <field field_ref="tnhusscpbl" level="10" />
+                <field field_ref="evu" level="10" />
+                <field field_ref="h2o" level="10" />
+                <field field_ref="mcd" level="10" />
+                <field field_ref="dmc" level="10" />
+                <field field_ref="ref_liq" name="re_liq" level="0" > ref_liq*1e-6 </field>
+                <field field_ref="ref_ice" name="re_ice" level="0" > ref_ice*1e-6 </field>
+                <field field_ref="rsu4co2" level="10" />
+                <field field_ref="rlu4co2" level="10" />
+                <field field_ref="rsucs4co2" level="10" />
+                <field field_ref="rlucs4co2" level="10" />
+                <field field_ref="rsd4co2" level="10" />
+                <field field_ref="rld4co2" level="10" />
+                <field field_ref="rsdcs4co2" level="10" />
+                <field field_ref="rldcs4co2" level="10" />
+            </field_group>
+
+            <!-- VARS 3D -->
+            <field_group operation="average" freq_op="1ts" grid_ref="grid_glo_spectband">
+                <field field_ref="solbnd" level="10" />
+            </field_group>
+
+        </file>
+    </file_group>
+</file_definition>
Index: LMDZ6/branches/Ocean_skin/DefLists/file_def_histhfCOSPv2_lmdz.xml
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/file_def_histhfCOSPv2_lmdz.xml	(revision 3673)
+++ LMDZ6/branches/Ocean_skin/DefLists/file_def_histhfCOSPv2_lmdz.xml	(revision 3798)
@@ -1,9 +1,9 @@
 <file_definition>
      <file_group id="defile">
-        <file id="histhfCOSP" name="histhfCOSP" output_freq="3h" output_level="0" type="one_file" enabled=".TRUE.">
+        <file id="histhfCOSP" name="histhfCOSP" output_freq="3h" output_level="0" type="one_file" enabled=".FALSE." compression_level="2" sync_freq="3h">
             <!-- VARS LIDAR -->
-            <field_group operation="instant" freq_op="3h" detect_missing_value=".true.">
+            <field_group operation="instant" freq_offset="0ts" freq_op="3h" detect_missing_value=".true.">
             <!-- VARS CALIPSO -->
-                <field field_ref="cllcalipso"           level="1" />
+                <field field_ref="cllcalipso"           level="0" />
                 <field field_ref="clmcalipso"           level="1" />
                 <field field_ref="clhcalipso"           level="1" />
Index: LMDZ6/branches/Ocean_skin/DefLists/file_def_histhfECRADoff_lmdz.xml
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/file_def_histhfECRADoff_lmdz.xml	(revision 3798)
+++ LMDZ6/branches/Ocean_skin/DefLists/file_def_histhfECRADoff_lmdz.xml	(revision 3798)
@@ -0,0 +1,677 @@
+<file_definition>
+    <file_group id="defile">
+        <file id="histhf" name="histhf" output_freq="6h" output_level="0" enabled="TRUE" compression_level="4">
+
+
+            
+            <field_group operation="instant">
+                <field field_ref="R_ecc" level="0" name="R_ecc" />
+                <field field_ref="R_peri" level="0" name="R_peri" />
+                <field field_ref="R_incl" level="0" name="R_incl" />
+                <field field_ref="solaire" level="0" name="solar_irradiance" />
+
+                <field field_ref="rsun1" level="0" name="rsun1" />
+                <field field_ref="rsun2" level="0" name="rsun2" />
+                <field field_ref="rsun3" level="0" name="rsun3" />
+                <field field_ref="rsun4" level="0" name="rsun4" />
+                <field field_ref="rsun5" level="0" name="rsun5" />
+                <field field_ref="rsun6" level="0" name="rsun6" />
+
+                <field field_ref="co2_ppm" level="0" name="co2_ppm" />
+                <field field_ref="CH4_ppb" level="0" name="CH4_ppb" />
+                <field field_ref="N2O_ppb" level="0" name="N2O_ppb" />
+                <field field_ref="CFC11_ppt" level="0" name="CFC11_ppt" />
+                <field field_ref="CFC12_ppt" level="0" name="CFC12_ppt" />
+            </field_group>
+            <!-- VARS 2D -->
+            <field_group operation="instant" freq_op="1ts">
+                <field field_ref="phis" name="orogIs" level="0"> phis / 9.81 </field>
+                <field field_ref="aire" level="0" operation="once" />
+                <field field_ref="contfracATM" level="1" operation="once" />
+                <field field_ref="contfracOR" level="1" />
+                <field field_ref="flat" level="10" />
+                <field field_ref="slp" level="10" />
+                <field field_ref="sza" level="10" />
+                <field field_ref="ptstar" level="10" />
+                <field field_ref="pt0" level="10" />
+                <field field_ref="tsol" name="skin_temperature" level="0" />
+                <field field_ref="t2m" level="5" />
+                <field field_ref="t2m_min" level="10" operation="minimum" />
+                <field field_ref="t2m_max" level="10" operation="maximum" />
+                <field field_ref="t2m_ter" level="10" />
+                <field field_ref="t2m_lic" level="10" />
+                <field field_ref="t2m_oce" level="10" />
+                <field field_ref="t2m_sic" level="10" />
+                <field field_ref="treedrg_ter" level="10" />
+                <field field_ref="treedrg_lic" level="10" />
+                <field field_ref="treedrg_oce" level="10" />
+                <field field_ref="treedrg_sic" level="10" />
+                <field field_ref="gusts" level="10" />
+                <field field_ref="wind10m" level="10" />
+                <field field_ref="wind10max" level="10" operation="maximum" />
+                <field field_ref="sicf" level="10" />
+                <field field_ref="q2m" level="5" />
+                <field field_ref="ustar" level="10" />
+                <field field_ref="u10m" level="0" />
+                <field field_ref="v10m" level="0" />
+                <field field_ref="psol" level="5" />
+                <field field_ref="qsurf" level="5" />
+                <field field_ref="ustar_ter" level="10" />
+                <field field_ref="ustar_lic" level="10" />
+                <field field_ref="ustar_oce" level="10" />
+                <field field_ref="ustar_sic" level="10" />
+                <field field_ref="wstar_ter" level="10" />
+                <field field_ref="wstar_lic" level="10" />
+                <field field_ref="wstar_oce" level="10" />
+                <field field_ref="wstar_sic" level="10" />
+                <field field_ref="wstar" level="10" />
+                <field field_ref="u10m_ter" level="10" />
+                <field field_ref="u10m_lic" level="10" />
+                <field field_ref="u10m_oce" level="10" />
+                <field field_ref="u10m_sic" level="10" />
+                <field field_ref="v10m_ter" level="10" />
+                <field field_ref="v10m_lic" level="10" />
+                <field field_ref="v10m_oce" level="10" />
+                <field field_ref="v10m_sic" level="10" />
+                <field field_ref="qsol" level="10" />
+                <field field_ref="ndayrain" level="10" operation="instant" />
+                <field field_ref="precip" level="5" />
+                <field field_ref="rain_fall" level="10" />
+                <field field_ref="rain_con" level="10" />
+                <field field_ref="plul" level="10" />
+                <field field_ref="plun" level="10" />
+                <field field_ref="pluc" level="10" />
+                <field field_ref="snow" level="5" />
+                <field field_ref="evap" level="10" />
+                <field field_ref="evap_ter" level="10" />
+                <field field_ref="evap_lic" level="10" />
+                <field field_ref="evap_oce" level="10" />
+                <field field_ref="evap_sic" level="10" />
+                <field field_ref="msnow" level="10" />
+                <field field_ref="fsnow" level="10" />
+                <field field_ref="tops" level="10" />
+                <field field_ref="tops0" level="10" />
+                <field field_ref="topl" level="10" />
+                <field field_ref="topl0" level="10" />
+                <field field_ref="SWupTOA" level="10" />
+                <field field_ref="SWupTOAclr" level="10" />
+                <field field_ref="SWdnTOA" level="10" />
+                <field field_ref="SWdnTOAclr" level="10" />
+                <field field_ref="nettop" level="10" />
+                <field field_ref="SWup200" level="15" />
+                <field field_ref="SWup200clr" level="15" />
+                <field field_ref="SWdn200" level="15" />
+                <field field_ref="SWdn200clr" level="15" />
+                <field field_ref="LWup200" level="15" />
+                <field field_ref="LWup200clr" level="15" />
+                <field field_ref="LWdn200" level="15" />
+                <field field_ref="LWdn200clr" level="15" />
+                <field field_ref="sols" level="10" />
+                <field field_ref="sols0" level="10" />
+                <field field_ref="soll" level="10" />
+                <field field_ref="soll0" level="10" />
+                <field field_ref="radsol" level="10" />
+                <field field_ref="SWupSFC" level="10" />
+                <field field_ref="SWupSFCclr" level="10" />
+                <field field_ref="SWdnSFC" level="10" />
+                <field field_ref="SWdnSFCclr" level="10" />
+                <field field_ref="LWupSFC" level="10" />
+                <field field_ref="LWupSFCclr" level="10" />
+                <field field_ref="LWdnSFC" level="10" />
+                <field field_ref="LWdnSFCclr" level="10" />
+                <field field_ref="bils" level="10" />
+                <field field_ref="bils_tke" level="10" />
+                <field field_ref="bils_diss" level="10" />
+                <field field_ref="bils_ec" level="10" />
+                <field field_ref="bils_kinetic" level="10" />
+                <field field_ref="bils_enthalp" level="10" />
+                <field field_ref="bils_latent" level="10" />
+                <field field_ref="sens" level="10" />
+                <field field_ref="sens_x" level="11" />
+                <field field_ref="sens_w" level="11" />
+                <field field_ref="flat_x" level="11" />
+                <field field_ref="flat_w" level="11" />
+                <field field_ref="delta_tsurf" level="11" />
+                <field field_ref="cdragh_x" level="11" />
+                <field field_ref="cdragh_w" level="11" />
+                <field field_ref="cdragm_x" level="11" />
+                <field field_ref="cdragm_w" level="11" />
+                <field field_ref="kh" level="11" />
+                <field field_ref="kh_x" level="11" />
+                <field field_ref="kh_w" level="11" />
+                <field field_ref="fder" level="10" />
+                <field field_ref="ffonte" level="10" />
+                <field field_ref="fqcalving" level="10" />
+                <field field_ref="fqfonte" level="10" />
+                <field field_ref="mrroli" level="10" />
+                <field field_ref="runofflic" level="10" />
+                <field field_ref="taux" level="10" />
+                <field field_ref="tauy" level="10" />
+                <field field_ref="taux_ter" level="10" />
+                <field field_ref="taux_lic" level="10" />
+                <field field_ref="taux_oce" level="10" />
+                <field field_ref="taux_sic" level="10" />
+                <field field_ref="tauy_ter" level="10" />
+                <field field_ref="tauy_lic" level="10" />
+                <field field_ref="tauy_oce" level="10" />
+                <field field_ref="tauy_sic" level="10" />
+                <field field_ref="pourc_ter" level="0" />
+                <field field_ref="pourc_lic" level="0" />
+                <field field_ref="pourc_oce" level="0" />
+                <field field_ref="pourc_sic" level="0" />
+                <field field_ref="JrNt" level="0" />
+                <field field_ref="rmu0" name="cos_solarr_zenithr_angle" level="0" />
+                <field field_ref="fract" level="0" />
+                <field field_ref="fract_ter" level="10" />
+                <field field_ref="fract_lic" level="10" />
+                <field field_ref="fract_oce" level="10" />
+                <field field_ref="fract_sic" level="10" />
+                <field field_ref="tsol_ter" level="10" />
+                <field field_ref="tsol_lic" level="10" />
+                <field field_ref="tsol_oce" level="10" />
+                <field field_ref="tsol_sic" level="10" />
+                <field field_ref="evappot_ter" level="10" />
+                <field field_ref="evappot_lic" level="10" />
+                <field field_ref="evappot_oce" level="10" />
+                <field field_ref="evappot_sic" level="10" />
+                <field field_ref="sens_ter" level="7" />
+                <field field_ref="sens_lic" level="7" />
+                <field field_ref="sens_oce" level="7" />
+                <field field_ref="sens_sic" level="7" />
+                <field field_ref="lat_ter" level="7" />
+                <field field_ref="lat_lic" level="7" />
+                <field field_ref="lat_oce" level="7" />
+                <field field_ref="lat_sic" level="7" />
+                <field field_ref="flw_ter" level="10" />
+                <field field_ref="flw_lic" level="10" />
+                <field field_ref="flw_oce" level="10" />
+                <field field_ref="flw_sic" level="10" />
+                <field field_ref="fsw_ter" level="10" />
+                <field field_ref="fsw_lic" level="10" />
+                <field field_ref="fsw_oce" level="10" />
+                <field field_ref="fsw_sic" level="10" />
+                <field field_ref="wbils_ter" level="10" />
+                <field field_ref="wbils_lic" level="10" />
+                <field field_ref="wbils_oce" level="10" />
+                <field field_ref="wbils_sic" level="10" />
+                <field field_ref="wbilo_ter" level="10" />
+                <field field_ref="wbilo_lic" level="10" />
+                <field field_ref="wbilo_oce" level="10" />
+                <field field_ref="wbilo_sic" level="10" />
+                <field field_ref="wevap_ter" level="10" />
+                <field field_ref="wevap_lic" level="10" />
+                <field field_ref="wevap_oce" level="10" />
+                <field field_ref="wevap_sic" level="10" />
+                <field field_ref="wrain_ter" level="10" />
+                <field field_ref="wrain_lic" level="10" />
+                <field field_ref="wrain_oce" level="10" />
+                <field field_ref="wrain_sic" level="10" />
+                <field field_ref="wsnow_ter" level="10" />
+                <field field_ref="wsnow_lic" level="10" />
+                <field field_ref="wsnow_oce" level="10" />
+                <field field_ref="wsnow_sic" level="10" />
+                <field field_ref="cdrm" level="10" />
+                <field field_ref="cdrh" level="7" />
+                <field field_ref="cldl" level="10" />
+                <field field_ref="cldm" level="10" />
+                <field field_ref="cldh" level="10" />
+                <field field_ref="cldt" level="10" />
+                <field field_ref="cldq" level="10" />
+                <field field_ref="lwp" level="10" />
+                <field field_ref="iwp" level="10" />
+                <field field_ref="ue" level="10" />
+                <field field_ref="ve" level="10" />
+                <field field_ref="uq" level="10" />
+                <field field_ref="vq" level="10" />
+                <field field_ref="cape" level="10" />
+                <field field_ref="pbase" level="10" />
+                <field field_ref="ptop" level="10" />
+                <field field_ref="fbase" level="10" />
+                <field field_ref="plcl" level="10" />
+                <field field_ref="plfc" level="10" />
+                <field field_ref="wbeff" level="10" />
+                <field field_ref="convoccur" level="10" />
+                <field field_ref="prw" level="10" />
+                <field field_ref="prlw" level="10" />
+                <field field_ref="prsw" level="10" />
+                <field field_ref="s_pblh" level="10" />
+                <field field_ref="s_pblt" level="10" />
+                <field field_ref="s_lcl" level="10" />
+                <field field_ref="s_therm" level="10" />
+                <field field_ref="slab_bils_oce" level="10" />
+                <field field_ref="ale_bl" level="10" />
+                <field field_ref="alp_bl" level="10" />
+                <field field_ref="ale_wk" level="10" />
+                <field field_ref="alp_wk" level="10" />
+                <field field_ref="ale" level="10" />
+                <field field_ref="alp" level="10" />
+                <field field_ref="cin" level="10" />
+                <field field_ref="wape" level="10" />
+                <field field_ref="n2" level="6" />
+                <field field_ref="s2" level="6" />
+                <field field_ref="proba_notrig" level="6" />
+                <field field_ref="random_notrig" level="6" />
+                <field field_ref="ale_bl_stat" level="6" />
+                <field field_ref="ale_bl_trig" level="6" />
+                <field field_ref="alp_bl_det" level="10" />
+                <field field_ref="alp_bl_fluct_m" level="10" />
+                <field field_ref="alp_bl_fluct_tke" level="10" />
+                <field field_ref="alp_bl_conv" level="10" />
+                <field field_ref="alp_bl_stat" level="10" />
+                <field_group operation="average" freq_op="1ts" detect_missing_value=".true.">
+                    <field field_ref="u850" level="10" />
+                    <field field_ref="u700" level="10" />
+                    <field field_ref="u500" level="10" />
+                    <field field_ref="u200" level="10" />
+                    <field field_ref="u100" level="10" />
+                    <field field_ref="u50" level="10" />
+                    <field field_ref="u10" level="10" />
+                    <field field_ref="v850" level="10" />
+                    <field field_ref="v700" level="10" />
+                    <field field_ref="v500" level="10" />
+                    <field field_ref="v200" level="10" />
+                    <field field_ref="v100" level="10" />
+                    <field field_ref="v50" level="10" />
+                    <field field_ref="v10" level="10" />
+                    <field field_ref="w850" level="10" />
+                    <field field_ref="w700" level="10" />
+                    <field field_ref="w500" level="10" />
+                    <field field_ref="w200" level="10" />
+                    <field field_ref="w100" level="10" />
+                    <field field_ref="w50" level="10" />
+                    <field field_ref="w10" level="10" />
+                    <field field_ref="t850" level="10" />
+                    <field field_ref="t700" level="10" />
+                    <field field_ref="t500" level="10" />
+                    <field field_ref="t200" level="10" />
+                    <field field_ref="t100" level="10" />
+                    <field field_ref="t50" level="10" />
+                    <field field_ref="t10" level="10" />
+                    <field field_ref="q850" level="10" />
+                    <field field_ref="q700" level="10" />
+                    <field field_ref="q500" level="10" />
+                    <field field_ref="q200" level="10" />
+                    <field field_ref="q100" level="10" />
+                    <field field_ref="q50" level="10" />
+                    <field field_ref="q10" level="10" />
+                    <field field_ref="z850" level="10" />
+                    <field field_ref="z700" level="10" />
+                    <field field_ref="z500" level="10" />
+                    <field field_ref="z200" level="10" />
+                    <field field_ref="z100" level="10" />
+                    <field field_ref="z50" level="10" />
+                    <field field_ref="z10" level="10" />
+                </field_group>
+
+                <field field_ref="t_oce_sic" level="10" />
+                <field field_ref="weakinv" level="10" />
+                <field field_ref="dthmin" level="10" />
+                <field field_ref="u10_ter" level="10" />
+                <field field_ref="u10_lic" level="10" />
+                <field field_ref="u10_oce" level="10" />
+                <field field_ref="u10_sic" level="10" />
+                <field field_ref="v10_ter" level="10" />
+                <field field_ref="v10_lic" level="10" />
+                <field field_ref="v10_oce" level="10" />
+                <field field_ref="v10_sic" level="10" />
+                <field field_ref="rh2m" level="10" />
+                <field field_ref="rh2m_min" level="10" operation="minimum" />
+                <field field_ref="rh2m_max" level="10" operation="maximum" />
+                <field field_ref="qsat2m" level="10" />
+                <field field_ref="tpot" level="10" />
+                <field field_ref="tpote" level="10" />
+                <field field_ref="tke" level="10" />
+                <field field_ref="tke_ter" level="10" />
+                <field field_ref="tke_lic" level="10" />
+                <field field_ref="tke_oce" level="10" />
+                <field field_ref="tke_sic" level="10" />
+                <field field_ref="tke_max_ter" level="10" operation="maximum" />
+                <field field_ref="tke_max_lic" level="10" operation="maximum" />
+                <field field_ref="tke_max_oce" level="10" operation="maximum" />
+                <field field_ref="tke_max_sic" level="10" operation="maximum" />
+                <field field_ref="l_mix_ter" level="10" />
+                <field field_ref="l_mix_lic" level="10" />
+                <field field_ref="l_mix_oce" level="10" />
+                <field field_ref="l_mix_sic" level="10" />
+                <field field_ref="l_mixmin_ter" level="10" />
+                <field field_ref="l_mixmin_lic" level="10" />
+                <field field_ref="l_mixmin_oce" level="10" />
+                <field field_ref="l_mixmin_sic" level="10" />
+                <field field_ref="SWnetOR" level="10" />
+                <field field_ref="SWdownOR" level="5" />
+                <field field_ref="LWdownOR" level="5" />
+                <field field_ref="snowl" level="10" />
+                <field field_ref="cape_max" level="10" operation="maximum" />
+                <field field_ref="solldown" level="10" />
+                <field field_ref="dtsvdfo" level="10" />
+                <field field_ref="dtsvdft" level="10" />
+                <field field_ref="dtsvdfg" level="10" />
+                <field field_ref="dtsvdfi" level="10" />
+                <field field_ref="rugs" level="10" />
+                <field field_ref="z0m" level="10" />
+                <field field_ref="z0h" level="10" />
+                <field field_ref="topswad" level="10" />
+                <field field_ref="topswad0" level="10" />
+                <field field_ref="topswai" level="10" />
+                <field field_ref="solswad" level="10" />
+                <field field_ref="solswad0" level="10" />
+                <field field_ref="solswai" level="10" />
+                <field field_ref="od550_ASBCM" level="10" />
+                <field field_ref="od550_ASPOMM" level="10" />
+                <field field_ref="od550_ASSO4M" level="10" />
+                <field field_ref="od550_CSSO4M" level="10" />
+                <field field_ref="od550_SSSSM" level="10" />
+                <field field_ref="od550_ASSSM" level="10" />
+                <field field_ref="od550_CSSSM" level="10" />
+                <field field_ref="od550_CIDUSTM" level="10" />
+                <field field_ref="od550_AIBCM" level="10" />
+                <field field_ref="od550_AIPOMM" level="10" />
+                <field field_ref="od550_ASNO3M" level="10" />
+                <field field_ref="od550_CSNO3M" level="10" />
+                <field field_ref="od550_CINO3M" level="10" />
+                <field field_ref="od550_STRAT" level="10" />
+                <field field_ref="od550aer" level="10" />
+                <field field_ref="od865aer" level="10" />
+                <field field_ref="abs550aer" level="10" />
+                <field field_ref="od550lt1aer" level="10" />
+                <field field_ref="sconcso4" level="10" />
+                <field field_ref="sconcoa" level="10" />
+                <field field_ref="sconcbc" level="10" />
+                <field field_ref="sconcss" level="10" />
+                <field field_ref="sconcdust" level="10" />
+                <field field_ref="sconcno3" level="10" />
+                <field field_ref="loadso4" level="10" />
+                <field field_ref="loadoa" level="10" />
+                <field field_ref="loadbc" level="10" />
+                <field field_ref="loadss" level="10" />
+                <field field_ref="loaddust" level="10" />
+                <field field_ref="loadno3" level="10" />
+                <field field_ref="swtoaas_nat" level="10" />
+                <field field_ref="swsrfas_nat" level="10" />
+                <field field_ref="swtoacs_nat" level="10" />
+                <field field_ref="swsrfcs_nat" level="10" />
+                <field field_ref="swtoaas_ant" level="10" />
+                <field field_ref="swsrfas_ant" level="10" />
+                <field field_ref="swtoacs_ant" level="10" />
+                <field field_ref="swsrfcs_ant" level="10" />
+                <field field_ref="swtoacf_nat" level="10" />
+                <field field_ref="swsrfcf_nat" level="10" />
+                <field field_ref="swtoacf_ant" level="10" />
+                <field field_ref="swsrfcf_ant" level="10" />
+                <field field_ref="swtoacf_zero" level="10" />
+                <field field_ref="swsrfcf_zero" level="10" />
+                <field field_ref="cldncl" level="10" />
+                <field field_ref="reffclwtop" level="10" />
+                <field field_ref="cldnvi" level="10" />
+                <field field_ref="lcc" level="10" />
+                <field field_ref="wvapp" level="10" />
+                <field field_ref="ozone_daylight" level="10" />
+                <field field_ref="albe_ter" level="7" />
+                <field field_ref="albe_lic" level="7" />
+                <field field_ref="albe_oce" level="7" />
+                <field field_ref="albe_sic" level="7" />
+                <field field_ref="ages_ter" level="10" />
+                <field field_ref="ages_lic" level="10" />
+                <field field_ref="ages_oce" level="10" />
+                <field field_ref="ages_sic" level="10" />
+                <field field_ref="snow_ter" level="10" />
+                <field field_ref="snow_lic" level="10" />
+                <field field_ref="snow_oce" level="10" />
+                <field field_ref="snow_sic" level="10" />
+                <field field_ref="rugs_ter" level="10" />
+                <field field_ref="rugs_lic" level="10" />
+                <field field_ref="rugs_oce" level="10" />
+                <field field_ref="rugs_sic" level="10" />
+                <field field_ref="z0m_ter" level="10" />
+                <field field_ref="z0m_lic" level="10" />
+                <field field_ref="z0m_oce" level="10" />
+                <field field_ref="z0m_sic" level="10" />
+                <field field_ref="z0h_ter" level="10" />
+                <field field_ref="z0h_lic" level="10" />
+                <field field_ref="z0h_oce" level="10" />
+                <field field_ref="z0h_sic" level="10" />
+                <field field_ref="alb1" name="sw_albedo" level="0" />
+                <field field_ref="alb2" name="lw_albedo" level="0" />
+                <field field_ref="ftime_con" level="10" operation="instant" />
+                <field field_ref="wake_h" level="10" />
+                <field field_ref="wake_s" level="10" />
+                <field field_ref="epmax" level="10" />
+                <field field_ref="plulth" level="10" />
+                <field field_ref="plulst" level="10" />
+                <field field_ref="lmaxth" level="10" />
+                <field field_ref="ftime_th" level="10" />
+                <field field_ref="ftime_deepcv" level="10" />
+                <field field_ref="f0_th" level="10" />
+                <field field_ref="zmax_th" level="10" />
+                <field field_ref="rsut4co2" level="10" />
+                <field field_ref="rlut4co2" level="10" />
+                <field field_ref="rsutcs4co2" level="10" />
+                <field field_ref="rlutcs4co2" level="10" />
+                <field field_ref="dqphy2d" level="10" />
+                <field field_ref="dqlphy2d" level="10" />
+                <field field_ref="dqsphy2d" level="10" />
+                <field field_ref="dqdyn2d" level="10" />
+                <field field_ref="dqldyn2d" level="10" />
+                <field field_ref="dqsdyn2d" level="10" />
+                <field field_ref="dqcon2d" level="10" />
+                <field field_ref="dqwak2d" level="10" />
+                <field field_ref="dqlsc2d" level="10" />
+                <field field_ref="dqvdf2d" level="10" />
+                <field field_ref="dqeva2d" level="10" />
+                <field field_ref="dqlscth2d" level="10" />
+                <field field_ref="dqlscst2d" level="10" />
+                <field field_ref="dqthe2d" level="10" />
+                <field field_ref="dqajs2d" level="10" />
+            </field_group>
+
+            <field_group operation="instant" freq_op="1ts" >
+                 <field field_ref="alt_tropo" level="10" />
+                 <field field_ref="map_prop_hc" level="10" />
+                 <field field_ref="map_prop_hist" level="10" />
+                 <field field_ref="map_emis_hc" level="10" />
+                 <field field_ref="map_iwp_hc" level="10" />
+                 <field field_ref="map_deltaz_hc" level="10" />
+                 <field field_ref="map_pcld_hc" level="10" />
+                 <field field_ref="map_tcld_hc" level="10" />
+                 <field field_ref="map_emis_hist" level="10" />
+                 <field field_ref="map_iwp_hist" level="10" />
+                 <field field_ref="map_deltaz_hist" level="10" />
+                 <field field_ref="map_rad_hist" level="10" />
+                 <field field_ref="map_emis_Cb" level="10" />
+                 <field field_ref="map_pcld_Cb" level="10" />
+                 <field field_ref="map_tcld_Cb" level="10" />
+                 <field field_ref="map_emis_Anv" level="10" />
+                 <field field_ref="map_pcld_Anv" level="10" />
+                 <field field_ref="map_tcld_Anv" level="10" />
+                 <field field_ref="map_emis_ThCi" level="10" />
+                 <field field_ref="map_pcld_ThCi" level="10" />
+                 <field field_ref="map_tcld_ThCi" level="10" />
+                 <field field_ref="map_ntot" level="10" />
+                 <field field_ref="map_hc" level="10" />
+                 <field field_ref="map_hist" level="10" />
+                 <field field_ref="map_Cb" level="10" />
+                 <field field_ref="map_ThCi" level="10" />
+                 <field field_ref="map_Anv" level="10" />
+            </field_group>
+
+            <!-- VARS 3D -->
+            <field_group operation="average" freq_op="1ts" grid_ref="grid_glo_presnivs">
+                <field field_ref="cldtau" level="0" />
+                <field field_ref="cldemi" level="0" />
+                <field field_ref="tke_max" level="10" operation="maximum" />
+                <field field_ref="kz" level="10" />
+                <field field_ref="kz_max" level="10" operation="maximum" />
+                <field field_ref="concso4" level="10" />
+                <field field_ref="concoa" level="10" />
+                <field field_ref="concbc" level="10" />
+                <field field_ref="concss" level="10" />
+                <field field_ref="concdust" level="10" />
+                <field field_ref="concno3" level="10" />
+                <field field_ref="ec550aer" level="10" />
+                <field field_ref="lwcon" name="q_liquid" level="0" />
+                <field field_ref="iwcon" name="q_ice" level="0" />
+                <field field_ref="temp" name="temperature_hl" level="0" />
+                <field field_ref="theta" level="10" />
+                <field field_ref="ovap" name="q" level="0" />
+                <field field_ref="ovapinit" level="10" />
+                <field field_ref="oliq" level="10" />
+                <field field_ref="ocond" level="10" />
+                <field field_ref="geop" level="0" />
+                <field field_ref="vitu" level="10" />
+                <field field_ref="vitv" level="10" />
+                <field field_ref="vitw" level="6" />
+                <field field_ref="pres" name="pfull" level="0" />
+                <field field_ref="paprs" name="pressure_hl" level="0" />
+                <field field_ref="mass" level="0" />
+                <field field_ref="zfull" level="0" />
+                <field field_ref="zhalf" level="0" />
+                <field field_ref="rneb" level="10" />
+                <field field_ref="rneb" name="cl" level="0"> rneb*100. </field> 
+                <field field_ref="rnebcon" name="clc" level="0"> rnebcon*100. </field>
+                <field field_ref="rnebls" level="10" />
+                <field field_ref="rneblsvol" level="10" />
+                <field field_ref="rhum" level="10" />
+                <field field_ref="rhum" name="rh" level="0"> rhum*100. </field>
+                <field field_ref="ozone" level="0" />
+                <field field_ref="upwd" level="10" />
+                <field field_ref="ep" level="10" />
+                <field field_ref="duphy" level="10" />
+                <field field_ref="dtphy" level="10" />
+                <field field_ref="dqphy" level="10" />
+                <field field_ref="dqlphy" level="10" />
+                <field field_ref="dqsphy" level="10" />
+                <field field_ref="pr_con_l" name="prcprof" level="0" />
+                <field field_ref="pr_con_i" name="prsnc" level="0" />
+                <field field_ref="pr_lsc_l" name="prlsprof" level="0" />
+                <field field_ref="pr_lsc_i" name="prlsnsl" level="0" />
+                <field field_ref="re" level="10" />
+                <field field_ref="fl" level="10" />
+                <field field_ref="scdnc" level="10" />
+                <field field_ref="reffclws" level="10" />
+                <field field_ref="reffclwc" level="10" />
+                <field field_ref="lcc3d" level="10" />
+                <field field_ref="lcc3dcon" level="10" />
+                <field field_ref="lcc3dstra" level="10" />
+                <field field_ref="cldwatmxrat" level="10" />
+                <field field_ref="icc3dcon" level="10" />
+                <field field_ref="icc3dstra" level="10" />
+                <field field_ref="cldicemxrat" level="10" />
+                <field field_ref="clwcon" name="clw" level="0" />
+                <field field_ref="Ma" level="10" />
+                <field field_ref="dnwd" level="10" />
+                <field field_ref="dnwd0" level="10" />
+                <field field_ref="mc" level="10" />
+                <field field_ref="dtdyn" level="10" />
+                <field field_ref="dqdyn" level="10" />
+                <field field_ref="dqldyn" level="10" />
+                <field field_ref="dqsdyn" level="10" />
+                <field field_ref="dudyn" level="10" />
+                <field field_ref="dvdyn" level="10" />
+                <field field_ref="dtcon" level="10" />
+                <field field_ref="ducon" level="10" />
+                <field field_ref="dvcon" level="10" />
+                <field field_ref="dqcon" level="10" />
+                <field field_ref="dtwak" level="10" />
+                <field field_ref="dqwak" level="10" />
+                <field field_ref="wake_deltat" level="10" />
+                <field field_ref="wake_deltaq" level="10" />
+                <field field_ref="wake_omg" level="10" />
+                <field field_ref="wdtrainA" level="10" />
+                <field field_ref="wdtrainM" level="10" />
+                <field field_ref="Vprecip" level="10" />
+                <field field_ref="ftd" level="10" />
+                <field field_ref="fqd" level="10" />
+                <field field_ref="dtlsc" level="10" />
+                <field field_ref="dtlschr" level="10" />
+                <field field_ref="dqlsc" level="10" />
+                <field field_ref="beta_prec" level="10" />
+                <field field_ref="dtvdf" level="10" />
+                <field field_ref="dtvdf_x" level="11" />
+                <field field_ref="dtvdf_w" level="11" />
+                <field field_ref="dtdis" level="10" />
+                <field field_ref="dqvdf" level="10" />
+                <field field_ref="dqvdf_x" level="11" />
+                <field field_ref="dqvdf_w" level="11" />
+                <field field_ref="dteva" level="10" />
+                <field field_ref="dqeva" level="10" />
+                <field field_ref="dqlscth" level="10" />
+                <field field_ref="dqlscst" level="10" />
+                <field field_ref="dtlscth" level="10" />
+                <field field_ref="dtlscst" level="10" />
+                <field field_ref="ptconvth" level="10" />
+                <field field_ref="ptconv" level="10" />
+                <field field_ref="ratqs" level="10" />
+                <field field_ref="dtthe" level="10" />
+                <field field_ref="f_th" level="10" />
+                <field field_ref="e_th" level="10" />
+                <field field_ref="w_th" level="10" />
+                <field field_ref="lambda_th" level="10" />
+                <field field_ref="q_th" level="10" />
+                <field field_ref="a_th" level="10" />
+                <field field_ref="s_th" level="10" />
+                <field field_ref="s_env" level="10" />
+                <field field_ref="sigma_th" level="10" />
+                <field field_ref="sigma_env" level="10" />
+                <field field_ref="d_th" level="10" />
+                <field field_ref="dqthe" level="10" />
+                <field field_ref="dtajs" level="10" />
+                <field field_ref="dqajs" level="10" />
+                <field field_ref="dtswr" level="10" />
+                <field field_ref="dtsw0" level="10" />
+                <field field_ref="dtlwr" level="10" />
+                <field field_ref="dtlw0" level="10" />
+                <field field_ref="dtec" level="10" />
+                <field field_ref="duvdf" level="10" />
+                <field field_ref="dvvdf" level="10" />
+                <field field_ref="duoro" level="10" />
+                <field field_ref="dvoro" level="10" />
+                <field field_ref="dulif" level="10" />
+                <field field_ref="dvlif" level="10" />
+                <field field_ref="du_gwd_hines" level="10" />
+                <field field_ref="dv_gwd_hines" level="10" />
+                <field field_ref="du_gwd_front" level="10" />
+                <field field_ref="dv_gwd_front" level="10" />
+                <field field_ref="east_gwstress" level="10" />
+                <field field_ref="west_gwstress" level="10" />
+                <field field_ref="dtoro" level="10" />
+                <field field_ref="dtlif" level="10" />
+                <field field_ref="dthin" level="10" />
+                <field field_ref="rsu" level="10" />
+                <field field_ref="rsd" level="10" />
+                <field field_ref="rlu" level="10" />
+                <field field_ref="rld" level="10" />
+                <field field_ref="rsucs" level="10" />
+                <field field_ref="rsdcs" level="10" />
+                <field field_ref="rlucs" level="10" />
+                <field field_ref="rldcs" level="10" />
+                <field field_ref="tnt" level="10" />
+                <field field_ref="tntc" level="10" />
+                <field field_ref="tntr" level="10" />
+                <field field_ref="tntscpbl" level="10" />
+                <field field_ref="tnhus" level="10" />
+                <field field_ref="tnhusc" level="10" />
+                <field field_ref="tnhusscpbl" level="10" />
+                <field field_ref="evu" level="10" />
+                <field field_ref="h2o" level="10" />
+                <field field_ref="mcd" level="10" />
+                <field field_ref="dmc" level="10" />
+                <field field_ref="ref_liq" name="re_liquid" level="0" />
+                <field field_ref="ref_ice" name="re_ice" level="0" />
+                <field field_ref="rsu4co2" level="10" />
+                <field field_ref="rlu4co2" level="10" />
+                <field field_ref="rsucs4co2" level="10" />
+                <field field_ref="rlucs4co2" level="10" />
+                <field field_ref="rsd4co2" level="10" />
+                <field field_ref="rld4co2" level="10" />
+                <field field_ref="rsdcs4co2" level="10" />
+                <field field_ref="rldcs4co2" level="10" />
+            </field_group>
+
+            <!-- VARS 3D -->
+            <field_group operation="average" freq_op="1ts" grid_ref="grid_glo_spectband">
+                <field field_ref="solbnd" level="10" />
+            </field_group>
+
+        </file>
+    </file_group>
+</file_definition>
Index: LMDZ6/branches/Ocean_skin/DefLists/file_def_histhf_lmdz.xml
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/file_def_histhf_lmdz.xml	(revision 3673)
+++ LMDZ6/branches/Ocean_skin/DefLists/file_def_histhf_lmdz.xml	(revision 3798)
@@ -33,4 +33,5 @@
                 <field field_ref="gusts" level="10" />
                 <field field_ref="wind10m" level="10" />
+                <field field_ref="wind100m" level="10" />
                 <field field_ref="wind10max" level="10" operation="maximum" />
                 <field field_ref="sicf" level="10" />
Index: LMDZ6/branches/Ocean_skin/DefLists/file_def_histmthCOSP_lmdz.xml
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/file_def_histmthCOSP_lmdz.xml	(revision 3673)
+++ LMDZ6/branches/Ocean_skin/DefLists/file_def_histmthCOSP_lmdz.xml	(revision 3798)
@@ -1,5 +1,5 @@
 <file_definition>
      <file_group id="defile">
-        <file id="histmthCOSP" name="histmthCOSP" output_freq="1mo" output_level="_AUTO_"  enabled="_AUTO_" compression_level="0">
+        <file id="histmthCOSP" name="histmthCOSP" output_freq="1mo" output_level="_AUTO_"  enabled="_AUTO_" compression_level="2">
 
             <field_group group_ref="remap_1mo">
@@ -11,8 +11,4 @@
                 <field field_ref="clhcalipso"         level="5" grid_ref="grid_out"/>
                 <field field_ref="cltcalipso"         level="5" grid_ref="grid_out"/>
-                <field field_ref="pcllcalipso"         level="5" grid_ref="grid_out"/>
-                <field field_ref="pclmcalipso"         level="5" grid_ref="grid_out"/>
-                <field field_ref="pclhcalipso"         level="5" grid_ref="grid_out"/>
-                <field field_ref="pcltcalipso"         level="5" grid_ref="grid_out"/>
                 <field field_ref="cllcalipsoice"         level="5" grid_ref="grid_out"/>
                 <field field_ref="clmcalipsoice"         level="5" grid_ref="grid_out"/>
Index: LMDZ6/branches/Ocean_skin/DefLists/file_def_histmthCOSPv2_lmdz.xml
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/file_def_histmthCOSPv2_lmdz.xml	(revision 3673)
+++ LMDZ6/branches/Ocean_skin/DefLists/file_def_histmthCOSPv2_lmdz.xml	(revision 3798)
@@ -1,5 +1,5 @@
 <file_definition>
      <file_group id="defile">
-        <file id="histmthCOSP" name="histmthCOSP" output_freq="1mo" output_level="1"  enabled=".TRUE." compression_level="4">
+        <file id="histmthCOSP" name="histmthCOSP" output_freq="1mo" output_level="1"  enabled=".TRUE." compression_level="2">
 
             <!-- VARS LIDAR -->
@@ -104,19 +104,19 @@
             <field_group operation="average" freq_op="3h" detect_missing_value=".true.">
 <!--                <field field_ref="sunlit" level="1" /> -->
-                <field field_ref="clisccp"             level="1" />
-                <field field_ref="boxtauisccp"         level="1" />
-                <field field_ref="boxptopisccp"        level="1" />
-                <field field_ref="cltisccp"            level="1" />
-                <field field_ref="pctisccp"            level="1" />
-                <field field_ref="tauisccp"            level="1" /> 
-                <field field_ref="albisccp"            level="1" />
-                <field field_ref="meantbisccp"         level="1" />
-                <field field_ref="meantbclrisccp"      level="1" />
+                <field field_ref="clisccp"             level="10" />
+                <field field_ref="boxtauisccp"         level="10" />
+                <field field_ref="boxptopisccp"        level="10" />
+                <field field_ref="cltisccp"            level="10" />
+                <field field_ref="pctisccp"            level="10" />
+                <field field_ref="tauisccp"            level="10" /> 
+                <field field_ref="albisccp"            level="10" />
+                <field field_ref="meantbisccp"         level="10" />
+                <field field_ref="meantbclrisccp"      level="10" />
             </field_group>
              <!-- VARS MISR -->
             <field_group operation="average" freq_op="3h" detect_missing_value=".true.">
-                <field field_ref="misr_fq"             level="1" />
+                <field field_ref="misr_fq"             level="10" />
                 <field field_ref="misr_meanztop"       level="10" />
-                <field field_ref="misr_cldarea"        level="1" />
+                <field field_ref="misr_cldarea"        level="10" />
             </field_group>
              <!-- VARS MODIS -->
Index: LMDZ6/branches/Ocean_skin/DefLists/file_def_histmth_lmdz.xml
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/file_def_histmth_lmdz.xml	(revision 3673)
+++ LMDZ6/branches/Ocean_skin/DefLists/file_def_histmth_lmdz.xml	(revision 3798)
@@ -2,5 +2,5 @@
 <file_definition>
         <file_group id="defile">
-        <file id="histmth" name="histmth" output_freq="1mo" output_level="_AUTO_"  enabled="_AUTO_" compression_level="2">
+        <file id="histmth" name="histmth" output_freq="1mo" output_level="1"  enabled=".true." compression_level="0">
 
             <!-- VARS 1D -->
Index: LMDZ6/branches/Ocean_skin/DefLists/gcm.def
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/gcm.def	(revision 3673)
+++ LMDZ6/branches/Ocean_skin/DefLists/gcm.def	(revision 3798)
@@ -1,5 +1,5 @@
 ## $Id: gcm.def 1403 2010-07-01 09:02:53Z fairhead $
 ## nombre de pas par jour (multiple de iperiod) ( ici pour  dt = 1 min )      
-day_step=480
+day_step=240
 ## periode pour le pas Matsuno (en pas)
 iperiod=5
@@ -15,10 +15,11 @@
 niterh=2
 ## temps de dissipation des plus petites long.d ondes pour u,v (gradiv)  
-tetagdiv=5400.
+tetagdiv=3600.
 ## temps de dissipation des plus petites long.d ondes pour u,v(nxgradrot)
-tetagrot=5400.
+tetagrot=21600.
 ## temps de dissipation des plus petites long.d ondes pour  h ( divgrad) 
-tetatemp=5400.
+tetatemp=10800.
 ## coefficient pour gamdissip                                            
+ngroup = 4
 coefdis=0.
 ## choix du shema d'integration temporelle (Matsuno:y ou Matsuno-leapfrog:n) 
@@ -34,11 +35,5 @@
 read_start=y
 ## periode de la physique (en pas dynamiques, n'a de sens que si iflag_phys=1)                                       
-iphysiq=10
-##  Avec ou sans strato
-ok_strato=y 
-#  Couche eponge dans les couches de pression plus faible que 100 fois la pression de la derniere couche
-iflag_top_bound=2
-#  Coefficient pour la couche eponge (valeur derniere couche)
-tau_top_bound=5.e-5
+iphysiq=5
 ## longitude en degres du centre du zoom                                 
 clon=0.
Index: LMDZ6/branches/Ocean_skin/DefLists/inlandsis.def
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/inlandsis.def	(revision 3798)
+++ LMDZ6/branches/Ocean_skin/DefLists/inlandsis.def	(revision 3798)
@@ -0,0 +1,33 @@
+#=================================================
+# INLANDSIS.DEF
+# 
+# DEF file for INLANDSIS configuration
+#=================================================
+
+# To activate inlandsis, landice_opt=2 (D=0)
+#--------------------------------------
+landice_opt=0
+
+# number of subtimesteps (D=1)
+#---------------------------
+n_dtis=1
+
+# snow module (D=y)
+#----------------
+SnoMod=y
+
+# Blowing snow (D=n)
+#-----------------
+BloMod=n
+
+# Output ascii file (D=n)
+#----------------------
+ok_outfor=n
+
+# surface temperature calculation option (D=0)
+#----------------------------------------
+iflag_tsurf_inlandsis=0
+
+# albedo sensitivity to solar zenith angle (D=0)
+#---------------------------------------------
+iflag_albzenith=0
Index: LMDZ6/branches/Ocean_skin/DefLists/iodef.xml
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/iodef.xml	(revision 3673)
+++ LMDZ6/branches/Ocean_skin/DefLists/iodef.xml	(revision 3798)
@@ -1,22 +1,21 @@
-<?xml version="1.0"?>
+<?xml version = "1.0"?>
 <simulation> 
-	
-	<context  id="xios">
-		<variable_definition>
-       		<variable_group id="buffer">
-            	buffer_size = 85000000
-            	buffer_server_factor_size = 2 
-         	</variable_group>
+  <context  id = "xios">
+    <variable_definition>
+      <variable_group id = "buffer">
+        buffer_size = 85000000
+        buffer_server_factor_size = 2 
+      </variable_group>
 
-        	<variable_group id="parameters" >
-        		<variable id="using_server" type="bool">true</variable>
-        		<variable id="info_level" type="int">0</variable>
-        	</variable_group>
-		</variable_definition>
-	</context>
-	
+      <variable_group id = "parameters" >
+        <variable id = "using_server" type = "bool">false</variable>
+        <variable id = "info_level" type = "int">0</variable>
+      </variable_group>
 
-	<context id="LMDZ" src="./context_lmdz.xml"/>
+      <variable id = "print_file" type = "bool">true</variable>
+    </variable_definition>
 
+  </context>
 
+  <context id = "LMDZ" src = "./context_lmdz.xml"/>
 </simulation>
Index: LMDZ6/branches/Ocean_skin/DefLists/physiq.def_NPv6.1
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/physiq.def_NPv6.1	(revision 3673)
+++ LMDZ6/branches/Ocean_skin/DefLists/physiq.def_NPv6.1	(revision 3798)
@@ -169,5 +169,5 @@
 iflag_albedo=1
 
-          # Frequence appel rayonnement. Nombre appels par jour
+          # Frequence appel convection. Nombre appels par jour
 nbapp_cv=48
 
@@ -557,4 +557,4 @@
 
 cdnc_min=10.
-
-
+flag_ocean_skin=3
+activate_ocean_skin = 1
Index: LMDZ6/branches/Ocean_skin/DefLists/run.def
===================================================================
--- LMDZ6/branches/Ocean_skin/DefLists/run.def	(revision 3673)
+++ LMDZ6/branches/Ocean_skin/DefLists/run.def	(revision 3798)
@@ -4,12 +4,8 @@
 INCLUDEDEF=gcm.def
 INCLUDEDEF=vert.def
-INCLUDEDEF=orchidee.def
 INCLUDEDEF=config.def
-INCLUDEDEF=reprobus.def
-INCLUDEDEF=guide.def
-INCLUDEDEF=inca.def
 ## Type de calendrier utilise
 ## valeur possible: earth_360d (defaut), earth_365d, earth_366d
-calend= gregorian
+calend= earth_365d
 ## Jour de l etat initial ( = 350  si 20 Decembre ,par expl. ,comme ici )
 dayref= 1
@@ -17,5 +13,5 @@
 anneeref= 1979
 ## Nombre de jours d integration
-nday= 365
+nday= 28
 ## Remise a zero de la date initiale
 raz_date= 0
@@ -44,5 +40,5 @@
 ### VEGET= y si ORCHIDEE, =n si bucket
 ### VEGET is modified automatically by the lmdz.driver 
-VEGET= y
+VEGET= betaclim
 ### Choice of tracers type_trac=lmdz/inca/repr
 ### type_trac is set automatically by the lmdz.driver
