SWE Common Currents Template Question

0 views
Skip to first unread message

Mohamed Chaouchi - NOAA Federal

unread,
Mar 25, 2014, 1:30:41 PM3/25/14
to iooste...@googlegroups.com
Hello All,

I was working on generating the Currents output and came across the following element. Could you please let me know how this element should be used?

<swe2:field name="binIndex">                            
 <!-- IoosTech Convention: -->                            
 <!-- A count element, constrained by the maximum dimension of the array -->                            
 <!-- shall specify which zero-based bin index the data applies to, -->                            
 <!-- allowing ragged arrays -->                            
 <swe2:Count definition="http://mmisw.org/ont/ioos/swe_element_type/profileIndex">
   <swe2:constraint>                                
    <swe2:AllowedValues>                                  
     <swe2:interval>0 2</swe2:interval>                                
    </swe2:AllowedValues>                              
  </swe2:constraint>                            
 </swe2:Count>                          
</swe2:field> 

The template is located at:

https://code.google.com/p/ioostech/source/browse/trunk/templates/Milestone1.0/SWE-SingleStation-TimeSeriesProfile.xml

Thank you,
Mohamed

Shane StClair

unread,
Mar 25, 2014, 1:46:00 PM3/25/14
to ioostech_dev
Hi Mohamed,

The template shows output for both binned (ADCP) and unbinned (thermistor) time series profiles. In the "static" data section at the top of the document the height values reported by each sensor are encoded:



Then, in the "dynamic" section, those height values are references using an array index pointer to the previously defined values:



and the bin/profile index indicating each values height is included in the swe:values element:


It's done this way rather than simply redeclaring the actual height value along with the observation values because the height construct is complex in the case of bins, where we must report at least the min and max heights of the bin.

Looking at this now I notice that the bin fields in the dynamic DataRecord are mislabled; wmo_41001_sensor1 should use a binIndex and wmo_41001_sensor2 should use a profileIndex. The structure is correct though. I'll open an issue to fix.

-Shane


--
--
You received this message because you are subscribed to the Google
Groups "ioostech_dev" group.
To post to this group, send email to iooste...@googlegroups.com
To unsubscribe from this group, send email to
ioostech_dev...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ioostech_dev?hl=en

---
You received this message because you are subscribed to the Google Groups "ioostech_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ioostech_dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Shane StClair
Software Engineer
Axiom Consulting & Design
http://www.axiomalaska.com
Reply all
Reply to author
Forward
0 new messages