[Thread Prev][Thread Next][Index]

Re: Data download



Hi Ben,
Welcome to Ferret!   There is an example of how to access a NetCDF file from a
DODS server in the Ferret Users Guide; look up "DODS, accessing remote data"
in the index, which points to Ch2 Sec7.2.   Here is the example from the Users Guide,

yes? USE "http://www.ferret.noaa.gov/cgi-bin/nph-nc/data/coads_climatology.nc"

! Once the dataset has been initialized, it is used just like any other local dataset.

yes? SHOW DATA
     currently SET data sets:
    1> http://www.ferret.noaa.gov/cgi-bin/nph-nc/data/coads_climatology.nc  (default)
 name     title                   I       J       K       L
 SST      SEA SURFACE TEMPERATURE 1:180   1:90    ...     1:12
 AIRT     AIR TEMPERATURE         1:180   1:90    ...     1:12
 SPEH     SPECIFIC HUMIDITY       1:180   1:90    ...     1:12
 WSPD     WIND SPEED              1:180   1:90    ...     1:12
 UWND     ZONAL WIND              1:180   1:90    ...     1:12
 VWND     MERIDIONAL WIND         1:180   1:90    ...     1:12
 SLP      SEA LEVEL PRESSURE      1:180   1:90    ...     1:12

yes? LIST/X=140W/Y=2N/T="16-feb" sst
             VARIABLE : SEA SURFACE TEMPERATURE (Deg C)
             FILENAME : coads_climatology.nc
             FILEPATH : http://www.ferret.noaa.gov/cgi-bin/nph-nc/data/
             LONGITUDE: 141W
             LATITUDE : 1N
             TIME     : 15-FEB      16:29
          26.39



To save the data or a portion of it, use the FILE command.  NetCDF is the
recommended format for Ferret, and the Ferret command SAVE is an alias to
FILE/FORM=cdf .  So after opening the data set you might do something like this:

yes? SAVE/FILE=myfile.cdf/X=150:200/Y=-40:40 sst, uwnd, vwnd



Ben Burford wrote:
Hello All,

I am a newcomer to Ferret.  I want to use Ferret to access data from a remot
e DODS server, and to then write that data into a file (in either acsii or n
etCDF format) on my own computer as a local file.  Can anyone tell me the se
quence of commands to do that (or maybe just send me a script that can perfo
rm this, that will show me an example of the process)?

Thank you,

Ben
Remote Sensing Technology Center
Tokyo

  

[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement