Re: Coordinate subscripting

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Tue Jul 24 2012 - 12:37:51 MDT

There is no automatic way to do this without using lonFlip. You could define the output variable yourself and fill it using 2 subscripted assignments from the NetCDF file, but you will need to calculate the size of the resulting longitude dimension up front.
 -dave

On Jul 24, 2012, at 11:57 AM, Noel Aloysius wrote:

> Hi NCL,
>
> A netCDF file has the lons from 0.5 to 359.5 and the lats from -89.5 to 89.5. I want to subset the African continent. The relevant lon range would be {0.5-52.5} and {341.5-359.5}. Is there a way to subset this region using coordinate subscripting. I can subset this easily after lonFlip, but I want to avoid this.
>
> Thanks,
> Noel
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Jul 24 12:38:01 2012

This archive was generated by hypermail 2.1.8 : Fri Aug 03 2012 - 14:39:59 MDT