Re: Resizing a panel plot

From: Rick Brownrigg <brownrig_at_nyahnyahspammersnyahnyah>
Date: Wed May 08 2013 - 09:59:06 MDT

Hi,

I think the problem might be, at line 104:

plot(it) = wrf_map_overlays(a[0],wks,(/SBF,vector/),pltres,mpres) ; sin la presión

"it" is ranging in value from 0 up to 59, but plot() of course is only dimensioned 10. Perhaps something like:

plot(it/6) = wrf_map_overlays(a[0],wks,(/SBF,vector/),pltres,mpres) ; sin la presión

Hope that helps…
Rick

On May 8, 2013, at 9:52 AM, Luis Cesareo Cana Cascallar <luis.cana@ulpgc.es> wrote:

> 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
> <Panel_SBF_wind_10m_reduced.ncl>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed May 8 09:59:17 2013

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