Re: RE: linint2

From: Bob Tomas <tomas_at_nyahnyahspammersnyahnyah>
Date: Tue, 7 Mar 2006 14:20:48 -0700 (MST)

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
>> ***************************************
>

-- 
-------------------------------------------------------------
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
Received on Tue Mar 07 2006 - 14:20:48 MST

This archive was generated by hypermail 2.2.0 : Tue Mar 07 2006 - 16:44:45 MST