Bob,
Another function that may do the job is "rcm2rgrid".
http://www.ncl.ucar.edu/Document/Functions/Built-in/rcm2rgrid.shtml
Good Luck,
Saji
...
* Bob Tomas <tomas_at_ucar.edu> [2006-03-07 14:20:48 -0700]:
> Thanks Jamie,
> I tried that and got the following error message:
> fatal:linint2: The rightmost dimensions of fi must be nyi x nxi, where nyi
> and nxi are the lengths of yi and xi respectively
> fatal:Execute: Error occurred at or near line 130 in file
> make_latlon_snow.ncl
> So I took the next logical "guess" on how the function works: I converted
> my 2-d data array into a 1-d
> array. Interestingly, I still get the same error message in spinte of the
> right most dimension now
> being of size nyi x nxi. Sigh...
> Do you have a working example that you will share?
> Bob
> On Tue, 7 Mar 2006, Jamie Scott wrote:
> >Bob,
> >If you convert your 2D coordinate variables (lat and lon) and the input
> >data grid to 1D using ndtooned before passing them to linint2,
> >it should work.
> >Jamie Scott
> >NOAA/ESRL/PSD
> >james.d.scott_at_noaa.gov
> >On Mar 7, 2006, at 12:00 PM, ncl-talk-request_at_ucar.edu wrote:
> >>Message: 4
> >>Date: Tue, 7 Mar 2006 08:44:02 -0700 (MST)
> >>From: Bob Tomas <tomas_at_ucar.edu>
> >>Subject: linint2?
> >>To: ncl-talk_at_ucar.edu
> >>Message-ID: <Pine.LNX.4.63.0603070840360.31918_at_mineral.cgd.ucar.edu>
> >>Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
> >>Hello,
> >>I see in the web documentation that linint2 should be able to take
> >>data with 2-d lat and lon specified and interpolate it to a
> >>grid with 1-d lat lons? Maybe I am wrong in my interpretation
> >>of what the documentation says?
> >>Anyhow, no example is provided and I can only get the function to
> >>generate error messages - no interpolation. Does anyone have
> >>an example of using linint2 to perform the procedure outlined in
> >>the above paragraph?
> >>Thanks.
> >>Bob
> >>--
> >>-------------------------------------------------------------
> >>Robert A. Tomas
> >>National Center for Atmospheric Research
> >>Climate and Global Dynamics Division - Paleoclimatology
> >>1850 Table Mesa Drive
> >>Boulder, CO 80305-3000
> >>e-mail: tomas_at_ucar.edu tel: 303-497-1342 fax: 303-497-1348
> >>------------------------------
> >>_______________________________________________
> >>ncl-talk mailing list
> >>ncl-talk_at_ucar.edu
> >>http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >>End of ncl-talk Digest, Vol 28, Issue 8
> >>***************************************
-- Saji N. Hameed, Assistant Researcher, Tel:808 9569534 International Pacific Research Center, email:saji_at_hawaii.edu 2525 Correa Rd, Honolulu, HI 96822 http://iprc.soest.hawaii.edu/~saji _______________________________________________ ncl-talk mailing list ncl-talk_at_ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Wed Mar 08 2006 - 04:15:31 MST
This archive was generated by hypermail 2.2.0 : Wed Mar 08 2006 - 15:02:06 MST