[ncl-talk] Variable averaging issue
Jack Ogaja
jack.ogaja at gmail.com
Tue Feb 9 17:18:46 MST 2016
Don’t use deprecated functions like "addfiles_GetVar()”, unless your ncl version is really old. You can easily see that from the documentation.
See the attached script. It should give you the result you are looking for.
Jack.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ClimateTest_Jack20160210.ncl
Type: application/octet-stream
Size: 1501 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160210/f9ab05a6/attachment.obj
-------------- next part --------------
> On 09 Feb 2016, at 19:55, BLIUJUS, STEVEN D CTR USAF AFMC AFLCMC/HBAW-OL <steven.bliujus.3.ctr at us.af.mil> wrote:
>
> I have two files and I am trying to average the variable
> MOD08_M3_6_Aerosol_Optical_Depth_Land_Ocean_Mean_Mean over the domain. Both
> files have the same dimensions, 2, and same lat/lons. However it is not
> plotting anything, and the dimensions get messed up. Basically I want point
> 0,0 averaged between the two, point (0,1), point (0,2).....point(180,360).
> It doesn't appear to be doing that, and I am unsure as to why. Attached are
> the two files. I used the addfiles_GetVar and dim_avg_Wrap.
>
> Steven Bliujus, Contractor
> SEMS/16WS WXE
> 557th Weather Wing
> DNS: 232-7151
>
>
> <g4.timeAvgMap.MOD08_M3_6_Aerosol_Optical_Depth_Land_Ocean_Mean_Mean.20090701-20090731.180W_90S_180E_90N.nc><g4.timeAvgMap.MOD08_M3_6_Aerosol_Optical_Depth_Land_Ocean_Mean_Mean.20080701-20080731.180W_90S_180E_90N.nc><ClimateTest.ncl>_______________________________________________
> 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