[Thread Prev][Thread Next][Index]

Re: [ferret_users] Combining NetCDF files



Hi
To expand on what Fisseha says, you can just give the dataset number in square brackets, and if the variables are on the same grid then that's it.

Even if the grids are both 1 degrees in longitude and latitude, unless the coordinate axes have the same names and all the same properties, Ferret won't see that as the same grid.

If the data aren't on the same grids in some respect, then you can regrid one variable to the grid of the other. Say one dataset has a variable called TEMP that's on a 4D grid with lon, lat, time in days, and depth, and the other has SST on a 3-D grid, with a different grid of longitudes and latitudes, and with the time axis representing a monthly climatology. We can compare them this way:

let diff = temp[d=1, t=1-jan-2000, z=0] - sst[d=2, gxy=temp[d=1], t=1-jan]


On 9/12/2012 12:54 PM, Paul Goddard wrote:
Hello all,

I am trying to combine two *.nc files that have variables with the same dimensions( I=1:360, J=1:180). Each file contains one variable and I would like to plot the difference between the two variables on one plot. Thanks for any help!



[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement