[Thread Prev][Thread Next][Index]

Re: Can I shift a netcdf dataset in longitude?




Folks - Steve Hankin pointed out the very simple solution to my problem.

> 
> > If you don't mind giving me some guidance ... here is a highly
> > simplified version of what I need to do:
> >
> > use "dataset1.nc"
> >
> > use "dataset2.nc"    <- This has the same 90x45 dimension as dataset1,
> >                         but the grid is shifted one cell to the west.
> >                         So, when I subtract one set from the other,
> >                         I want to subtract 10W in dataset2 from 6W
> >                         in dataset1, etc.
> >
> > let diff = temp[d=dataset1.nc] - temp[dataset2.nc]
> > contour diff
> >

let diff = temp[d=dataset1.nc] - temp[dataset2.nc,i=@SHF:1]

... does the trick.



Ferret rules.


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement