<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>You could use ncks for a single line extraction (see PSD page
      below that Dennis helpfully supplied). e.g. <br>
    </p>
    <p> ncks -v lat
<a class="moz-txt-link-freetext" href="https://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/interp_OLR/olr.mon.mean.nc">https://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/interp_OLR/olr.mon.mean.nc</a>
      a.nc</p>
    <p>or</p>
    <p>ncks -v olr
<a class="moz-txt-link-freetext" href="https://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/interp_OLR/olr.mon.mean.nc">https://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/interp_OLR/olr.mon.mean.nc</a>
      a.nc</p>
    <p>(ncks keeps coordinate variables too)<br>
    </p>
    <p>NCL will read and write a netCDF file with a single variable
      usinfg the OPEnDAP URL though you have to write a few lines of
      code. You could even make that work as command line routine and
      read in variable/file to save.<br>
    </p>
    <p>I'm sure there are other ways, too.<br>
    </p>
    <p>Cathy<br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 6/10/19 11:35 AM, Dennis Shea wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAOF1d_5Eq5pLPcVf2qths7Bu8gFPUbJChJbKaszZG_0rcynC0w@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div><br>
        </div>
        <div>re: " ... <b>only downloading specific variables of a
            NetCDF file"</b></div>
        <div><br>
        </div>
        <div>The question is unclear. In what context? <br>
        </div>
        <div>Are you talking about accessing a variable from a remote
          site [ eg: a NOAA server ] from within a NCL script? <br>
        </div>
        <div>     See: <a
            href="https://www.ncl.ucar.edu/Applications/opendap.shtml"
            moz-do-not-send="true"><b>https://www.ncl.ucar.edu/Applications/opendap.shtml</b></a></div>
        <div><br>
        </div>
        <div>----</div>
        <div><br>
        </div>
        <div>The ESRL: PSD site provides <br>
        </div>
        <div><a
href="https://www.esrl.noaa.gov/psd/data/gridded/using_dods.html#software"
            moz-do-not-send="true"><b>https://www.esrl.noaa.gov/psd/data/gridded/using_dods.html#software</b></a></div>
        <div><br>
        </div>
        <div>links to a number of tools to do what you want</div>
        <div><br>
        </div>
        <div>Good luck<br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Mon, Jun 10, 2019 at 10:01
          AM Micah Sklut <<a href="mailto:micahs2005@gmail.com"
            moz-do-not-send="true">micahs2005@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">
            <div>I haven't found any info regarding only downloading
              specific variables of a NetCDF file, but I just wanted to
              check with the NCL community in case I am missing
              something. </div>
            <div><br>
            </div>
            <div>Thank you. </div>
            <div><br>
            </div>
          </div>
          _______________________________________________<br>
          ncl-talk mailing list<br>
          <a href="mailto:ncl-talk@ucar.edu" target="_blank"
            moz-do-not-send="true">ncl-talk@ucar.edu</a><br>
          List instructions, subscriber options, unsubscribe:<br>
          <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
ncl-talk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a class="moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
----------------------------------------------
NOAA/ESRL PSD and CU CIRES
303-497-6263
<a class="moz-txt-link-freetext" href="https://www.esrl.noaa.gov/psd/people/cathy.smith/">https://www.esrl.noaa.gov/psd/people/cathy.smith/</a>

Emails about data/webpages may get quicker responses from emailing 
<a class="moz-txt-link-abbreviated" href="mailto:esrl.psd.data@noaa.gov">esrl.psd.data@noaa.gov</a></pre>
  </body>
</html>