Re: reverse netCDF {dimension, coordinate variable}?

From: Tom Roche <Tom_Roche_at_nyahnyahspammersnyahnyah>
Date: Sat Jan 12 2013 - 11:01:50 MST

Tom Roche Sat, 12 Jan 2013 11:51:42 -0500
>> Is there NCL API to reverse a dimension?

Dennis Shea Sat, 12 Jan 2013 10:17:13 -0700
> The following reverses the vertical dimension at every grid point:

> ; separate variable
> zi = z(::-1,:,:) ; ilev: [1000..1.650789985433221]
> z = z(::-1,:,:) ; reverse and overwrite

Thanks! NCL seems quite usable for "netCDF fiddling": the sort of moving
{attributes, coordinates, variables} around that one must do so much of,
and which is

* easy to do with NCO (but requires knowing NCO's rather odd API)

* hard to do with R::ncdf4

As a student, the lesson I seem to be learning is

* use NCL for
** generic netCDF manipulation
** specific science APIs (esp meteorological)
** some graphics

* use R for
** most graphics
** specific statistics APIs
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sat Jan 12 11:02:07 2013

This archive was generated by hypermail 2.1.8 : Mon Jan 14 2013 - 14:31:38 MST