py21cmfast.outputs.PerturbedField.save¶
- PerturbedField.save(fname=None, direc='.', h5_group=None)¶
Save the box to disk.
In detail, this just calls write, but changes the default directory to the local directory. This is more user-friendly, while
write()
is for automatic use under-the-hood.- Parameters:
fname (str, optional) – The filename to write. Can be an absolute or relative path. If relative, by default it is relative to the current directory (otherwise relative to
direc
). By default, the filename is auto-generated as unique to the set of parameters that go into producing the data.direc (str, optional) – The directory into which to write the data. By default the current directory. Ignored if
fname
is an absolute path.