Input and Output

The following tables show I/O routines provided by NLCPy.

NumPy binary files(NPY, NPZ)

nlcpy.load

Loads arrays or pickled objects from .npy, .npz or pickled files.

nlcpy.save

Saves an array to a binary file in NumPy .npy format.

nlcpy.savez

Saves several arrays into a single file in uncompressed .npz format.

nlcpy.savez_compressed

Saves several arrays into a single file in compressed .npz format.

Text files

nlcpy.loadtxt

Loads data from a text file.

nlcpy.savetxt

Saves an array to a text file.

Raw binary files

nlcpy.fromfile

Constructs an array from data in a text or binary file.