| Thread Tools | Search this thread |
|---|
jaeger0
| November 4, 2009 12:24 AM PST reading file | ||||
I have the following file format to read in: PIXEL_SIZE = 1 mm THICKNESS_SLICES = 1 mm NUMBER_OF_SLICES = 101 IMAGE_DIMENSIONS = 57X57 pixels SLICES;SLICE Nr 1 0 0 1 1 0 0 1 0 0 0 0 0 0 0 1 1.. So I opened the file with OPEN(UNIT=file_id, FILE=filename, ACTION='READ', iostat=iErr) I read out the image dimenstions, with read(file_id,*, iostat=iErr) line,dummy,Vimage%pixel_spacing(1),dummy2 ... Finally I would like to read out the image, as a sequence of 57X57 0,1 however, the normal rad call reads an entire line, not a single sign. How can I manage this. I think the read/write IO and formatting in Fortran is somewhat complicated !! | |||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
| 8458 users have contributed to 31570 threads and 100530 posts to date. |
|---|
| In the past 24 hours, we have 16 new thread(s) 129 new posts(s), and 150 new user(s). In the past 3 days, the most popular thread for everyone has been gemm(A,A,A) like possible? The most posts were made to gemm(A,A,A) like possible? The post with the most views is Quoting - rase if (k.eq.0 Please welcome our newest member soundmyth |