33 name =
"Example-04-python.hdf5",
34 mode = ioda.Engines.BackendCreateModes.Truncate_If_Exists)
59 dim_location = g.vars.create(
'nlocs', ioda.Types.int32, [ num_locs ])
60 dim_location.scales.setIsScale(
'nlocs')
62 dim_channel = g.vars.create(
'ATMS Channel', ioda.Types.int32, [num_channels])
63 dim_channel.scales.setIsScale(
'ATMS Channel')
85 longitude = g.vars.create(
'MetaData/Longitude', ioda.Types.float, [num_locs])
86 longitude.scales.set([dim_location])
87 longitude.atts.create(
'valid_range', ioda.Types.float, [2]).writeVector.float([-180, 180])
88 longitude.atts.create(
'units', ioda.Types.str).writeVector.str([
'degrees_east'])
89 longitude.atts.create(
'long_name', ioda.Types.str).writeVector.str([
'Longitude'])
94 latitude = g.vars.create(
'MetaData/Latitude', ioda.Types.float, scales=[dim_location])
96 latitude.atts.create(
'valid_range', ioda.Types.float, [2]).writeVector.float([-90,90])
97 latitude.atts.create(
'units', ioda.Types.str).writeVector.str([
'degrees_north'])
98 latitude.atts.create(
'long_name', ioda.Types.str).writeVector.str([
'Latitude'])
101 tb = g.vars.create(
'ObsValue/Brightness_Temperature', ioda.Types.float, scales=[dim_location, dim_channel])
102 tb.atts.create(
'valid_range', ioda.Types.float, [2]).writeVector.float([100,500])
103 tb.atts.create(
'units', ioda.Types.str).writeVector.str([
'K'])
104 tb.atts.create(
'long_name', ioda.Types.str).writeVector.str([
'ATMS Observed (Uncorrected) Brightness Temperature'])
129 p1.setFillValue.float(-999)
135 p1.compressWithGZIP()
140 sza = g.vars.create(name=
'ObsValue/Solar Zenith Angle', dtype=ioda.Types.float, scales=[dim_location], params=p1)
IODA_DL Group createFile(const std::string &filename, BackendCreateModes mode, HDF5_Version_Range compat=defaultVersionRange())
Create a ioda::Group backed by an HDF5 file.
Used to specify Variable creation-time properties.