BMF
|
Use of character fields
|
|
Use of character fields
ARGUMENTS
DESCRIPTION
To write character fields, one can use dtyp=10 as described in bmf_write.
Note that at this time, it is recommended to use this feature only in a 1D
fashion, with ni=n character to write, istart=1, iend=ni,
nj=nk=(jk)start=(jk)end=1. Only bmf_write and bmf_splitwrall can write
characters, any other use may give unpredictable results (if you're lucky
enough to make it work!).
To retrieve a character field, use bmf_get2 as usual with dtyp=10.
EXAMPLE
character(len=28) string
string='This is the string I write'
ni=26
dtyp=10
call bmf_write(iun,'STRI',ni,1,ni,1,&
1,1,1,1,1,&
time1,time2,hgrid,vgrid,10,&
0,ni,string)
SEE ALSO
BMF_* , PROG_FILENAME
Author: Luc Corbeil, 28/02/2003
Return to RPN Librairies home page