hi, i need your help, thank you!

From: yanlibin <yanlibin_at_nyahnyahspammersnyahnyah>
Date: Wed, 5 Mar 2008 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
Received on Tue Mar 04 2008 - 23:19:49 MST

This archive was generated by hypermail 2.2.0 : Wed Mar 05 2008 - 00:45:46 MST