Subset variables

20 views
Skip to first unread message

Kimberly Hyde - NOAA Federal

unread,
Aug 12, 2026, 4:59:15 PM (14 days ago) Aug 12
to ERDDAP
Hello,
Is there a specific way to add subsetVariables in datasets.xml? GenerateDatasetsXml created the snippet below, which works. 
<addAttributes>
        <att name="cdm_data_type">Point</att>
        <att name="Conventions">COARDS, CF-1.10, ACDD-1.3</att>
        <att name="keywords">chlorophyll, HPLC, optical water types, Rrs, North America, coastal, surface, in situ, optical</att>
        <att name="keywords_vocabulary">GCMD Science Keywords</att>
        <att name="sourceUrl">https://www.oceancolour.org/</att>
        <att name="subsetVariables">OWT_Array</att>
        <att name="institution">NOAA | NMFS | NEFSC </att>
        <att name="creator_type">institution</att>
        <att name="creator_url">https://www.noaa.gov/</att>
        <att name="title">Optical | NEFSC | Coastal North America In Situ Chlorophyll and Satellite Match-ups | Chlorophyll, Optical Water Type | North America | 2000-2026 </att>
    </addAttributes>

However, if I try to add other variables such as "source" or "experiment",
<att name="subsetVariables">OWT_Array, source</att>,
I get the error in the attached screenshot. The odd thing is I'm not getting any Status load errors and from what I can tell the DasDds output looks good (also attached).

Any advice on how to properly add other parameters as a subsetVariable would be greatly appreciated.

Thank you,
Kim



Screenshot 2026-08-12 at 4.19.27 PM.png
DasDds.log

Mathew Biddle - NOAA Federal

unread,
Aug 13, 2026, 7:41:52 AM (13 days ago) Aug 13
to Kimberly Hyde - NOAA Federal, ERDDAP
Hi Kim,

Looks like ERDDAP can't find the variable "OWT_Array". Be sure you are using the appropriate variable <destinationName> that is present in the dataset.xml snippet. 

Here is an example list of subset variables for this dataset.

More documentation about subsetVariables can be found here

Matt

--
You received this message because you are subscribed to the Google Groups "ERDDAP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erddap+un...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/erddap/53ed941a-fce3-4222-8393-e16e01fd60d2n%40googlegroups.com.


--
Mathew Biddle, Physical Scientist
NOAA/NOS
US Integrated Ocean Observing System Office
1315 East-West Highway
Silver Spring MD 20910

Kimberly Hyde - NOAA Federal

unread,
Aug 13, 2026, 9:11:36 AM (13 days ago) Aug 13
to ERDDAP
Thank you Matt for taking a look at this. 
The subsetVariable option works when the input is just "OWT_Array", however if I add any other variables, which have the correct destinationName, are added, I get the error.
Kim 

Roy Mendelssohn - NOAA Federal

unread,
Aug 13, 2026, 3:08:47 PM (13 days ago) Aug 13
to ERDDAP, Kimberly Hyde - NOAA Federal
Just so you all don’t think we have been ignoring Kim, I have been working with her off-line. There were some inconsistencies between the actual datafile and the datasets.xml snippet, which when corrected produced the two drop downs that she wanted. Sometimes it is easier for me to get a sample of the data file so that I can play with it, more easily see the error messages, (many folks don’t have access to the log files) and also know that my proposed solution works, rather than guessing. That’s what I did in this case.

Also kudos to her and her team for using EDDTableFromNccsvFiles. You can take an existing csv file, put the metadata ERDDAP™ wants at the top, and voila you have what is needed without having to do a whole lot of changes to your data files. Will also add nice dataset.

-Roy
> To view this discussion, visit https://groups.google.com/d/msgid/erddap/4c3c068d-a209-44a5-bdc6-00eb13d6c37an%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages