[ncl-talk] Replace values of a file without lat and lon with values from a file has lon and lat

Rashed Mahmood rashidcomsis at gmail.com
Sun Jun 23 02:50:35 MDT 2019


Hi Xueyan,
If you are sure that both fcover and vegfrac files have *same projections
and horizontal resolutions* then you can avoid using two inner loops. See
attached file. You may need to define time dimention for vegfra. Seem my
comment there.

hope that helps,
Rashed


On Sat, Jun 22, 2019 at 8:15 PM Xueyan Zhang via ncl-talk <ncl-talk at ucar.edu>
wrote:

> Hi,
>
> Now I am working on replace vegetation fraction values of my netcdf file
> that does not have latitude and longitude by values from another netcdf
> file that has latitude and longitude. I used many loops to do this, but I
> think it is time-consuming as well as RAM-comsuming. I have attached my ncl
> file. Does anyone have a better way to do it?
>
> Sincerely,
>
> Xueyan
> _______________________________________________
> 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/20190623/8534c4aa/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: replacevalues_noahmp_wrf.ncl
Type: application/octet-stream
Size: 1818 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190623/8534c4aa/attachment.obj>


More information about the ncl-talk mailing list