From: MAYUR on
I have many fits file with the extension .lc (denoting light curves).

Running one of them with fitsinfo its giving:

FileSize: 60480
Contents: {'Primary' 'Binary Table' 'Binary Table' 'Binary Table'}
PrimaryData: [1x1 struct]
BinaryTable: [1x3 struct]

And by running fitsread:
x = fitsread('sw00100319000b_1chan_1s.lc','bintable')

ans =

[43x1 double] [43x1 double] [43x1 double] [43x1 double] [43x1 double]

which is accurate, but the size(x) is only giving 1 5. Which means, its not reading the whole data, just the table header. Can somebody tell me how to read data from the file.

If you need the file, i have uploaded it on 2shared.com: http://www.2shared.com/file/As6YYZU8/sw00100319000b_1chan_64ms.html

just click on Save file to your PC in the down-right corner.

Please help.
From: us on
"MAYUR " <mayur.ec.iitkgp_removethis_(a)gmail.com> wrote in message <i0ngdn$svb$1(a)fred.mathworks.com>...
> I have many fits file with the extension .lc (denoting light curves).
>
> Running one of them with fitsinfo its giving:
>
> FileSize: 60480
> Contents: {'Primary' 'Binary Table' 'Binary Table' 'Binary Table'}
> PrimaryData: [1x1 struct]
> BinaryTable: [1x3 struct]
>
> And by running fitsread:
> x = fitsread('sw00100319000b_1chan_1s.lc','bintable')
>
> ans =
>
> [43x1 double] [43x1 double] [43x1 double] [43x1 double] [43x1 double]
>
> which is accurate, but the size(x) is only giving 1 5. Which means, its not reading the whole data, just the table header. Can somebody tell me how to read data from the file.

nedless to say: the size IS correct...
X is a CELL of size 1 x 5, ie, five CELL members, each of which with a size of 43 x 1...
to see what happens, do this

x{1}
cat(2,x{:})

us
From: MAYUR on

> nedless to say: the size IS correct...
> X is a CELL of size 1 x 5, ie, five CELL members, each of which with a size of 43 x 1...
> to see what happens, do this
>
> x{1}
> cat(2,x{:})
>
> us

the data is in double format.. But it is showing it with less precision. Can you please tell me how can i increase the precesion.

thanks
From: quasistar on
My data is in Double format. But matlab is showing it with less precision. Can you please tell me how can i increase its precision level.
From: us on
"MAYUR " <mayur.ec.iitkgp_removethis_(a)gmail.com> wrote in message <i0nhn4$l6u$1(a)fred.mathworks.com>...
>
> > nedless to say: the size IS correct...
> > X is a CELL of size 1 x 5, ie, five CELL members, each of which with a size of 43 x 1...
> > to see what happens, do this
> >
> > x{1}
> > cat(2,x{:})
> >
> > us
>
> the data is in double format.. But it is showing it with less precision. Can you please tell me how can i increase the precesion.
>
> thanks

this is just a matter of how the data is being displayed in the command window...
tyr this

r=rand(1,3);
format short g
r
format long
r

us