Skip to main content

SeaDAS-OCSSW Client Server Configuration

Install the SeaDAS science processors to enable local generation of archived datasets.

Introduction

The Sea, earth, atmosphere Data Analysis System (SeaDAS) processing components (OCSSW) can be installed only on Linux or MacOS (Intel) systems. For this reason, it has been difficult for Windows users to use the OCSSW programs in an efficient way. SeaDAS 8.1.0 and future releases use a client/server model, which enables the physical decoupling of the SeaDAS GUI application and the OCSSW package. (Note SeaDAS 8.0.0 was a Beta version and did not support client/server model. SeaDAS 7.5 also supports client/server model.)

Since the SeaDAS client and the OCSSW server reside on two separate machines, they need a way to share files. They can either transmit the files over the network or use a shared folder. For virtual machines, we can use a shared folder and eliminate the transmission of files over the network.

OCSSW Server Installation

The OCSSW server provides access to OCSSW programs through web services. The web services are packaged as an independent JAR (Java ARchive) file and can be deployed on a machine (real or virtual) capable of running OCSSW programs. With this new capability, we have additional options that enable SeaDAS to access to OCSSW programs:

  • Install Docker Desktop for Windows and run SeaDAS Science Processors via the Docker image.
  • Install a Linux virtual machine (e.g. VirtualBox) on the same Windows machine that has the SeaDAS GUI installed
  • Install the Windows Subsystem for Linux (WSL - available for Windows 10) on the same machine
  • Install the web services package on any Unix or MacOS machine that provides network access to other computers

In this manual, we explain how to configure the OCSSW server and the SeaDAS client for each scenario.

Section 1: Installing an OCSSW Server

Click for instructions:

Section 2: Configure the Virtual or Real Machine

  1. Set up Java:

    $ sudo add-apt-repository ppa:webupd8team/java  
    $ sudo apt update 
    $ sudo apt install oracle-java##-installer  
    $ sudo apt install oracle-java##-set-default
        

    Replace ##with the version number. (e.g. 12 ...tested with 8, 10 and 12, should work with later releases as well)

  2. Install python (3.6 or higher):

    $ sudo apt install python
        
  3. Install git:

    $ sudo apt install git
        

Section 3: Deploy the OCSSW Web Services Package

The OCSSW Web Services Package consists of two files than need to be downloaded to the server machine. For our example we will put them in the home directory.

  • .jar file -
    • The jar file is a self-contained webserver and multiple web services that access various OCSSW programs.
  • config,/var> file - VM | WSL | RM
    • The configuration file provides crucial information for establishing communication between the OCSSW server and the SeaDAS client.

We have not had success with openJDK for this server JAR, so you will need to install the official Oracle Java package - step #1 under "Configure the Virtual or Real Machine" above.

OCSSW Configuration File

In each environment, ocsswserver.configwill differ slightly. Click to see an example.

The config file properties related to port numbers and the folders are essential and should match the values in the client configuration file. Please see the "SeaDAS Client Configuration" section of this document for the corresponding client configuration properties and their values.

Starting and Stopping the OCSSW Server

To start the OCSSW server, execute the following command:

$ java -Xmx4G -jar seadas-ocsswserver.jar ocsswserver.config

To stop the OCSSW server, press Ctrl + C.

Section 4: SeaDAS Client Configuration

To configure the client to communicate with the server, the SeaDAS config file needs to be edited.

${user.dir}\.seadas\etc\seadas.properties

Click an environment to see which lines to edit in the seadas.properties file: