Data Management

DDMS Overview

Introduction

Basic Elements

Data Objects

Communications

User Applications

Manipulating Data

Installation

Further Info

Data Management

Detailed Information About the JGOFS Distributed Database Management System (DDMS)

MATLAB [© Mathworks] access

The MATLAB interface uses the loadjg function. The code to build loadjg is distributed with some versions of the DDMS software distribution package.
loadjg
This is a cmex program (like an M file, but compiled and written in C) which functions like MATLAB's load command but can accept both .mat files and JGOFS object names. The syntax is

>> loadjg('objectname'[,'NaN'])

For example, to load the Arabian Sea Niskin bottle data from cruise TTN-045
>> loadjg('//usjgofs.whoi.edu/jgofs/arabian/ttn-045/bottle')

Here's an example:
% Plot nitrate profile for a data selection
%
% read in data from JGOFS data system
% Arabian Sea TTN-045 bottle nitrate data for stations 10 through 20
loadjg('//usjgofs.whoi.edu/jgofs/arabian/ttn-045/bottle(sta,press,NO3,sta>=10,sta<=20)','NaN');
% and plot
figure(1);
plot(NO3,press,'bo');
axis ij;
xlabel('Nitrate   umol/L');ylabel('Pressure   decibars');
title('Nitrate from Arabian Sea TTN-045');

and another example:
% Plot nitrate sample distribution for a data selection
%
% read in data from JGOFS data system
% Arabian Sea TTN-045 bottle nitrate data for stations 10 through 20
loadjg('//usjgofs.whoi.edu/jgofs/arabian/ttn-045/bottle(sta,press,NO3,sta>=10,sta<=20)','NaN');
% and plot
figure(2);
plot(sta,press,'b*');
axis ij;
axis([9,21,0,4500]);
xlabel('TTN-045 Station Number');ylabel('Pressure   (decibars)');
title('Niskin Nitrate samples from Arabian Sea cruise TTN-045'); 



 


 

back to top