Pydap - dods file

22 views
Skip to first unread message

Den B

unread,
Apr 12, 2018, 2:55:42 AM4/12/18
to pydap
Hi,

i would like to serve netcdf files, but i would like to use .dods files in order to have the possibilty to download just a part of the files.
I have installed Pydap 3.2 and handlers on a ubuntu 17.10 server system, and I have prepared .nc files.
But now I don't know how to create the associated .das .dds and .dods files with Pydap.

Please could you help me ?

Thank you in advance

Sincerely

Haines, Sara M

unread,
Apr 17, 2018, 10:18:35 AM4/17/18
to py...@googlegroups.com, Haines, Sara M

I suspect you are running into the same issue that others have had installing the server and netcdf handlers.  The pypi version was out of sync with the github version as of July 2017.  Might still be the case. We are running the pydap version 3.2.2 successfully after following steps listed below.

 

Are you getting an error message when you run the standalone server?  Or just not seeing any .das, .dds. response when you run the standalone server?  The server, with installed handlers (netcdf in your case), should generate these responses. 

 

If you are not having the same issue as described here, please provide  any error messages.

 

----------------------------------

 

Here are my notes on installing pyday server with  netcdf handlers.

 

# create virtual environment

$ virtualenv --version

15.1.0

$ virtualenv pydap

$ cd pydap

$ source bin/activate

 

  1. Install latest pydap (currently at 3.2.2)

(pydap) $ pip install pydap

 

Handlers on Pypi are out of date relative to the new pydap development

(pydap) $ pip install pydap.handlers.netcdf

 

# get the lastest -- to see dds, das, html repsonse on webrowser, without this it doesn't work

# posted answer on Google Groups listserve for pydap

(pydap) $ pip install git+https://github.com/pydap/pydap.handlers.netcdf.git  

# to install server

(pydap) $ pip install pydap[server]             

(pydap) $ pip install pydap[handlers.netcdf] # only installs dependencies but not code for handler

(pydap) $ pip install pydap[functions]          # to install coards (1.0.5) and gsw (3.0.6) since it crashes without these

 

# test standalone server

(pydap) $ mkdir -p server/data

(pydap) $ wget http://whewell.marine.unc.edu/test_data/coads.nc -O server/data/coads.nc

(pydap) $ wget http://whewell.marine.unc.edu/test_data/sample.csv -O server/data/sample.csv

(pydap) $ pydap --data server/data

 

Point browser to default binding and port used for pydap. 

 

 

 

Sara Haines

Department of Marine Sciences

University of North Carolina

Chapel Hill, NC 27599-3300

919-962-1253

sarah...@unc.edu

--
You received this message because you are subscribed to the Google Groups "pydap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pydap+un...@googlegroups.com.
To post to this group, send email to py...@googlegroups.com.
Visit this group at https://groups.google.com/group/pydap.
For more options, visit https://groups.google.com/d/optout.

Chris Barker

unread,
Apr 17, 2018, 1:05:11 PM4/17/18
to py...@googlegroups.com, Haines, Sara M
you may want to consider using conda and conda-forge  to get pydap -- you may have better luck getting everything in sync.

-CHB


To unsubscribe from this group and stop receiving emails from it, send an email to pydap+unsubscribe@googlegroups.com.


To post to this group, send email to py...@googlegroups.com.
Visit this group at https://groups.google.com/group/pydap.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "pydap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pydap+unsubscribe@googlegroups.com.

To post to this group, send email to py...@googlegroups.com.
Visit this group at https://groups.google.com/group/pydap.
For more options, visit https://groups.google.com/d/optout.



--

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris....@noaa.gov

Den B

unread,
Apr 19, 2018, 9:59:25 AM4/19/18
to pydap
Hi Sara,

thank you very much for your help !

I have installed the new handlers and now it works fine !

Thanks again

Denis

Den B

unread,
Apr 19, 2018, 10:01:15 AM4/19/18
to pydap
Hi Chris,

thank you very much for your advice


Denis

To unsubscribe from this group and stop receiving emails from it, send an email to pydap+un...@googlegroups.com.


To post to this group, send email to py...@googlegroups.com.
Visit this group at https://groups.google.com/group/pydap.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "pydap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pydap+un...@googlegroups.com.

To post to this group, send email to py...@googlegroups.com.
Visit this group at https://groups.google.com/group/pydap.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages