[ncl-talk] addfiles

Rick Brownrigg brownrig at ucar.edu
Thu May 4 15:10:30 MDT 2017


Hi Laura,

Where does this question stand?  I just looked at the code in
correct.fr_icepath.ncl, and it doesn't seem to match up with what you
described, so I wonder if perhaps you found an alternative solution?

Rick

On Wed, May 3, 2017 at 4:39 PM, Laura Fowler <laura at ucar.edu> wrote:

> Hello:
>
> I am reading the variable fr from a series of files using addfiles.
> All the files have the same file size.
>
> fr = f[:]->ice_path_flashrate
>
> Variable: fr
> Type: float
> Total Size: 3140223944 bytes
>             785055986 values
> Number of Dimensions: 2
> Dimensions and sizes: [Time | 121] x [nCells | 6488066]
> Coordinates:
> Number Of Attributes: 2
>   units : fl. mn^{-1}
>   long_name : Lightning flash rate as function of ice water path
>
> I modify the variable fr and I want to write the modified variable
> back to each file. This does not seem to work. I tried:
>
> f[:]->ice_path_flashrate = fr
>
> The original sourcecode can be found in
> /glade2/scratch2/laura/MPAS.hwt2017/2017042900/plots/correct.fr_
> icepath.ncl
>
> A hint would be greatly appreciated,
> Thanks,
> Laura
>
>
>
> --
> !-----------------------------------------------------------
> --------------------------------------------------
> Laura D. Fowler
> Mesoscale and Microscale Meteorology Division (MMM)
> National Center for Atmospheric Research
> P.O. Box 3000, Boulder CO 80307-3000
>
> e-mail: laura at ucar.edu
> phone: 303-497-1628
>
> !-----------------------------------------------------------
> --------------------------------------------------
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170504/83f8e8a5/attachment.html 


More information about the ncl-talk mailing list