problem in fwrite

Charles Seman Charles.Seman at NOAA.GOV
Fri Dec 29 10:28:59 EST 2006


Dear Suha,

Please find attached a Unix script and associated input file which we
have used here at GFDL to concatenate GrADS ieee files.  I hope you can
use them for your project.  Please let me know if you have any questions...

Chuck

suha aslam wrote:
> Dear gradsusers,
>
> I have 5 files (1.grd,2.grd....5.grd) of slp for time
> jan90, jan91 ...jan94, written seperately using
> 'fwrite' in a script. Each file has 'only one time'. I
> combined these files as follows,
>
>
>
> cat 1.grd,2.grd....5.grd > result.grd
>
>
>
> When I open this 'result.grd' using a ctl file the
> values are same for all 5 timesteps ie. Grads plot is
> same for all time steps from 1 to 5. Before combining
> the files, different time steps gave different
> contours. After combining the files (result.grd), all
> the plots were same as that of the first time step.
> What is wrong? The ctl file is given below.
>
>
>
> DSET result.dat
> TITLE 1.0 degr grids
> UNDEF -99.90
> XDEF  30  LINEAR  88.5 1.0
> YDEF  28  LINEAR  10.5 1.0
> ZDEF   1 linear 1 1
> TDEF 5 LINEAR jan1990 1YR
> VARS  1
> var 0 99 GRIDDED RAINFALL
> ENDVARS
>
>
>
> Thanks,
> Suha
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>

--

Please note that Charles.Seman at noaa.gov should be considered my NOAA
email address, not cjs at gfdl.noaa.gov.

********************************************************************
 Charles Seman                                Charles.Seman at noaa.gov
 U.S. Department of Commerce / NOAA / OAR
 Geophysical Fluid Dynamics Laboratory         voice: (609) 452-6547
 201 Forrestal Road                              fax: (609) 987-5063
 Princeton, NJ  08540-6649            http://www.gfdl.noaa.gov/~cjs/
********************************************************************

"The contents of this message are mine personally and do not reflect
any position of the Government or NOAA."

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: run_cat_files
Url: http://gradsusr.org/pipermail/gradsusr/attachments/20061229/2604b780/attachment.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: run_cat_files_project.KWAJEX_3D-dz_250m
Url: http://gradsusr.org/pipermail/gradsusr/attachments/20061229/2604b780/attachment-0001.pl 


More information about the gradsusr mailing list