comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: how to use MIN_CURVE_SURF when CONTOUR
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: how to use MIN_CURVE_SURF when CONTOUR [message #55873] Tue, 18 September 2007 05:56 Go to next message
qunjie0111 is currently offline  qunjie0111
Messages: 9
Registered: September 2007
Junior Member
Thanks Jean H.

smoothdata=MIN_CURVE_SURF(data,xvalues=lon,yvalues=lat,gs=[1 .0,1.0],bounds=[0,-90,359,90],/
sphere)




I changed them in this way,but the errors remain!

Thanks again for answering my question!
Re: how to use MIN_CURVE_SURF when CONTOUR [message #55886 is a reply to message #55873] Mon, 17 September 2007 08:48 Go to previous messageGo to next message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
qunjie0111@163.com wrote:
> hello!
> my data is data(144,73).
> longitude: lon = indgen(144)*2.5
> latitude: lat = indgen(73)*2.5-90.
> Before I CONTOUR it,I want to smooth the data ,using the function
> MIN_CURVE_SURF.MY code is:
>
> smoothdata=MIN_CURVE_SURF(data,xvalues=lon,yvalues =lat,gs= , $
> [1.0,1.0],bounds=[0,-90,359,90],/sphere,/TPS)


You have a problem here..
gs= , $
[1.0,1.0]

you have a useless comma... so basically, gs is nothing, and maybe it is
the source of your problem..
Jean


>
> But , after runing ,there are some errors :
>
> Attempt to subscript P3 with J is out of range.
> Error occurred at: MIN_CURVE_SURF 310 D:\RSI\IDL63\lib
> \min_curve_surf.pro
> ZONAL_MEAN_DATA 45 E:\DATA\ECMWF\zonal_mean_data.pro
> $MAIN$
> Execution halted at: ZONAL_MEAN_DATA 45 E:\DATA\ECMWF
> \zonal_mean_data.pro
> Program caused arithmetic error: Floating illegal operand
>
> I don't know how to correct them , please help me! thanks!
> zuoqunjie
>
Re: how to use MIN_CURVE_SURF when CONTOUR [message #55948 is a reply to message #55873] Tue, 25 September 2007 01:17 Go to previous messageGo to next message
Tal is currently offline  Tal
Messages: 26
Registered: August 2007
Junior Member
Hi Zuoqunjie,

I tried different combinations of this routine with your data.
no success.

however, this could be a bug at the min_curve_surf.pro in the lib
subdirectory of the IDL distribution (see line 310).

This looks to me as the source of the problem as far as i understand,
but does not make much sense. Maybe playing with xgrid, ygrid instead
of xvalues,yvalues will help.

When all else fails try also the ENVI support team
(support@ittvis.com).
I'll be happy to know what the answer was.

Good luck,
Tal
Re: how to use MIN_CURVE_SURF when CONTOUR [message #56019 is a reply to message #55948] Tue, 25 September 2007 18:44 Go to previous message
qunjie0111 is currently offline  qunjie0111
Messages: 9
Registered: September 2007
Junior Member
Thanks Tal

I tried it in your way:using xgrid, ygrid .

But the errors all the same!

Gloomy! I have no choice but to use the SMOOTH function.I hope the
IDL team can solve this problem as soon as possible!

Thanks Tal again for answering my question!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Uneven Set of x y coordinates
Next Topic: Order of argument evaluation (Was: Re: making a checkerboard array?)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:13:02 PDT 2025

Total time taken to generate the page: 0.00469 seconds