X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 17 Jul 2012 01:45 AM by  anon
POLYLINE: Unable to concatenate variables
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
17 Jul 2012 01:45 AM
    Hi guys: I have the fellowing code with IDL 8.2 windows, but get error x = [90.44,91.00,92.00,93.00,94.00,94.51,95.00,96.00,97.00,98.00,99.00,100.00,100.89,101.00,101.80,150.00,149.00,148.47,$ 148.00,147.00,146.47,147.00,147.54,148.00,148.04,149.00,149.37,150.00,85.00,84.23,84.00,83.96,84.00,85.00,85.23,$ 85.40] y=[55.00,54.19,54.22,54.49,54.07,54.00,53.88,53.32,53.40,53.37,53.32,53.60,54.00,54.05,55.00,53.68,53.79,54.00,$ 54.29,54.34,54.00,53.59,53.00,52.06,52.00,51.34,51.00,50.42,30.87,31.00,31.84,32.00,32.07,32.06,32.00,31.00] conn = [15,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,13,15,16,17,18,19,20,21,22,23,24,25,26,27,8,28,29,30,31,32,33,34,35] m = MAP('Lambert Conformal Conic', $ STANDARD_PAR1=20, $ STANDARD_PAR2=30, $ LIMIT=[18, 73, 54, 136]) mp_bound = MAPCONTINENTS(/COUNTRIES, COLOR='blue') IDL> c = POLYLINE(x,y,CONNECTIVITY=conn, /data) % POLYLINE: Unable to concatenate variables because the dimensions do not agree: ZDATA. % Execution halted at: $MAIN$ So why? dave

    Deleted User



    New Member


    Posts:
    New Member


    --
    17 Jul 2012 09:22 AM
    Hi Dave, What happens if you comment out 'conn' and what are you trying to display?

    Deleted User



    New Member


    Posts:
    New Member


    --
    17 Jul 2012 06:53 PM
    It's ok when I comment out 'conn'. But it's not what I want. Because x and y came from contour path_xy procedure, and include three contour lines. Any suggestion? My 'conn' is wrong? conn = [15,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14, $ ; 1st line 13,15,16,17,18,19,20,21,22,23,24,25,26,27, $ ; 2nd line 8,28,29,30,31,32,33,34,35] ; 3rd line
    You are not authorized to post a reply.