[Thread Prev][Thread Next][Index]

Re: [ferret_users] ferret and ERDDAP



HI,

I'll take a stab at elaborating. An ERDDAP server is an OPeNDAP server and takes the later part of its name from the Data Access Protocol (DAP) of OPeNDAP.

Broadly speaking, data in ERDDAP servers are organized into two subcategories which the ERDDAP documentation refers to as "TABLEDAP" and "GRIDDAP" data sets. GRIDDAP datasets are rectilinear grids in up to 4 dimensions (XYZT) which follow the CF conventions for grids, and TABLEDAP data sets are served as OPeNDAP sequences (more in a moment). However, both data types can also be retrieved from the server in a couple of dozen different data formats. Given an ERDDAP URL (https://coastwatch.pfeg.noaa.gov/erddap/) you can get a nice list of the GRIDDAP data sets using this URL (https://coastwatch.pfeg.noaa.gov/erddap/griddap/index.html) and the TABLEDAP data sets using this URL (https://coastwatch.pfeg.noaa.gov/erddap/tabledap/index.html)

So to use a grid data set in PyFerret, you operate just as you did in the example you shared (clicking on the "data" link on one of the data sets the "GRIDDAP" URL above) you land on an interactive page for that data set. The PyFerret accessible URL is the same minus the ".html".

[rhs@dunkel ~]$ pyferret
        NOAA/PMEL TMAP
        PyFerret v7.63 (optimized)
        Linux 2.6.32-754.33.1.el6.x86_64 - 09/28/20
         2-Nov-20 04:48

yes? use "https://coastwatch.pfeg.noaa.gov/erddap/griddap/jplAvisoSshMon"
yes? show data
     currently SET data sets:
    1> https://coastwatch.pfeg.noaa.gov/erddap/griddap/jplAvisoSshMon  (default)
 name     title                             I         J         K         L
 SSHAG    Sea Surface Height Above Geoid   1:360     1:180     ...       1:219
 NOBS     Number of Observations           1:360     1:180     ...       1:219
 STDERR   Standard Error                   1:360     1:180     ...       1:219

yes?


Using PyFerret with the TABLEDATA data is a bit different. OPeNDAP sequences are indeterminant in length and it's difficult for PyFerret to negotiate with the server efficiently for the information in needs via the OPeNDAP sequences DAP protocol. So, when we use TABLEDAP data sets in our own software (like LAS, and the older version running against the data Patrick first mentioned) we generally use ERDDAP constraint expressions to determine the subset of the data we find interesting and then download a netCDF CF DSG data file to use with Ferret. 

Suppose you wanted just the November data from this experiment, you could get is with a URL like this: https://ferret.pmel.noaa.gov/pmel/erddap/tabledap/ThirtyMinute_fd49_7acb_ec76.ncCF?S_41&latitude>=-90&latitude<=90&time>=1995-11-01T00:00:00.000Z&time<=1995-11-30T00:00:00.000Z&orderBy("id,time"). You can download it with wget (using the encoded version which you can construct and copy from the page I linked above) or from you browser which will do the encoding for you.

Then you can plot the result in PyFerret using the new DSG capabilities.

[rhs@dunkel ~]$ pyferret
        NOAA/PMEL TMAP
        PyFerret v7.63 (optimized)
        Linux 2.6.32-754.33.1.el6.x86_64 - 09/28/20
         2-Nov-20 05:17

yes? use ThirtyMinute_fd49_7acb_ec76.ncCF
yes? plot S_41
yes? go land_detail



I hope this helps.

Roland




On Sun, Nov 1, 2020 at 2:04 AM Ryo Furue <furue@xxxxxxxxxx> wrote:
Dear Patrick and Joshua,

On Sat, Oct 31, 2020 at 1:37 AM Joshua Osborne - NOAA Affiliate <joshua.osborne@xxxxxxxx> wrote:
[ . . . ]

  You can, therefore, use ERDDAP as a data source from within PyFerret just as you would any other data source.


I wonder if you can elaborate on this?  I'm curious and interested.

I'm familiar with OPeNDAP servers.  If you visit a data server such as apdrc.soest.hawaii.edu , you find this kind of page:

http://apdrc.soest.hawaii.edu/dods/public_data/Argo_Products/annual_mean/Gridded_annual_mean.info

where you find a URL of the dataset you want to use, such as

http://apdrc.soest.hawaii.edu:80/dods/public_data/Argo_Products/annual_mean/Gridded_annual_mean

You open this URL on PyFerret, like so

yes? set data "http://apdrc.soest.hawaii.edu:80/dods/public_data/Argo_Products/annual_mean/Gridded_annual_mean"
yes? show data 

and then you can use the dataset as if it were a local netCDF file.

What about ERDDAP ?  The page (https://ferret.pmel.noaa.gov/pmel/erddap/index.html ) seems to be saying that OPeNDAP is somehow included or covered or something.

Regards,
Ryo



--
The policy of the DOC and NOAA requires me to inform you that the opinions in this email are mine and do not necessarily represent the opinion or policy of the Department of Commerce or the National Oceanic and Atmospheric Administration.

[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement