Hi -
Here are some ideas to get you started. I'll let you work out the
whole thing.
! Here's how to list a string, without quotes, and
without a
! header for a string variable
LIST/CLOBBER/FILE=out.dat/NOHEAD/FORMAT="(A)" dsaa
! Now list the number of points in the i and j direction
LET ni= `var,RETURN=isize`
LET nj = `var,RETURN=jsize`
LIST/APPEND/FILE=out.dat/NOHEADER/FORMAT=(2f6.0) ni, nj
LET xmin = `var,RETURN=xstart`
...
and so on. You can LIST/NOHEADER/FORMAT= to write the rest of the
lines you want.
You can control the formatting of the lines by defining a string
variable with the exact contents you want for the format of each
line, so for example, instead of the block above with ni and nj,
LET ninj = " Nx = `var,RETURN=isize`, Ny =
`var,RETURN=jsize` "
LIST/APPEND/FILE=out.dat/NOHEADER/FORMAT="(A)" ninj
On 10/15/2010 6:08 AM, golla nageswararao wrote:
Hi all,
How to write in ferret header with string when u convert into
dat file.
Header should contain:
DSAA ---string
no. of x points no.of y points
max longitude Max latitude
min latitude min latitude
var_max var_min
then data ...........
Thanks in advance.
--
With Best regards,
G.NageswaraRao.
|