Skip to content

friedc/NPY-for-Fortran-barebone

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPY for Fortran (barebone)

Note: This is a fork that keeps only the bare minimum of functionality. Compared to the original "NPY for Fortran" the following functionality is removed:

  • data types other than integer(8) or real(8)
  • dimensions other than 1 (vector) or 2 (matrix)
  • ability to run on big endian machines
  • generation of .npz files

The documentation given below is retained from the original project.


This Fortran module allows to save numerical Fortran arrays in Numpy's .npy format. Currently supported are:

1. integer(8)
2. real(8)

*.npy files

Saving an array into a .npy-file is simply done by calling:

call save_npy("filename.npy", array)

About

A FORTRAN module to write Numpy's *.npy and *.npz files (barebone)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Fortran 59.2%
  • CMake 27.5%
  • Python 13.3%