[ncl-talk] anomaly plot
Mary Haley
haley at ucar.edu
Mon Jan 8 10:32:11 MST 2018
Dear Sajede,
Without being able to see your data or run your script, it's almost
impossible to debug your code.
You have several hard-coded index values which we have no way of knowing if
they are correct.
For example, how were index values 1211, 1559, 1583, and 1643 chosen below?
SST2 = SST(1211:1559:12,:,:)
meanClimatology=dim_avg_n_Wrap(SST2,0) ;mean of DECEMBER in period of
1950_1979
exel=SST(1583,:,:) ;extreme elnino 1981
anomexel=exel - meanClimatology
;........................................................................................
el=SST(1583,:,:) ;elnino1982
anomel=el - meanClimatology
;....................................................................................
exla=SST(1643,:,:)
Did you debug your code to make sure these values are correct? That is,
did you use print and printVarSummary to examine the variables and make
sure you have the correct time indexes?
It is much cleaner and safer to use functions like "cd_calendar", and "ind"
to calculate and select index values for the desired time range.
For some cd_calendar/ind examples, see:
panel_33.ncl:
http://www.ncl.ucar.edu/Applications/panel.shtml#ex33
indices_nino_1.ncl:
http://www.ncl.ucar.edu/Applications/indices.shtml
If you continue to have problems, it would help if you explain what the
code is doing and what these values represent. Also, it helps if you
describe why you think the plot is wrong.
Thanks,
--Mary
On Mon, Jan 1, 2018 at 2:07 PM, sjd.marjani via ncl-talk <ncl-talk at ucar.edu>
wrote:
> Hi and HAPPY new YEAR .
>
> my name is Sajede
>
>
> I send you my script in Word Document
>
> in that ,i highlightet 2 parts
>
> => part1 is "YELLOW" which contains my problem
>
> =>part2 is "GREEN" which has no problem in ploting
>
> and also i send you the related plots in png format
>
> **************************************************
>
> my problem is why the PART.png has PHASE differences?
>
> Thank YOU in advance
>
> best regard
>
> Sajede
>
> _______________________________________________
> 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/20180108/39b2df18/attachment.html>
More information about the ncl-talk
mailing list