Re: how to change scale_factor in output file informations?

From: Sylvia Murphy (murphys AT XXXXXX)
Date: Thu Mar 11 2004 - 13:02:41 MST

  • Next message: liping deng: "a question about ncrcat"

    liping,

    if you take x*100 and then want to mofify an attribute,
    you can do that easily:

    x@scale_factor = 1

    with the @ syntax you can create or modify any variable attribut before
    you write it to netCDF.

    sm

    On Thu, 11 Mar 2004, liping deng wrote:

    > Hello all,
    >
    > I have a easy question:
    >
    > >From a netCDF file ,I read uwnd : have
    > uwnd:scale_factor = 0.01f ;
    >
    > I want write a new netCDF file , make uwnd time 100,
    > so that how to change scale_factor in output file?
    > uwnd:scale_factor = 1f ;
    >
    > Thank you very much!
    >
    > Liping
    >
    > __________________________________
    > Do you Yahoo!?
    > Yahoo! Search - Find what you’re looking for faster
    > http://search.yahoo.com
    > _______________________________________________
    > ncl-talk mailing list
    > ncl-talk AT ucar.edu
    > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
    >

    ******************************************************
    Sylvia Murphy EML: murphys AT ucar.edu
    NCAR CGD/CSEG PHN: 303-497-1720
    1850 Table Mesa Drive FAX: 303-497-1333
    Boulder CO 80305

    WEB: http://www.cgd.ucar.edu/csm/support/
         http://www.cgd.ucar.edu/csm/support/CSM_Graphics/
    ******************************************************

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



    This archive was generated by hypermail 2b29 : Thu Mar 11 2004 - 13:15:00 MST