Can anyone suggest a client for reading the OpenDAP "binary" data served
from the default OpenDAP web interface? These files have extension .dods
and they are returned by clicking the "Get Binary" button at the top of
the dataset .html url form.
-Ed
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Edward D. Zaron
Research Assistant Professor
Department of Civil and Environmental Engineering
Portland State University
Portland, OR 97207-0751
Phone: (503)-725-2435
FAX: (503)-725-5950
za...@cecs.pdx.edu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Hello All,
>
> Can anyone suggest a client for reading the OpenDAP "binary" data served from the default OpenDAP web interface? These files have extension .dods and they are returned by clicking the "Get Binary" button at the top of the dataset .html url form.
Ed, You can point anything that reads netCDF and is using the newest version of that library (4.1) at those files and read them. Otherwise, you can use the getdap tool that's bundled with libdap to read them, albeit as ASCII, and use a little creative piping to get the data into binary form. Note that starting with version 1.5, our server can return a netCDF file in addition to the .dods response.
James
>
> -Ed
>
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Edward D. Zaron
> Research Assistant Professor
> Department of Civil and Environmental Engineering
> Portland State University
> Portland, OR 97207-0751
> Phone: (503)-725-2435
> FAX: (503)-725-5950
> za...@cecs.pdx.edu
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
--
James Gallagher
jgallagher at opendap.org
406.723.8663
Or, since you use Matlab, too other toolboxes that can access remote data directly include njtbx (http://sourceforge.net/apps/trac/njtbx/wiki/DownloadNjtbx-current) and nctoolbox (http://code.google.com/p/nctoolbox/).
There also is "loaddap" from OpeNDAP (http://www.opendap.org).
If this isn't clear I can provide and example.
-Roy M.
**********************
"The contents of this message do not reflect any position of the U.S. Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
1352 Lighthouse Avenue
Pacific Grove, CA 93950-2097
e-mail: Roy.Men...@noaa.gov (Note new e-mail address)
voice: (831)-648-9029
fax: (831)-648-8440
www: http://www.pfeg.noaa.gov/
"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected"
Thanks, Ellyn and James,My usual tools are ncdump, ncview, nco, and snctools.I'm using netcdf 4.1.2-beta2 currently:ezaron$ nc-config --versionnetCDF 4.1.2-beta2-snapshot2010111822Here are the results when I try to open the .dods file:ezaron$ ncdump -k dataset-duacs-nrt-over30d-global-merged-madt-h.dodsncdump: dataset-duacs-nrt-over30d-global-merged-madt-h.dods: NetCDF: Unknown file formatezaron$ ncks -A -x dataset-duacs-nrt-over30d-global-merged-madt-h.dods tmp.ncERROR NC_ENOTNC Not a netCDF file
I have attached the .dods file for you. It is just a subset of the
complete file and only contains the coordinate variables and dimensions.
Regarding Roy's comment that I should access the data through the usual
http schema: I agree, but I'm making lots of plots with the data and I'm
not sure how many times I will need to re-load it to figure out the
precise subset to display, etc. I think the provider will be changing
the url for the data shortly, so I'd rather spend the bandwidth getting
files now.
By the way, my question is not at all urgent -- I found a way to get the
netcdf files via wget/ftp. But this is the second time in as many months
that I wanted to get the netcdf files from the OpenDAP server, and I
couldn't find any documentation about how to use the .dods file. The
workaround with wget/ftp is, to me, inelegant compared to the nice
interface available through OpenDAP-enabled netcdf.
Thanks for having a look at this.
Regards,
Ed
Dennis Heimbigner wrote:
> Can one of you send me a copy of
> the file: dataset-duacs-nrt-over30d-global-merged-madt-h.dods
> =Dennis Heimbignefr
Dennis Heimbigner wrote:
> Can one of you send me a copy of
> the file: dataset-duacs-nrt-over30d-global-merged-madt-h.dods
> =Dennis Heimbignefr
>
What I think you are missing is the that .dods structure is what is sent by the OpeNDAP protocol, and the tools everyone has mention knows how to read this structure and transform it into files. So if you use nco, you can access it and save it into netcdf. Same with many of the other tools. If you use one of the matlab tools, you can save it into any one of a number of formats.
HTH,
-Roy
> --
> You received this message because you are subscribed to the Google Groups "OPeNDAP" group.
> To post to this group, send email to ope...@opendap.org.
> To unsubscribe from this group, send email to opendap+u...@opendap.org.
> For more options, visit this group at http://groups.google.com/a/opendap.org/group/opendap/?hl=en.
On Jan 3, 2011, at 6:41 PM, ed zaron wrote:Thanks, Ellyn and James,My usual tools are ncdump, ncview, nco, and snctools.I'm using netcdf 4.1.2-beta2 currently:ezaron$ nc-config --versionnetCDF 4.1.2-beta2-snapshot2010111822Here are the results when I try to open the .dods file:ezaron$ ncdump -k dataset-duacs-nrt-over30d-global-merged-madt-h.dodsncdump: dataset-duacs-nrt-over30d-global-merged-madt-h.dods: NetCDF: Unknown file formatezaron$ ncks -A -x dataset-duacs-nrt-over30d-global-merged-madt-h.dods tmp.ncERROR NC_ENOTNC Not a netCDF fileEd,Sorry for the confusion. I'm CC'ing Dennis Heimbigner on this since he is the main developer of the netcdf 4.x opendap code. I'm pretty sure that you can read a .dods file using netcdf 4.1 with a file:/... kind of a URL.Dennis: Am I correct or do I have this confused with something else?