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-talkReceived on Tue Mar 04 2008 - 14:00:54 MST
This archive was generated by hypermail 2.2.0 : Wed Mar 05 2008 - 00:45:46 MST