<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Extract substance fields from SDS file with waquaio</title>
  <link rel="self" href="https://dlt-acc.firelay.cloud/c/message_boards/find_thread?p_l_id=4041874&amp;threadId=4391127" />
  <subtitle>Extract substance fields from SDS file with waquaio</subtitle>
  <id>https://dlt-acc.firelay.cloud/c/message_boards/find_thread?p_l_id=4041874&amp;threadId=4391127</id>
  <updated>2026-05-12T18:34:23Z</updated>
  <dc:date>2026-05-12T18:34:23Z</dc:date>
  <entry>
    <title>RE: Extract substance fields from SDS file with waquaio</title>
    <link rel="alternate" href="https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=4041874&amp;messageId=4391130" />
    <author>
      <name>Sjoerd de Groot</name>
    </author>
    <id>https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=4041874&amp;messageId=4391130</id>
    <updated>2018-09-06T18:17:44Z</updated>
    <published>2018-09-06T18:17:44Z</published>
    <summary type="html">&lt;p&gt;I'm sorry, I was too quick with my question. Entering the field as
  'subst:salinity' works fine. Problem is resolved.&lt;/p&gt;</summary>
    <dc:creator>Sjoerd de Groot</dc:creator>
    <dc:date>2018-09-06T18:17:44Z</dc:date>
  </entry>
  <entry>
    <title>Extract substance fields from SDS file with waquaio</title>
    <link rel="alternate" href="https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=4041874&amp;messageId=4391126" />
    <author>
      <name>Sjoerd de Groot</name>
    </author>
    <id>https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=4041874&amp;messageId=4391126</id>
    <updated>2018-09-06T14:37:21Z</updated>
    <published>2018-09-06T14:37:20Z</published>
    <summary type="html">&lt;p&gt;Dear reader,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I have a Simona SDS file, from which I want to read data for
  postprocessing. Using the waquaio.m script, I can extract all fields
  succesfully, except the substances (salinity in this case). When I run: &lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;[subst units] = waquaio(FileData,'NG03_02-16nov_2007','substances');&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I get two 1x1 cells, containing 'Salinity' and 'ppt', indicating that
  the salinity field is present in the file. However, when I run:&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;[field times] = waquaio(FileData,'NG03_02-16nov_2007','subst:&amp;lt;Salinity&amp;gt;');&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I get the following error:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
  &lt;u&gt;Error using waquaio&amp;gt;waqua_get_spatial (line 1902)&lt;br /&gt; Invalid
    substance name: &amp;lt;salinity&amp;gt;&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;u&gt;Error in waquaio (line 295)&lt;br /&gt;     [varargout{1:nargout}] = waqua_get_spatial(sds,exper,field,dim,refdate,varargin);&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;u&gt;Error in test_waqua (line 12)&lt;br /&gt; [field time] = waquaio(FileData,'NG03_02-16nov_2007','subst:&amp;lt;Salinity&amp;gt;');&lt;/u&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Am I typing the format wrong? Can someone help me? I writing the
  substance field as just 'Salinity' or '&amp;lt;Salinity&amp;gt;' and a couple
  of other formats, but I can't get it to work.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Sjoerd&lt;/p&gt;</summary>
    <dc:creator>Sjoerd de Groot</dc:creator>
    <dc:date>2018-09-06T14:37:20Z</dc:date>
  </entry>
</feed>
