[ncl-talk] Misprint_data

Guido Cioni guidocioni at gmail.com
Sun May 8 03:54:17 MDT 2016


The problem was that your variable had “short” type and had to be converted into “float" beforehand. After using the function short2flt everything looks fine. Please find attached the correct script with also slight improvement in how you draw the plot: I assume you only want 1 figure in the output but if you are not specifying NOT to draw the plot before overlaying the shapefile you would get 2 plots instead of 1.
Try it out and let me know if it works for you.
 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.ncl
Type: application/octet-stream
Size: 1710 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160508/3ab1b0c3/attachment.obj 
-------------- next part --------------


Guido Cioni
http://guidocioni.altervista.org 




> Il giorno 08 mag 2016, alle ore 08:18, Kunal Bali <kunal.bali9 at gmail.com> ha scritto:
> 
> Dear  Guido Cioni
> 
> Here i attached the input file and script with output result.
> 
> 
> 
> On 5/7/16, Guido Cioni <guidocioni at gmail.com> wrote:
>> Dear Kunal,
>> you should always attach at least a ncl_filedump of the file so that we can
>> have a look beforehand. Also, it is really hard to interpret the plot from
>> the screenSHOT (literally) that you provided. Please next time save the
>> picture as png or pdf and attach those directly into the mail instead of
>> taking a picture of the screen.
>> 
>> It seems to me that your file contains missing values that are poorly
>> defined and are interpreted by NCL as real values; thus the hugely spread
>> color scale and the black (?) dots. But, again, it’s hard to tell without
>> having a look into the file. You can attach either attach the file to the
>> email (if it’s not too big) or provide a printout of ncl_filedump.
>> Regards,
>> 
>> Guido Cioni
>> http://guidocioni.altervista.org <http://guidocioni.altervista.org/>
>> 
>> 
>> 
>> 
>>> Il giorno 07 mag 2016, alle ore 16:46, Kunal Bali <kunal.bali9 at gmail.com>
>>> ha scritto:
>>> 
>>> Dear NCL
>>> 
>>> I have plotted the one file which graphically showing the correct map but
>>> the values are coming in negative. I did plot the same file in panoply,
>>> there is showing the correct values.
>>> 
>>> See the attached figure
>>> 
>>> Please let me ‎know the reason behind this
>>> 
>>> 
>>> <IMG_20160507_201509.jpg>_______________________________________________
>>> ncl-talk mailing list
>>> ncl-talk at ucar.edu <mailto:ncl-talk at ucar.edu>
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>> <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
>> 
> 
> 
> -- 
> Kunal Bali
> Research Scholar
> Radio & Atmospheric Science Division
> CSIR - National Physical Laboratory
> New Delhi - 110012
> India
> <test.ncl><FRP01.pdf><FRP01.nc>_______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk



More information about the ncl-talk mailing list