Databases Reference
In-Depth Information
840000., 850000., 860000., 870000., 880000., 890000.,
900000., 910000., 920000., 930000., 940000., 950000.,
960000., 970000., 980000., 990000.])
We could also use dictionary-style access using the name we supplied when creating the
scale:
>>> dset . dims [ 0 ][ "Simulation X (North) axis" ]
<HDF5 dataset "scale_x": shape (100,), type "<f8">
There are a couple of other dictionary-like methods too, including items , keys , and
values .
Finally, you can label each axis of the dataset. This is the correct place to record which
axis is x , y , z , etc.:
>>> dset . dims [ 0 ] . label = "x"
>>> dset . dims [ 1 ] . label = "y"
>>> dset . dims [ 2 ] . label = "z"
Now that we've covered all the basic constructs, it's time to talk about one of the thorniest
issues when programming with HDF5: concurrency.
Search WWH ::




Custom Search