Re: REQUEST-help

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue Nov 22 2011 - 23:41:21 MST

The warning message is telling you exactly what the problem is:

> Specific humidity: min=0 max=0

The Since the min=0 and the max=0, there can be no contours.
All values are the same!

> warning:ContourPlotInitialize: scalar field is constant; ContourPlot not
> possible:[errno=1102]
================================
   lev = f1->lv_ISBL1
   print(lev)

(1) Note to what level subscript 1 corresponds.
(2) NCL has 0-based subscripts [like C]
(3) I suggest

   klev = dimsizes(lev)
   SHAvg=dim_avg_n_Wrap(SH(:,klev-1,:,:),0)
or
   SHAvg=dim_avg_n_Wrap(SH(:,klev-2,:,:),0)

   Whatever level you want

====================
If you are new to NCL, please go to
    http://www.ncl.ucar.edu/Document/Manuals/

and read the mini-Reference manual

Cheers

On 11/22/11 11:23 PM, manaswini sreekar wrote:
>
> Sorry for the Mistake.
>
> Here is the PrintVarSummary and Min and Max and output of the file
>
> Specific humidity: min=0 max=0
>
> Variable: SH
> Type: float
> Total Size: 3968000000 bytes
> 992000000 values
> Number of Dimensions: 4
> Dimensions and sizes: [initial_time0_hours | 31] x [lv_ISBL1 | 25] x
> [g4_lat_2 | 800] x [g4_lon_3 | 1600]
> Coordinates:
> initial_time0_hours: [1827654..1828374]
> lv_ISBL1: [1..1000]
> g4_lat_2: [89.82787..-89.82787]
> g4_lon_3: [ 0..359.775]
> Number Of Attributes: 10
> forecast_time_units : hours
> forecast_time : 0
> parameter_number : 133
> parameter_table_version : 128
> gds_grid_type : 4
> level_indicator : 100
> _FillValue : 1e+20
> units : kg kg**-1
> long_name : Specific humidity
> center : European Center for Medium-Range Weather Forecasts (RSMC)
> warning:ContourPlotInitialize: scalar field is constant; ContourPlot not
> possible:[errno=1102]
>
> On 11/22/11 10:52 PM, manaswini sreekar wrote:
>
>
>
> Hi
>
> Is there anyone who can help me with this error?
>
> warning:ContourPlotInitialize: scalar field is constant;
> ContourPlot not
> possible:[errno=1102].
>
> The details are
>
> date range july1st2008-july31st 2008
>
> levels :all
>
> parameter specifichumidity
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Nov 22 23:41:27 2011

This archive was generated by hypermail 2.1.8 : Wed Nov 23 2011 - 16:46:19 MST