Re: how to use MIN_CURVE_SURF when CONTOUR [message #55873] |
Tue, 18 September 2007 05:56  |
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   |
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 #56019 is a reply to message #55948] |
Tue, 25 September 2007 18:44  |
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!
|
|
|