Good answer, hope everything is clear now, Kaspar.
Just a note: there is no default for the object_id. If you don't give this argument, it's not used, i.e. you either get all contents of the file, or all objects of the specified type. For instance, use nlread("file.nc", TotalEnergy) to get all TotalEnergy objects in the file (in a list).
Note on my modification of the original post above: Using [ 0 ] without spaces causes the Forum rendering engine to display
To get [0], use [nobbc][0][/nobbc], or use spaces.