203 | | - dimension variables are lostt |
| 205 | - dimension variables are lost |
| 206 | |
| 207 | |
| 208 | == Preserving metadata at export == |
| 209 | |
| 210 | The stuff that need to be preserved, in addition to the variable data (of variable '''tos''' for example): |
| 211 | - global metadata: |
| 212 | {{{ |
| 213 | // global attributes: |
| 214 | :title = "IPSL model output prepared for IPCC Fourth Assessment SRES A2 experiment" ; |
| 215 | :institution = "IPSL (Institut Pierre Simon Laplace, Paris, France)" ; |
| 216 | :source = "IPSL-CM4_v1 (2003) : atmosphere : LMDZ (IPSL-CM4_IPCC, 96x71x19) ; ocean ORCA2 (ipsl_cm4_v1_8, 2x2L31); sea ice LIM (ipsl_cm4_v" ; |
| 217 | :contact = "Sebastien Denvil, sebastien.denvil@ipsl.jussieu.fr" ; |
| 218 | :project_id = "IPCC Fourth Assessment" ; |
| 219 | :table_id = "Table O1 (13 November 2004)" ; |
| 220 | :experiment_id = "SRES A2 experiment" ; |
| 221 | :realization = 1 ; |
| 222 | :cmor_version = 0.96f ; |
| 223 | :Conventions = "CF-1.0" ; |
| 224 | :history = "YYYY/MM/JJ: data generated; YYYY/MM/JJ+1 data transformed At 16:37:23 on 01/11/2005, CMOR rewrote data to comply with CF standards and IPCC Fourth Assessment requirements" ; |
| 225 | :references = "Dufresne et al, Journal of Climate, 2015, vol XX, p 136" ; |
| 226 | :comment = "Test drive" ; |
| 227 | }}} |
| 228 | - variable metadata |
| 229 | {{{ |
| 230 | tos:standard_name = "sea_surface_temperature" ; |
| 231 | tos:long_name = "Sea Surface Temperature" ; |
| 232 | tos:units = "K" ; |
| 233 | tos:cell_methods = "time: mean (interval: 30 minutes)" ; |
| 234 | tos:_FillValue = 1.e+20f ; |
| 235 | tos:missing_value = 1.e+20f ; |
| 236 | tos:original_name = "sosstsst" ; |
| 237 | tos:original_units = "degC" ; |
| 238 | tos:history = " At 16:37:23 on 01/11/2005: CMOR altered the data in the following ways: added 2.73150E+02 to yield output units; Cyclical dimension was output starting at a different lon;" ; |
| 239 | }}} |
| 240 | - 1D dimension variables of the dimensions of tos (time, lat, lon in the example), and their associated metadata: |
| 241 | {{{ |
| 242 | double lon(lon) ; |
| 243 | lon:standard_name = "longitude" ; |
| 244 | lon:long_name = "longitude" ; |
| 245 | lon:units = "degrees_east" ; |
| 246 | lon:axis = "X" ; |
| 247 | lon:bounds = "lon_bnds" ; |
| 248 | lon:original_units = "degrees_east" ; |
| 249 | double lat(lat) ; |
| 250 | lat:standard_name = "latitude" ; |
| 251 | lat:long_name = "latitude" ; |
| 252 | lat:units = "degrees_north" ; |
| 253 | lat:axis = "Y" ; |
| 254 | lat:bounds = "lat_bnds" ; |
| 255 | lat:original_units = "degrees_north" ; |
| 256 | double time(time) ; |
| 257 | time:standard_name = "time" ; |
| 258 | time:long_name = "time" ; |
| 259 | time:units = "days since 2001-1-1" ; |
| 260 | time:axis = "T" ; |
| 261 | time:calendar = "360_day" ; |
| 262 | time:bounds = "time_bnds" ; |
| 263 | time:original_units = "seconds since 2001-1-1" ; |
| 264 | }}} |
| 265 | - further variables that seem to look like dimension variables? |
| 266 | {{{ |
| 267 | double lat_bnds(lat, bnds) ; |
| 268 | double time_bnds(time, bnds) ; |
| 269 | }}} |
| 270 | |
| 271 | This information should be modeled in json format and given as format parameters to the encode function. |