<div dir="ltr"><div dir="ltr"><a href="http://www.ncl.ucar.edu/Applications/spec.shtml"><b>http://www.ncl.ucar.edu/Applications/spec.shtml</b></a></div><div><b>Example: CrosSpc_TimeLon_1.ncl</b></div><div><b><br></b></div><div>===</div><div>The datasets used were some you have.</div><div>The example illustrates the 'mechanics' of doing the freq vs longitude.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 21, 2019 at 3:56 AM Soma Roy <<a href="mailto:somaroy892@gmail.com">somaroy892@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Please kindly inform me..<div dir="auto"><br></div><div dir="auto">Soma</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Mar 20, 2019, 22:45 Soma Roy <<a href="mailto:somaroy892@gmail.com" target="_blank">somaroy892@gmail.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I am trying with the attached script as you said. But getting constant values..<div><br></div><div>Summary of the input data along with intermediate steps are as follows;</div><div><br></div><div><div>Variable: dslp</div><div>Type: double</div><div>Total Size: 93312000 bytes</div><div> 11664000 values</div><div>Number of Dimensions: 3</div><div>Dimensions and sizes: [time | 45] x [lat | 360] x [lon | 720]</div><div>Coordinates:</div><div> time: [25748..41819]</div><div> lat: [-89.75..89.75]</div><div> lon: [-179.75..179.75]</div><div>Number Of Attributes: 5</div><div> long_name : diurnal temperature range</div><div> units : degrees Celsius</div><div> _FillValue : 9.969209968386869e+36</div><div> missing_value : 9.969209968386869e+36</div><div> correlation_decay_distance : 750</div><div><br></div><div>Variable: dslp2</div><div>Type: double</div><div>Total Size: 259200 bytes</div><div> 32400 values</div><div>Number of Dimensions: 2</div><div>Dimensions and sizes: [time | 45] x [lon | 720]</div><div>Coordinates:</div><div> time: [25748..41819]</div><div> lon: [-179.75..179.75]</div><div>Number Of Attributes: 6</div><div> _FillValue : 9.969209968386869e+36</div><div> long_name : diurnal temperature range</div><div> units : degrees Celsius</div><div> correlation_decay_distance : 750</div><div> missing_value : 9.969209968386869e+36</div><div> average_op_ncl : dim_avg_n over dimension(s): lat</div><div><br></div><div>Variable: tslp2</div><div>Type: double</div><div>Total Size: 259200 bytes</div><div> 32400 values</div><div>Number of Dimensions: 2</div><div>Dimensions and sizes: [time | 45] x [lon | 720]</div><div>Coordinates:</div><div> time: [25748..41819]</div><div> lon: [-179.75..179.75]</div><div>Number Of Attributes: 6</div><div> _FillValue : 9.969209968386869e+36</div><div> long_name : precipitation</div><div> units : mm/month</div><div> correlation_decay_distance : 450</div><div> missing_value : 9.969209968386869e+36</div><div> average_op_ncl : dim_avg_n over dimension(s): lat</div><div><br></div><div>Variable: pr</div><div>Type: double</div><div>Total Size: 5760 bytes</div><div> 720 values</div><div>Number of Dimensions: 1</div><div>Dimensions and sizes: [720]</div><div>Coordinates:</div><div>Number Of Attributes: 20</div><div> yslope : 1e+36</div><div> ylag1 : 1e+36</div><div> yvaro : 1e+36</div><div> yvari : 1e+36</div><div> yavei : 1e+36</div><div> xslope : 1e+36</div><div> xlag1 : 1e+36</div><div> xvaro : 1e+36</div><div> xvari : 1e+36</div><div> xavei : 1e+36</div><div> coher_probability : ( 0, 0, 0, 0 )</div><div> bw : 1e+36</div><div> phase : <ARRAY of 22 elements></div><div> coher : <ARRAY of 22 elements></div><div> quspc : <ARRAY of 22 elements></div><div> cospc : <ARRAY of 22 elements></div><div> frq : <ARRAY of 22 elements></div><div> spcy : <ARRAY of 22 elements></div><div> spcx : <ARRAY of 22 elements></div><div> _FillValue : 9.969209968386869e+36</div><div><br></div><div><div>Variable: h1</div><div>Type: double</div><div>Total Size: 176 bytes</div><div> 22 values</div><div>Number of Dimensions: 1</div><div>Dimensions and sizes: [22]</div><div>Coordinates:</div><div><br></div><div>Variable: h2</div><div>Type: double</div><div>Total Size: 176 bytes</div><div> 22 values</div><div>Number of Dimensions: 1</div><div>Dimensions and sizes: [22]</div><div>Coordinates:</div></div></div><div><br></div><div><br></div><div>All values are constant like;</div><div><div> yslope : 1e+36</div><div> ylag1 : 1e+36</div><div> yvaro : 1e+36</div><div> yvari : 1e+36</div></div><div>and so on..</div><div><br></div><div>Please let me know where I am doing wrong/missing something.</div><div><br></div><div>Thanking you,</div><div>Soma</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 20, 2019 at 8:07 PM Soma Roy <<a href="mailto:somaroy892@gmail.com" rel="noreferrer" target="_blank">somaroy892@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Can you kindly give me a hint how to use the function over a variable (say 3D variable as time, lat, lon) as you said?<div dir="auto"><br></div><div dir="auto">Thanking you,</div><div dir="auto">Soma</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Mar 20, 2019, 20:00 Dennis Shea <<a href="mailto:shea@ucar.edu" rel="noreferrer" target="_blank">shea@ucar.edu</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>For sure, these were created with NCL. However, I am not sure how these were created.</div><div><br></div><div>NCL's <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/specxy_anal.shtml" rel="noreferrer noreferrer" target="_blank"><b>specxy_anal</b></a><br></div><div><br></div><div>could have been applied <b>at each longitude</b> (loop over longitudes) and the results stored in arrays:</div><div><br></div><div> COHER(frq,lon), PHASE(frq,lon), COSPC(frq,lon), QUSPC(frq,lon)</div><div><br></div><div>===</div><div>Other, possibly useful, links:<br></div><div><br></div><div><a href="http://www.ncl.ucar.edu/Applications/space_time.shtml" rel="noreferrer noreferrer" target="_blank"><b>http://www.ncl.ucar.edu/Applications/space_time.shtml</b></a></div><div><br></div><div><a href="http://www.ncl.ucar.edu/Applications/mjoclivar.shtml" rel="noreferrer noreferrer" target="_blank"><b>http://www.ncl.ucar.edu/Applications/mjoclivar.shtml</b></a></div><div><b>Example 11</b></div><div>====</div><div><br></div><div>Good luck<br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 20, 2019 at 2:42 AM Soma Roy <<a href="mailto:somaroy892@gmail.com" rel="noreferrer noreferrer" target="_blank">somaroy892@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hello,<div dir="auto"><br></div><div dir="auto">I am trying to calculate Coherence, Cospectrum, Quadrature and phase between two variables (two signals).</div><div dir="auto"><br></div><div dir="auto">Is there any function available in ncl to plot like below attached figure for the above?</div><div dir="auto"><br></div><div dir="auto">Please kindly inform me.</div><div dir="auto"><br></div><div dir="auto">Thanking you,</div><div dir="auto">Soma</div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" rel="noreferrer noreferrer" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>