<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi Chatchu,<br>
    <br>
    you should have received an error message because you try to extract
    data from a 4D variable tauuo which seems to be a 3D variable (with
    a different name tauuo_ssp ??). <br>
    <br>
    <tt>Variable: tauuo_ssp<br>
      ...<br>
      Dimensions and sizes: [time | 720] x [lat | 66] x [lon | 360]</tt><tt><br>
    </tt><tt>
      Coordinates: </tt><tt><br>
    </tt><tt>
             time: [569784..744360]</tt><tt><br>
    </tt><tt>
             lat: [  10..  75]</tt><tt><br>
    </tt><tt>
             lon: [ 180..-180]</tt><br>
    <span style="font-family:Georgia;font-size:16px;"><br>
    </span>Try<br>
    <br>
    <tt>   variable = f->tauuo_ssp(:,:,{-120.:120.})</tt><br>
    <br>
    -Karin<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 14.12.21 um 13:12 schrieb Chathurika
      via ncl-talk:<br>
    </div>
    <blockquote type="cite"
      cite="mid:41cc3861.d1a7.17db8dbc753.Coremail.chatu@scsio.ac.cn">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p style="font-family:Arial;"> <span
          style="font-family:Georgia;font-size:16px;">Hello Everyone,</span><br>
        <span style="font-family:Arial;"><br>
        </span><br>
        <span style="font-family:Georgia;font-size:16px;">I have a
          dataset and the variable summary as follows;</span><br>
        <span style="font-family:Arial;"><br>
        </span><br>
        <span style="font-family:Georgia;font-size:16px;">Variable:
          tauuo_ssp</span><br>
        <span style="font-family:Georgia;font-size:16px;">Type: float</span><br>
        <span style="font-family:Georgia;font-size:16px;">Total Size:
          45809280 bytes</span><br>
        <span style="font-family:Georgia;font-size:16px;">     
           11452320 values</span><br>
        <span style="font-family:Georgia;font-size:16px;">Number of
          Dimensions: 3</span><br>
        <span style="font-family:Georgia;font-size:16px;">Dimensions and
          sizes: [time | 720] x [lat | 66] x [lon | 360]</span><br>
        <span style="font-family:Georgia;font-size:16px;">Coordinates: </span><br>
        <span style="font-family:Georgia;font-size:16px;">       time:
          [569784..744360]</span><br>
        <span style="font-family:Georgia;font-size:16px;">       lat: [ 
          10..  75]</span><br>
        <span style="font-family:Georgia;font-size:16px;">       lon: [
          180..-180]</span><br>
        <span style="font-family:Georgia;font-size:16px;">Number Of
          Attributes: 7</span><br>
        <span style="font-family:Georgia;font-size:16px;">  depth :   0</span><br>
        <span style="font-family:Georgia;font-size:16px;"> 
          standard_name : surface_downward_x_stress</span><br>
        <span style="font-family:Georgia;font-size:16px;">  long_name :
          Surface downward x stress</span><br>
        <span style="font-family:Georgia;font-size:16px;">  units : N
          m-2</span><br>
        <span style="font-family:Georgia;font-size:16px;">  code : 548</span><br>
        <span style="font-family:Georgia;font-size:16px;">  _FillValue :
          -9e+33</span><br>
        <span style="font-family:Georgia;font-size:16px;"> 
          missing_value : -9e+33</span><br>
        <span style="font-family:Arial;"></span><br>
        <span style="font-family:Georgia;font-size:16px;">I want to
          select the pacific ocean (-120:120). However, this does not
          work. I tried out several ways to choose this subsection, but
          I always got the part that I wanted to subtract between
          -120:120 (means Atlantic plus the Indian Ocean instead of
          Pacific Ocean). </span><br>
        <span style="font-family:Arial;"><br>
        </span><br>
        <span style="font-family:Georgia;font-size:16px;">I tried this</span><br>
        <span style="font-family:Arial;"><br>
        </span><br>
        <span style="font-family:Georgia;font-size:16px;">=
          f->tauuo(:,0,{10:75},{-120:120}) and vice versa. </span><br>
        <span style="font-family:Georgia;font-size:16px;">=
          f->tauuo(:,0,{10:75},300:60}) and vice versa. </span><br>
        <span style="font-family:Arial;"></span><br>
        <span style="font-family:Georgia;font-size:16px;">Nothing
          selected the Pacific Ocean from 120E to 120W.</span><br>
        <span style="font-family:Arial;"><br>
        </span><br>
        <span style="font-family:Georgia;font-size:16px;">Could you
          please give me a hint on how I could do this? That would be a
          great help.</span><br>
        <span style="font-family:Arial;"><br>
        </span><br>
        <span style="font-family:Georgia;font-size:16px;">Thank you very
          very much and best regards,</span><br>
        <span style="font-family:Georgia;font-size:16px;">Chathu</span>
      </p>
      <span style="font-family:Arial;" class="spnEditorSign">
        <hr class="signature-separator" style="margin:0.5em
          0;width:10em;height:1px;background-color:#999;border:none;"
          align="left">
        <blockquote style="margin:0px 0px 0px
          40px;padding:0px;font-family:"Helvetica Neue",
          Helvetica, Arial,
sans-serif;font-size:small;font-variant-ligatures:normal;orphans:2;widows:2;border:none;">
          <span style="font-style:italic;font-size:medium;"><br>
          </span>
        </blockquote>
        <blockquote style="margin:0px 0px 0px
          40px;padding:0px;font-family:"Helvetica Neue",
          Helvetica, Arial,
sans-serif;font-size:small;font-variant-ligatures:normal;orphans:2;widows:2;border:none;">
          <span style="font-style:italic;font-size:medium;"><br>
          </span>
        </blockquote>
        <blockquote style="margin:0px 0px 0px
          40px;padding:0px;font-family:"Helvetica Neue",
          Helvetica, Arial,
sans-serif;font-variant-ligatures:normal;orphans:2;widows:2;border:none;">
          <span style="font-style:italic;"><span
              style="font-size:x-small;"></span></span>
          <div> <span style="font-style:italic;"><span
                style="font-size:x-small;"></span></span> </div>
          <div>
            <div id="ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2251"> <span
                style="font-style:italic;"><span
                  style="font-size:x-small;"></span></span> </div>
          </div>
          <div>
            <div id="ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2252"> <span
                style="font-style:italic;"><span
                  style="font-size:x-small;"></span></span> </div>
            <div id="ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2252"> <span
                style="font-style:italic;"><span
                  style="font-size:x-small;"></span></span> </div>
          </div>
          <div>
            <div id="ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264"> <span
                style="font-style:italic;"><span
                  style="font-size:x-small;"></span></span> </div>
          </div>
          <div id="ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264"
            style="font-size:small;"> <span
              style="font-style:italic;font-size:medium;"><br>
            </span> </div>
          <div id="ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264"
            style="font-size:small;"> <i><span
                style="font-size:xx-small;"></span></i> </div>
          <div id="ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264"
            style="font-size:small;"> <i><span
                style="font-size:xx-small;"></span></i> </div>
          <div id="ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264"
            style="font-size:small;"> <i><span
                style="font-size:xx-small;"></span></i> </div>
          <div id="ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264"
            style="font-size:small;"> <i><span
                style="font-size:xx-small;"></span></i> </div>
          <div id="ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264"
            style="font-size:small;"> <span
              style="font-style:italic;font-size:medium;"><br>
            </span> </div>
          <div id="ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264"
            style="font-size:small;"> <span
              style="font-style:italic;font-size:medium;"></span> </div>
          <div id="ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264"
            style="font-size:small;"> <span
              style="font-style:italic;font-size:medium;"></span> </div>
        </blockquote>
      </span><br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
ncl-talk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a class="moz-txt-link-freetext" href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></pre>
    </blockquote>
    <br>
  </body>
</html>