[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #MWJ-718630]: Subtracting MM5-CCSM grid from NARR



> Oh jeez, after all these emails?? Can you at least tell me if it is possible
> to subtract grids of different sizes? I know you can display them on top of
> one another so there must be something that in IDV that matches them up?
> Will saving them as a netcdf work? Or do both the whole datasets end up in
> the netcdf?
> Is there sound w/your movie?
> cheers,
> Heather

Hi Heather,
      This is Yuan, I will take this question. If what you want is to do the 
subtract of something like,a(x1, y1) - b(x2, y2) and x1 x2 are not equal, that 
is what I understand as different sizes, you need to write a formula yourself, 
it is not very difficult depends on your algorithm of subtraction and your 
Jython (Python) experience. There is some document online you can reference.


Yuan
      
> 
> 
> address@hidden> wrote:
> 
> > Unfortunately, I may not be able to look into this in great depth this
> > afternoon or tomorrow (time is very limited currently.)
> >
> > This is a shot in the dark and probably not very useful but check out this
> > screencast
> >
> >
> > http://motherlode.ucar.edu/repository/entry/show/RAMADDA/Unidata/Staff/Julien+Chastang/Screen+cast/AvgLayer.mov?entryid=7cc013c5-bee6-4dd8-8f42-f7462f205724
> >
> > It describes how to work with formulas (e.g differences, averages, etc.)
> > within the IDV. It may give you some hints.
> >
> > -Julien
> >
> >
> > > Ok, sorry about that. I'm cranking out plots right now and getting my
> > months
> > > mixed up. The actual months aren't important, just how to work with the
> > grid
> > > sizes.
> > >
> > > The question concerns this:
> > >
> > > How do I subtract (simple a-b)  the NARR monthly mean files from the
> > > MM5-CCSM monthly files. They are of different grid sizes so I'm not sure
> > how
> > > to do this???
> > >
> > > I was really hoping to get this done today, my project is due tomorrow
> > > afternoon.
> > > Yes, I know, procrastination is bad...
> > >
> > > Also is there any kind of a ttest function within IDV??
> > >
> > > cheers,
> > > Heather
> > >
> > >
> > > address@hidden> wrote:
> > >
> > > > OK, but for the record your bundle refers to data from other months,
> > jan,
> > > > feb (e.g ts_mmean_MM5_feb_cur.nc) etc. That is why I was under the
> > > > impression there were several more files.
> > > >
> > > > > Hello,
> > > > > OK, I've uploaded them again:
> > > > > They are:
> > > > >
> > > > > ts_mmean_narr_dec.nc
> > > > >
> > > > > and
> > > > >
> > > > > ts_mmean_MM5_dec_cur.nc
> > > > >
> > > > > I am trying to a simple a-b function between the two files.
> > > > >
> > > > >
> > > > > address@hidden> wrote:
> > > > >
> > > > > > One. Just put them all there and let us know what are the file
> > names.
> > > > > >
> > > > > > > OK, which ones did you get?
> > > > > > > cheers,
> > > > > > > Heather
> > > > > > >
> > > > > > > address@hidden> wrote:
> > > > > > >
> > > > > > > > Not all of them.
> > > > > > > >
> > > > > > > > Please post your data
> > > > > > > > http://motherlode.ucar.edu/repository/alias/idvupload.
> > > > > > > >
> > > > > > > > > Hello,
> > > > > > > > > I was wondering if you received my data files? Let me know if
> > you
> > > > > > need me
> > > > > > > > to
> > > > > > > > > send them again?
> > > > > > > > > cheers,
> > > > > > > > > Heather
> > > > > > > > >
> > > > > > > > > address@hidden> wrote:
> > > > > > > > >
> > > > > > > > > > Hi Heather.
> > > > > > > > > >
> > > > > > > > > > I can't tell what is going on without the data.
> > > > > > > > > >
> > > > > > > > > > Please post your data here
> > > > > > > > > >
> > > > > > > > > > http://motherlode.ucar.edu/repository/alias/idvupload
> > > > > > > > > >
> > > > > > > > > > Thanks.
> > > > > > > > > >
> > > > > > > > > > -Julien
> > > > > > > > > >
> > > > > > > > > > > Full Name: Heather
> > > > > > > > > > > Email Address: address@hidden
> > > > > > > > > > > Organization: CU
> > > > > > > > > > > Package Version: 2.9u2 build date:2010-10-04 19:14 UTC
> > > > > > > > > > > Operating System: Mac OS X
> > > > > > > > > > > Hardware: Java: home:
> > > > > > > > > >
> > > > /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
> > > > > > > > version:
> > > > > > > > > > 1.6.0_22 j3d:1.5.2 fcs (build4)
> > > > > > > > > > > Description of problem: Creating display: Color-Shaded
> > Plan
> > > > View
> > > > > > > > > > > visad.SetException: visad.SetException: Gridded2DSet:
> > samples
> > > > do
> > > > > > not
> > > > > > > > form
> > > > > > > > > > a valid grid
> > > > > > > > > > > org.python.core.PyException
> > > > > > > > > > >
> > > > > > > > > > > Hi, only one of attachments went through, here's the
> > second
> > > > file.
> > > > > > > > > > >
> > > > > > > > > > > ******************
> > > > > > > > > > > Stack trace:
> > > > > > > > > > > Traceback (innermost last):
> > > > > > > > > > > File "<string>", line 1, in ?
> > > > > > > > > > > File "<string>", line 58, in sub
> > > > > > > > > > > at visad.Gridded2DSet.<init>(Gridded2DSet.java:99)
> > > > > > > > > > > at visad.Gridded2DSet.<init>(Gridded2DSet.java:56)
> > > > > > > > > > > at
> > > > > > ucar.unidata.data.grid.GridUtil.swapLatLonFF(GridUtil.java:6337)
> > > > > > > > > > > at
> > > > ucar.unidata.data.grid.GridUtil.swapLatLon(GridUtil.java:6238)
> > > > > > > > > > > at
> > ucar.unidata.data.grid.GridMath.doMath(GridMath.java:222)
> > > > > > > > > > > at
> > > > ucar.unidata.data.grid.GridMath.subtract(GridMath.java:131)
> > > > > > > > > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > Method)
> > > > > > > > > > > at
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > > > > > > > > > at
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > > > > > > > > > at java.lang.reflect.Method.invoke(Method.java:597)
> > > > > > > > > > >
> > > > > > > > > > > visad.SetException: visad.SetException: Gridded2DSet:
> > samples
> > > > do
> > > > > > not
> > > > > > > > form
> > > > > > > > > > a valid grid
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Ticket Details
> > > > > > > > > > ===================
> > > > > > > > > > Ticket ID: MWJ-718630
> > > > > > > > > > Department: Support IDV
> > > > > > > > > > Priority: Normal
> > > > > > > > > > Status: Closed
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Ticket Details
> > > > > > > > ===================
> > > > > > > > Ticket ID: MWJ-718630
> > > > > > > > Department: Support IDV
> > > > > > > > Priority: Normal
> > > > > > > > Status: Closed
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > Ticket Details
> > > > > > ===================
> > > > > > Ticket ID: MWJ-718630
> > > > > > Department: Support IDV
> > > > > > Priority: Normal
> > > > > > Status: Closed
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > Ticket Details
> > > > ===================
> > > > Ticket ID: MWJ-718630
> > > > Department: Support IDV
> > > > Priority: Normal
> > > > Status: Open
> > > >
> > > >
> > >
> > >
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: MWJ-718630
> > Department: Support IDV
> > Priority: Normal
> > Status: Open
> >
> >
> 
> 


Ticket Details
===================
Ticket ID: MWJ-718630
Department: Support IDV
Priority: Normal
Status: Closed