#[]
#dimensions:    time, y1, x1
#units:         
#long_name:     
#data:          
#factor:        

# setup for code generator
[VARSET]
# prefix of the generated module
name:     glint_mbal
# f90 type containing all necessary data
datatype: glint_instance
# module where type is defined
datamod:  glint_type

[x0]
dimensions:    x0
units:         meter
long_name:     Cartesian x-coordinate, velocity grid
standard_name: projection_x_coordinate
dimlen:        global_ewn-1

[y0]
dimensions:    y0
units:         meter
long_name:     Cartesian y-coordinate, velocity grid
standard_name: projection_y_coordinate
dimlen:        global_nsn-1

[x1]
dimensions:    x1
units:         meter
long_name:     Cartesian x-coordinate
standard_name: projection_x_coordinate
dimlen:        global_ewn

[y1]
dimensions:    y1
units:         meter
long_name:     Cartesian y-coordinate
standard_name: projection_y_coordinate
dimlen:        global_nsn

# --- MJH  8/29/2014 -----------------------------------------------
# Because glint is calling glide_nc_fillall() these glide dimension variables
# need to be included here even though they are not used by glint, otherwise
# a fatal error occurs (at least on some builds).
# A more appropriate fix might be to create a glint_nc_fillall() that would not
# try to write these variables to the output file.
[level]
dimensions:    level
units:         1
long_name:     sigma layers
standard_name: land_ice_sigma_coordinate
formula_terms: sigma: level topo: topg thick: thk
dimlen:        model%general%upn

[staglevel]
dimensions:    staglevel
units:         1
long_name:     stag sigma layers
standard_name: land_ice_stag_sigma_coordinate
positive:      down
dimlen:        model%general%upn-1

[stagwbndlevel]
dimensions:    stagwbndlevel
units:         1
long_name:     stag sigma layers with boundaries
standard_name: land_ice_stag_sigma_coordinate_with_bnd
positive:      down
dimlen:        model%general%upn+1

[lithoz]
dimensions:    lithoz
units:         meter
long_name:     vertical coordinate of lithosphere layer
dimlen:        model%lithot%nlayer
# ------------------------------------------------------------------

[instant_snowd]
dimensions:    time, y1, x1
units:         meter
long_name:     snow depth
data:          data%mbal_accum%snowd
coordinates:   lon lat

[instant_siced]
dimensions:    time, y1, x1
units:         meter
long_name:     superimposed ice depth
data:          data%mbal_accum%siced
coordinates:   lon lat

[instant_acab]
dimensions:    time, y1, x1
units:         meter
long_name:     instantaneous mass-balance
data:          data%mbal_accum%acab
coordinates:   lon lat

[instant_ablt]
dimensions:    time, y1, x1
units:         meter
long_name:     instantaneous ablation
data:          data%mbal_accum%ablt
coordinates:   lon lat

[instant_prcp]
dimensions:    time, y1, x1
units:         meter
long_name:     instantaneous precip
data:          data%mbal_accum%prcp
coordinates:   lon lat

[instant_artm]
dimensions:    time, y1, x1
units:         degC
long_name:     instantaneous air temperature
data:          data%mbal_accum%artm
coordinates:   lon lat

[instant_xwind]
dimensions:    time, y1, x1
units:         m/s
long_name:     instantaneous x-wind 
data:          data%mbal_accum%xwind
coordinates:   lon lat

[instant_ywind]
dimensions:    time, y1, x1
units:         m/s
long_name:     instantaneous y-wind
data:          data%mbal_accum%ywind
coordinates:   lon lat

[instant_humidity]
dimensions:    time, y1, x1
units:         1
long_name:     instantaneous humidity
data:          data%mbal_accum%humidity
coordinates:   lon lat

[instant_swdown]
dimensions:    time, y1, x1
units:         W/m2
long_name:     instantaneous sw down 
data:          data%mbal_accum%swdown
coordinates:   lon lat

[instant_lwdown]
dimensions:    time, y1, x1
units:         W/m2
long_name:     instantaneous lw down
data:          data%mbal_accum%lwdown
coordinates:   lon lat

[instant_psurf]
dimensions:    time, y1, x1
units:         Pa
long_name:     instantaneous surface pressure 
data:          data%mbal_accum%psurf
coordinates:   lon lat
