mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-23 16:59:54 +08:00
re: PR https://github.com/Unidata/netcdf-c/pull/2655 This PR modifies the transient types PR so that all created transient types are given a created unique name (within a group). The form of the name is "_Anonymous<Class>NN". The class is the user-defined type class: Enum, Compound, Opaque, or Vlen. NN is an integer identifier to ensure uniqueness. Additionally, this was applied to DAP/4 anonymous dimensions. This also required some test baseline data changes. The transient test case is modified to verify that the name exists.
41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
netcdf \2004050300_eta_211 {
|
|
dimensions:
|
|
record = UNLIMITED ; // (1 currently)
|
|
_AnonymousDim1 = 1 ;
|
|
_AnonymousDim4 = 4 ;
|
|
_AnonymousDim15 = 15 ;
|
|
variables:
|
|
double reftime(record) ;
|
|
string reftime:units = "hours since 1992-1-1" ;
|
|
string reftime:long_name = "reference time" ;
|
|
double valtime(record) ;
|
|
string valtime:units = "hours since 1992-1-1" ;
|
|
string valtime:long_name = "valid time" ;
|
|
float Z_sfc(_AnonymousDim1, _AnonymousDim4, _AnonymousDim15) ;
|
|
string Z_sfc:navigation = "nav" ;
|
|
float Z_sfc:_FillValue = -9999.006f ;
|
|
string Z_sfc:units = "gp m" ;
|
|
string Z_sfc:long_name = "Geopotential height, gpm" ;
|
|
string Z_sfc:_edu.ucar.maps = "/valtime" ;
|
|
|
|
// global attributes:
|
|
string :Conventions = "NUWG" ;
|
|
string :record = "reftime, valtime" ;
|
|
string :history = "2003-09-25 16:09:26 - created by gribtocdl 1.4 - 12.12.2002" ;
|
|
string :title = "CMC_reg_HGT_SFC_0_ps60km_2003092500_P000.grib" ;
|
|
:version = 0. ;
|
|
string :_enhanced = "" ;
|
|
string :_dap4.ce = "/reftime[0];/valtime[0];/Z_sfc[0][10:3:20][100:114]" ;
|
|
data:
|
|
|
|
reftime = 102840 ;
|
|
|
|
valtime = 102840 ;
|
|
|
|
Z_sfc =
|
|
56, 48, 34, 26, 32, 30, 10, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
94, 76, 60, 34, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
138, 100, 64, 32, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
190, 134, 100, 54, 26, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;
|
|
}
|