!----------------------------------------------------------------------
!
!  File: PMIP2_table_O_SE
!
!  CMOR table definition for SEASONAL OCEAN output from PMIP2
!  experiments.
!
!----------------------------------------------------------------------

!----------------------------------------
!
!   HEADER INFORMATION
!
!----------------------------------------

cmor_version: 0.96
cf_version:   1.0
project_id:   PMIP2
table_id:     Table O_SE
table_date:   10 March 2005

expt_id_ok:   'PMIP2_0K_OA Pre-industrial Ocean-Atmosphere PMIP2 experiment'
expt_id_ok:   'PMIP2_0K_OAV Pre-industrial Ocean-Atmosphere-Vegetation PMIP2 experiment'
expt_id_ok:   'PMIP2_6K_OA Mid-Holocene 6k Ocean-Atmosphere PMIP2 experiment'
expt_id_ok:   'PMIP2_6K_OAV Mid-Holocene 6k Ocean-Atmosphere-Vegetation PMIP2 experiment'
expt_id_ok:   'PMIP2_21K_OA Last Glacial Maximum Ocean-Atmosphere PMIP2 experiment'
expt_id_ok:   'PMIP2_21K_OAV Last Glacial Maximum Ocean-Atmosphere-Vegetation PMIP2 experiment'

magic_number: -1          ! used to check whether this file has been
                          !   altered from the official version.
                          !   should be set to number of non-blank
                          !   characters in file.
approx_interval: 30.0
missing_value: 1.0E20


! Subroutine argument control

subroutine_entry: cmor_axis
required: table axis_name units length coord_vals cell_bounds
ignored: interval

subroutine_entry: cmor_variable
required: table table_entry units axis_ids
indeterminate: missing_value
optional: tolerance original_name history comment
ignored: positive

subroutine_entry: cmor_write
required:  var_id data
indeterminate: ntimes_passed time_vals time_bnds store_with
optional: file_suffix


!----------------------------------------
!
!   AXIS DEFINITIONS
!
!----------------------------------------

axis_entry:       longitude
standard_name:    longitude
units:            degrees_east
axis:             X
long_name:        longitude
out_name:         lon
valid_min:        0.0
valid_max:        360.0

axis_entry:       latitude
standard_name:    latitude
units:            degrees_north
axis:             Y
long_name:        latitude
out_name:         lat
valid_min:        -90.0
valid_max:        90.0

axis_entry:       depth
optional:         cell_bounds
standard_name:    depth
units:            m
axis:             Z
positive:         down
long_name:        depth
out_name:         depth
valid_min:        0.0
valid_max:        8000.0
requested:           0.0   10.0   20.0   30.0   50.0   75.0  100.0  125.0
requested:         150.0  200.0  250.0  300.0  400.0  500.0  600.0  700.0
requested:         800.0  900.0 1000.0 1100.0 1200.0 1300.0 1400.0 1500.0
requested:        1750.0 2000.0 2500.0 3000.0 3500.0 4000.0 4500.0 5000.0
requested:        5500.0

axis_entry:       region
ignored:          units cell_bounds
standard_name:    region
long_name:        Ocean Basin
coords_attrib:    geo_region
type:             character
requested:        atlantic_ocean indian_ocean pacific_ocean global_ocean

axis_entry:       time
optional:         interval length
indeterminate:    coord_vals cell_bounds
standard_name:    time
units:            days since ?
axis:             T
long_name:        time

axis_entry:       temp20
ignored:          cell_bounds
standard_name:    sea_water_temperature
units:            degree_Celsius
long_name:        temperature
out_name:         temperature
value:            20.0

axis_entry:       depth300
standard_name:    depth
units:            m
axis:             Z
positive:         down
long_name:        depth
out_name:         depth
value:            150.0
bounds_values:    0.0 300.0


!----------------------------------------
!
!   VARIABLE DEFINITIONS
!
!----------------------------------------

! Mandatory variables

variable_entry:  sos
standard_name:   sea_surface_salinity
units:           1.0E-3
cell_methods:    time: mean
long_name:       Surface Salinity
dimensions:      longitude latitude time

variable_entry:  tos
standard_name:   sea_surface_temperature
units:           K
cell_methods:    time: mean
long_name:       Sea Surface Temperature
dimensions:      longitude latitude time
valid_min:       265.0
valid_max:       320.0
ok_min_mean_abs: 278.0
ok_max_mean_abs: 298.0

variable_entry:  zmlo
standard_name:   ocean_mixed_layer_thickness
units:           m
cell_methods:    time: mean
long_name:       Mixed Layer Thickness
dimensions:      longitude latitude time

variable_entry:  stfbarot
standard_name:   ocean_barotropic_streamfunction
units:           m3 s-1
cell_methods:    time: mean
long_name:       Ocean Barotropic Streamfunction
dimensions:      longitude latitude time

variable_entry:  zos
standard_name:   sea_surface_height_above_geoid
units:           m
cell_methods:    time: mean
long_name:       Sea Surface Elevation
dimensions:      longitude latitude time
valid_min:       -100.0
valid_max:       100.0
ok_min_mean_abs: -10.0
ok_max_mean_abs: 20.0

variable_entry:  uos
standard_name:   sea_surface_eastward_sea_water_velocity
units:           m s-1
cell_methods:    time: mean
long_name:       Sea Surface Eastward Sea Water Velocity
dimensions:      longitude latitude time

variable_entry:  vos
standard_name:   sea_surface_northward_sea_water_velocity
units:           m s-1
cell_methods:    time: mean
long_name:       Sea Surface Northward Sea Water Velocity
dimensions:      longitude latitude time

variable_entry:  hfo
standard_name:   surface_downward_heat_flux_in_sea_water
units:           W m-2
cell_methods:    time: mean
long_name:       Heat Flux Into Ocean
dimensions:      longitude latitude time

variable_entry:  wfo
standard_name:   water_flux_into_ocean
units:           kg m-2 s-1
cell_methods:    time: mean
long_name:       Water Flux Into Ocean
dimensions:      longitude latitude time

variable_entry:  tauu
standard_name:   surface_downward_eastward_stress
units:           Pa
cell_methods:    time: mean
long_name:       Eastward Momentum Flux
dimensions:      longitude latitude time
positive:        down

variable_entry:  tauv
standard_name:   surface_downward_northward_stress
units:           Pa
cell_methods:    time: mean
long_name:       Northward Momentum Flux
dimensions:      longitude latitude time
positive:        down

variable_entry:  thetao
standard_name:   sea_water_potential_temperature
units:           K
cell_methods:    time: mean
long_name:       Potential Temperature
dimensions:      longitude latitude depth time
valid_min:       265.0
valid_max:       320.0
ok_min_mean_abs: 278.0
ok_max_mean_abs: 298.0

variable_entry:  so
standard_name:   sea_water_salinity
units:           1.0E-3
cell_methods:    time: mean
long_name:       Salinity
dimensions:      longitude latitude depth time

variable_entry:  uo
standard_name:   eastward_sea_water_velocity
units:           m s-1
cell_methods:    time: mean
long_name:       Eastward Sea Water Velocity
dimensions:      longitude latitude depth time

variable_entry:  vo
standard_name:   northward_sea_water_velocity
units:           m s-1
cell_methods:    time: mean
long_name:       Northward Sea Water Velocity
dimensions:      longitude latitude depth time

variable_entry:  wo
standard_name:   upward_sea_water_velocity
units:           m s-1
cell_methods:    time: mean
long_name:       Upward Sea Water Velocity
dimensions:      longitude latitude depth time

variable_entry:  stfmmc
standard_name:   ocean_meridional_overturning_streamfunction
units:           m3 s-1
cell_methods:    longitude: mean  time: mean
long_name:       Meridional Overturning Streamfunction
dimensions:      latitude depth region time

variable_entry:  hfogo
standard_name:   northward_ocean_heat_transport
units:           W
cell_methods:    time: mean  longitude: sum
long_name:       Northward Ocean Heat Transport
dimensions:      latitude region time
valid_min:       -4.0E16
valid_max:       4.0E16
ok_min_mean_abs: 0.0
ok_max_mean_abs: 4.0E15

variable_entry:  sltov
standard_name:   northward_ocean_salt_transport
units:           kg s-1
cell_methods:    time: mean
long_name:       Northward Total Salt Transport by Ocean
dimensions:      latitude region time


! Recommended variables

! Note: we temporarily keep the old definition of ziso20
! and hcont300 around, just in case...
!
!variable_entry:  ziso20
!standard_name:   depth_of_20deg_isotherm
!units:           m
!cell_methods:    time: mean
!long_name:       Depth Of 20 degree_Celsius Isotherm
!dimensions:      longitude latitude time
!
!variable_entry:  hcont300
!standard_name:   heat_content_to_300m
!units:           m K
!cell_methods:    time: mean
!long_name:       Heat Content Of Upper 300m
!dimensions:      longitude latitude time

variable_entry:  ziso20
standard_name:   depth
units:           m
cell_methods:    time: mean
long_name:       Depth Of 20 deg. C Isotherm
dimensions:      longitude latitude time temp20

variable_entry:  hcont300
standard_name:   heat_content_of_ocean_layer
units:           m K
cell_methods:    time: mean
long_name:       Heat Content Of Upper 300 m
dimensions:      longitude latitude time depth300

variable_entry:  thetaozm
standard_name:   sea_water_potential_temperature
units:           K
cell_methods:    longitude: mean  time: mean
long_name:       Potential Temperature
dimensions:      latitude depth region time

variable_entry:  sozm
standard_name:   sea_water_salinity
units:           1.0E-3
cell_methods:    longitude: mean  time: mean
long_name:       Salinity
dimensions:      latitude depth region time


! Optional variables

variable_entry:  mpuoto
standard_name:   product_of_eastward_current_and_temperature
units:           m s-1 K
cell_methods:    time: mean
long_name:       Mean product of eastward current and temperature
dimensions:      longitude latitude depth time

variable_entry:  mpvoto
standard_name:   product_of_northward_current_and_temperature
units:           m s-1 K
cell_methods:    time: mean
long_name:       Mean product of northward current and temperature
dimensions:      longitude latitude depth time

variable_entry:  mpuoso
standard_name:   product_of_eastward_current_and_salinity
units:           m s-1
cell_methods:    time: mean
long_name:       Mean product of eastward current and salinity
dimensions:      longitude latitude depth time

variable_entry:  mpvoso
standard_name:   product_of_eastward_current_and_temperature
units:           m s-1
cell_methods:    time: mean
long_name:       Mean product of northward current and salinity
dimensions:      longitude latitude depth time

variable_entry:  mpuoeito
standard_name:   product_of_eastward_eiv_current_and_temperature
units:           m s-1 K
cell_methods:    time: mean
long_name:       Mean product of eastward EIV current and temperature
dimensions:      longitude latitude depth time

variable_entry:  mpvoeito
standard_name:   product_of_northward_eiv_current_and_temperature
units:           m s-1 K
cell_methods:    time: mean
long_name:       Mean product of northward EIV current and temperature
dimensions:      longitude latitude depth time

variable_entry:  mpuoeiso
standard_name:   product_of_eastward_eiv_current_and_salinity
units:           m s-1
cell_methods:    time: mean
long_name:       Mean product of eastward EIV current and salinity
dimensions:      longitude latitude depth time

variable_entry:  mpvoeiso
standard_name:   product_of_northward_eiv_current_and_salinity
units:           m s-1
cell_methods:    time: mean
long_name:       Mean product of northward EIV current and salinity
dimensions:      longitude latitude depth time
