[ncl-talk] addfiles

David Brown dbrown at ucar.edu
Thu May 4 17:09:56 MDT 2017


Hi Laura,

The fact is that using addfiles in write mode has not been verified to
work. I would recommend sticking to addfile inside a loop over all the
individual files. We will try to address this issue as soon as we can.
 -dave


On Thu, May 4, 2017 at 3:10 PM, Rick Brownrigg <brownrig at ucar.edu> wrote:
> 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
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>


More information about the ncl-talk mailing list