Re: writing characters

From: Mary Haley (haley AT XXXXXX)
Date: Thu Jan 30 2003 - 08:25:52 MST

  • Next message: Yan Gu: "Questions to transfer grib file to netCDF file"

    >
    > Hello,
    >
    > I'd like to report that fortran so files can be accessed
    > from a ncl script with the Mac version.
    > I find error messages useful. Many thanks.
    >
    > BTW, I get a bus error when I try to save a character array.
    > A error occurs even with one dimensional array and even
    > a single character.
    >
    > Strings can be saved but control of length will be messy.
    > I am trying to save a sequential file with a character header.
    >
    > A error also occurs with 4.2.0.a024 IRIX.
    >
    > Thanks.

    Dear Dr. Takeshi Enomoto (and others who are interested),

    I have verified that your short script also causes a problem on Suns
    and SGIs. We will look into it and let you know when a bug fix is
    available.

    Thanks for reporting this to us.

    --Mary

    > .
    > .
    > .
    > ncl 0> head = new((/64,16/), "character")
    > ncl 1> printVarSummary(head)
    >
    > Variable: head
    > Type: char
    > Total Size: 1024 bytes
    > 1024 values
    > Number of Dimensions: 2
    > Dimensions and sizes: [64] x [16]
    > Coordinates:
    > Number Of Attributes: 1
    > _FillValue :
    > ncl 2> fbinrecwrite("head", -1, head)
    > Bus error
    >
    >
    > -----
    > ENOMOTO, Takeshi, Dr
    > enomoto.takeshi AT nasda.go.jp
    > Frontier Research System for Global Change
    >
    _______________________________________________
    ncl-talk mailing list
    ncl-talk AT ucar.edu
    http://mailman.ucar.edu/mailman/listinfo/ncl-talk



    This archive was generated by hypermail 2b29 : Wed Feb 05 2003 - 08:36:14 MST