Re: help with NCL

From: Hui Liu (hliu AT XXXXXX)
Date: Tue Dec 16 2003 - 08:51:51 MST

  • Next message: liping deng: "hello---for questions!"

    Hello, Ethan and Rick:

      Thank you both very much for your kind information. I appreciate very much.

    have a good day.

    hui

    On Tue, 16 Dec 2003, Ethan Alpert wrote:

    >
    > You must add ".grb" to your file name. Because formats like grib do not
    > support a magic number there is no way for NCL to know what type of file you
    > are opening. You must tell it what file type it is by adding the appropriate
    > extension (i.e. .grb, .nc, .ccm, .hdf) to the filename parameter of the
    > addfile function:
    >
    > thefile = addfile("/data/pgb.f0002073012.grb","r")
    >
    > -e
    >
    > > hi, Sylvia:
    > >
    > > I am trying to do as you said. I used addfiles and then
    > > ListSetType to combine the GRIB files, but got an message related to
    > ListSetType:
    > >
    > > fatal:An internal error has occurred. The file format requested does not
    > > appear to be supported, could not open (/data/pgb.f0002073012)
    > >
    > > what is your suggestions about this? Thanks!!
    > >
    > > hui
    > >
    > >
    > > On Fri, 12 Dec 2003, Sylvia Murphy wrote:
    > >
    > > > >
    > > > h,
    > > >
    > > > there are no grib equivilant of the netCDF operators. you will have to
    > use
    > > > NCL for that.
    > > > read in all the files using addfiles and then use dim_avg.
    > > >
    > > > http://www.cgd.ucar.edu/csm/support/FH/addfiles.shtml
    > > >
    > > > remember to reorder your variable to put time as the rightmost
    > dimension.
    > > > you should also use dim_avg_Wrap located in contributed.ncl so that your
    > > > meta data is preserved.
    > > >
    > > > sm
    > > >
    > > > Hi, Sylvia:
    > > > >
    > > > > I will need also to do similar average of the daily NCEP reanalysis
    > > > > GRIB files. Is there any similar Unix commands available to do
    > > > > the average?
    > > > >
    > > > > Thank again!
    > > > >
    > > > > hui
    > >
    > >
    > > _______________________________________________
    > > ncl-talk mailing list
    > > ncl-talk@ucar.edu
    > > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
    > >
    >
    >

    _______________________________________________
    ncl-talk mailing list
    ncl-talk@ucar.edu
    http://mailman.ucar.edu/mailman/listinfo/ncl-talk



    This archive was generated by hypermail 2b29 : Tue Dec 16 2003 - 12:00:08 MST