Resizing a panel plot

From: Luis Cesareo Cana Cascallar <luis.cana_at_nyahnyahspammersnyahnyah>
Date: Wed May 08 2013 - 09:52:01 MDT

Hi all,

I've been able to draw a huge panel plot with 60 figures (landscape, 12 columns x 5 rows). Now I'd like to reduce this panel to one containing just 10 figures (portrait, 2 columns x 5 rows). My is resize these settings of the attached script:

plot = new(10,graphic) ; Create a plot array with 10 figures
gsn_panel(wks,(/plot/),(/5,2/),resP) ; now draw as one plot
 

and change the 'do' line to read just hourly data instead of 10-min data:

do it = 0, ntimes-1, 6 ; times -1, 1 if 10 min data

But it doesn't work. I'm stuck at his point, because I get the following error:

**********************
Variable: times
Type: string
Total Size: 480 bytes
            60 values
Number of Dimensions: 1
Dimensions and sizes: [60]
Coordinates:
Number Of Attributes: 2
  description : times in file
  _FillValue : missing
(0) 2007-04-10_07:00:00
(1) 2007-04-10_07:10:00
.

(58) 2007-04-10_16:40:00
(59) 2007-04-10_16:50:00

Variable: speed
Type: float
Total Size: 189000 bytes
            47250 values
Number of Dimensions: 2
Dimensions and sizes: [210] x [225]
Coordinates:
Number Of Attributes: 2
  description :
  units : m/s

Variable: speed
Type: float
Total Size: 189000 bytes
            47250 values
Number of Dimensions: 2
Dimensions and sizes: [210] x [225]
Coordinates:
Number Of Attributes: 2
  description :
  units : m/s

Variable: speed
Type: float
Total Size: 189000 bytes
            47250 values
Number of Dimensions: 2
Dimensions and sizes: [210] x [225]
Coordinates:
Number Of Attributes: 2
  description :
  units : m/s
fatal:Subscript out of range, error in subscript #0
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 104 in file Panel_SBF_wind_10m_reduced.ncl

*************************************************************************
Why is 'out of range' after four steps? Any advice?

Thanks in advance,

Luis

Luis Cana
University of Las Palmas de GC

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

Received on Wed May 8 09:52:57 2013

This archive was generated by hypermail 2.1.8 : Wed May 15 2013 - 10:19:28 MDT