It works!
Thanks!
Libin Yan
2008-03-05
yanlibin
·¢¼þÈË£º Saji N. Hameed
·¢ËÍʱ¼ä£º 2008-03-05 14:26:31
ÊÕ¼þÈË£º yanlibin
³ËÍ£º ncl-talk
Ö÷Ì⣺ Re: [ncl-talk] hi, i need your help, thank you!
Yes...you are using a sequential write and that is possibly why
you have this issue. If you use fbindirwrite, the file size
should be as you expected.
saji
* yanlibin <yanlibin_at_ieecas.cn > [2008-03-05 14:19:49 +0800]:
> the attached code is a ncl file which convert HDF-EOS file to binary file.
>
> after converting.
> i find the size of binary file is a little bigger than the expected.
> the size is (360*180+4)*95*4, the expected size is 360*180*95*4
> i want to know why it is so?
> who can give me the reason?
>
> thank you!
> best wishes!
>
>
>
> ;**********************************************
> load "/usr/local/lib/ncarg/nclex/gsun/gsn_code.ncl"
> load "/usr/local/lib/ncarg/nclscripts/csm/contributed.ncl"
> begin
>
> fil="modis_08.dat"
> T=asciiread("files",-1,"string")
>
> do i=0,dimsizes(T)-1
>
> cdf_file=addfile(T(i),"r")
> pt1=short2flt(cdf_file- >Cloud_Top_Pressure_Mean_Mean)
> fbinrecwrite(fil,-1,pt1)
> print(i+1)
>
> end do
>
> end
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
--
Saji N. Hameed
APEC Climate Center +82 51 668 7470
National Pension Corporation Busan Building 12F
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 saji_at_apcc21.net
KOREA
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Mar 05 2008 - 01:54:18 MST
This archive was generated by hypermail 2.2.0 : Thu Mar 13 2008 - 17:22:54 MDT