Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random access file format compatible with NArray? #25

Open
maasha opened this issue Dec 11, 2012 · 2 comments
Open

Random access file format compatible with NArray? #25

maasha opened this issue Dec 11, 2012 · 2 comments

Comments

@maasha
Copy link

maasha commented Dec 11, 2012

Perl PDL have bindings to the FITs format so you can random access data matrices from disk. Do NArray support anything similar?

[Edit]

OK, so I found some examples (http://narray.rubyforge.org/demo/image.html.en) but I cant really find any documentation on NImage?

Basically I am interested in reading and writing 2d NArrays to disk efficiently.

@masa16
Copy link
Owner

masa16 commented Dec 12, 2012

I have a plan to implement "file-mapped NArray" using mmap for UNIX and MapViewOfFile for Windows.
(https://github.com/masa16/narray/blob/devel/ext/bytedata.c)
I wonder it is effective for FITS files in Astronomy, because it requires endian conversion.

NImage is not currently maintained.

@maasha
Copy link
Author

maasha commented Dec 12, 2012

That sounds like a great plan. So what is the state of this code? How can I help test it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants