Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.36 KB

README.md

File metadata and controls

43 lines (30 loc) · 1.36 KB

server

Server to host NetCDF files and provide a WML interface.

Overview

This server was generated by the swagger-codegen project.

To run the server, please execute the following:

sudo pip3 install -U connexion # install Connexion from PyPI
python3 app.py

and open your browser to here:

http://localhost:8080/regis6/NetCDFServer/1.0.0/ui/

Your Swagger definition lives here:

http://localhost:8080/regis6/NetCDFServer/1.0.0/swagger.json

Set up docker

To start:

  1. clone repository: git clone https://github.com/ReGIS-org/server.git
  2. go to server directory: cd server
  3. start webdav and docker container: docker-compose up -d
  4. go to scripts directory: cd ../scripts
  5. copy netcdf file to webdav container: curl -T tos_O1_2001-2002.nc http://webdav:vadbew@localhost:8888/
  6. upload file from webdav container to ncwms: python upload.py
  7. check if the upload succeeded: go to http://localhost/ncWMS/admin/ in a web browser (user/password: ncwms/ncwms)

Notes:

  • in order for docker-compose to run, the docker deamon must be running, for example: sudo service docker start
  • example netcdf files can be downloaded from: http://www.unidata.ucar.edu/software/netcdf/examples/files.html
  • the name of the expected netcdf file is specified in the file server/formdata.json (on line 2)