[ncl-talk] How to "trim" a netcdf file

HAVENER, KEVIN F GS-12 USAF AFWA 14 WS/WXED kevin.havener at us.af.mil
Mon Feb 9 11:12:13 MST 2015


I have a 4 by 721 by 1440 netcdf (lev/lat/lon) that I am performing some classification calculations on.  To develop and check my logic, I'd like to work with just a small portion of the grid until I get the details worked out.  So how do I select a lat/lon box from a netcdf and write it to a test file?  It seems like it should be obvious, but I can't find the relevant example from the examples page or the function page.  Can someone point me in the right direction, please?  I know when someone points it out to me, I will smack myself in the head.  But darned if I can find it.

Kevin Havener


More information about the ncl-talk mailing list