narray icon indicating copy to clipboard operation
narray copied to clipboard

Random access file format compatible with NArray?

Open maasha opened this issue 13 years ago • 2 comments

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.

maasha avatar Dec 11 '12 17:12 maasha

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.

masa16 avatar Dec 12 '12 05:12 masa16

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

maasha avatar Dec 12 '12 06:12 maasha