geopython / pywps

PyWPS is an implementation of the Web Processing Service standard from the Open Geospatial Consortium. PyWPS is written in Python.
https://pywps.org
MIT License
178 stars 117 forks source link

opendap support for outputs #512

Open huard opened 4 years ago

huard commented 4 years ago

Description

Our platform runs a number of different pywps servers. The outputs of the process are stored on a disk that is indexed by THREDDS. THREDDS offers remote access to netCDF files using DAP. So what we'd like to be able to do is for processes to return an opendap url if the data_format is set to DODS.

I think this can be done by

Then I think we'd configure the THREDDS server to serve what's in the PyWPS output_path. When writing a process' response, we would declare the dap_output ComplexOutput to be of format DODS and with as_reference=True, then do something like response['dap_output'].file = <path_to_netcdf_file>

The DODSStorageBuilder would write the file to disk, as usual, but instead of returning an http link to the file stored on the server, it would return a DODS link.