[ncl-talk] warning:ScalarFieldSetValues
Dennis Shea
shea at ucar.edu
Mon Oct 29 08:42:22 MDT 2018
It looks liked you copied some existing script and made some changes.
var = f->PVapor(0,:,:) ;-- first time step, latitude=40N,
longitude=0-60E.
; ????? the comment has
*nothing* to do with the varaiable
... also ...
res at tiMainString = *"DKRZ NCL Example: Slice plot at 40N*" ;
??????????
----
Please '*Look at the Data*'
Pay attention to the data structure. Look carefully at your variables, the
dimension sizes and dimension names.
;; *Scanline = 116* ;
;; *Field_of_view = 30 *;
;; Channel = 20 ;
;; *P_Layer = 100* ;
;; *P_Level = 101* ;
;; Qc_dim = 4 ;
;; float Latitude(Scanline, Field_of_view) ;
;; Latitude:long_name = "Latitude of the view (-90,90)" ;
;; float Longitude(Scanline, Field_of_view) ;
;; Longitude:long_name = "Longitude of the view (-180,180)" ;
;; float *PVapor*(Scanline, Field_of_view, *P_Layer*) ;
;; PVapor:long_name = "Water vapor profile in g/kg" ;
;; PVapor:scale = 1. ;
;; float *Player*(P_Layer) ;
;; Player:description = "Pressure for each layer in mb" ;
;; float *Plevel*(P_Level) ;
;; Plevel:description = "Pressure for each level in mb" ;
Your script contains:
ncl 8> var = f->PVapor(0,:,:) ;-- first time step, latitude=40N,
longitude=0-60E.
; ^^^^^^^^^^^^^^^^
Huh? ^^^^^^^^^^^^^^^^^^^^^
ncl 9> lev = f->Plevel ; No!!!! size *101,* PVapor is
size *100*
The comment is *not appropriate*
The variable* PVapor i*s dimensioned *(*Scanline, Field_of_view, *P_Layer)
. *P_Layer is size
* 100.*
Yet you are trying *(I think)* to use Plevel(P_Level) which is size
*P_level=101.*
This is why ncl-talk always advises: *Look at your data!*
Scanline ==>Time
Field_of_View ==> Latitude, Longitude
P_Layer ==> Pressure levels
On Fri, Oct 26, 2018 at 3:42 AM Elham Ghasemifar <
elham.ghasemifar at modares.ac.ir> wrote:
> Dear colleges
>
> hello
>
> i want to plot water vapor cross section , and i already mention the data
> has scan line and field of view instead of latitude and longitude, latitude
> and longitude are separate variable in the file, water vapor has 3
> dimension namely scan line, field of view and player.
>
> i don't know why i got the warning :
>
> warning:ScalarFieldSetValues: coordinate array sfXArray requires 100
> elements: defaulting
> warning:ScalarFieldSetValues: coordinate array sfYArray requires 30
> elements: defaulting
>
> i attached the plot and the script,
>
> any helps will be gratefully appreciated .
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181029/99782665/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NPR.MIRS.elham.ncl
Type: application/octet-stream
Size: 6494 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181029/99782665/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MIRS.PVapor_000.png
Type: image/png
Size: 86523 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181029/99782665/attachment.png>
More information about the ncl-talk
mailing list