<p class="" align="right" style="font-family: arial; font-size: small; line-height: normal; text-align: right;"><span lang="EN-US" style="font-size: 10pt; line-height: 14px; font-family: Arial, sans-serif; color: black; background-color: rgb(246, 246, 246);">Week #2<o:p></o:p></span></p><p class="" style="font-family: arial; font-size: small; line-height: normal;"><span lang="EN-US" style="font-size: 10pt; line-height: 14px; font-family: Arial, sans-serif; color: black; background-color: rgb(246, 246, 246);">Hi there,<o:p></o:p></span></p><p class="" style="font-family: arial; font-size: small; line-height: normal;"><span lang="EN-US" style="font-size: 10pt; line-height: 14px; font-family: Arial, sans-serif; color: black; background-color: rgb(246, 246, 246);">Work done in week 2  <o:p></o:p></span></p><p class="" style="font-family: arial; font-size: small; line-height: normal;"><span lang="EN-US" style="font-size: 10pt; line-height: 14px; font-family: Arial, sans-serif; color: black; background-color: rgb(246, 246, 246);">I made some test  with array data after I had modified istSOS model database with arrays fields.<o:p></o:p></span></p><p class="" style="font-family: arial; font-size: small; line-height: normal;"><span lang="EN-US" style="font-size: 10pt; line-height: 14px; font-family: Arial, sans-serif; color: black; background-color: rgb(246, 246, 246);">So I answered at questions:<o:p></o:p></span></p><ul type="disc" style="font-family: arial; font-size: small; margin-top: 0cm;"><li class="" style="color: black;"><span lang="EN-US" style="font-size: 10pt; line-height: 14px; font-family: Arial, sans-serif; background-color: rgb(246, 246, 246);">Can I run any queries on the table with array fields? What is SQL syntax to make select, filter or join using array data?<o:p></o:p></span></li></ul><p class="" style="font-family: arial; font-size: small; line-height: normal; margin-left: 35.4pt;"><span lang="EN-US" style="font-size: 10pt; line-height: 14px; font-family: Arial, sans-serif; color: black; background-color: rgb(246, 246, 246);">Many queries can be made, even if data array is a complex data and SQL syntax is just  a bit different: so I modified database model and I wrote queries to extract data from array.<o:p></o:p></span></p><ul type="disc" style="font-family: arial; font-size: small; margin-top: 0cm;"><li class="" style="color: black;"><span lang="EN-US" style="font-size: 10pt; line-height: 14px; font-family: Arial, sans-serif; background-color: rgb(246, 246, 246);">Can I extract array data using a SQL WHERE condition? (example: A=[1,2,3,4,5] X=3 is it possible to extract a new array B with the only elements of A in which A>X, B[4,5]?)<o:p></o:p></span></li></ul><p class="" style="font-family: arial; font-size: small; line-height: normal; margin-left: 36pt;"><span lang="EN-US" style="font-size: 10pt; line-height: 14px; font-family: Arial, sans-serif; color: black; background-color: rgb(246, 246, 246);">Yes, I can. I wrote something like that: SELECT A.s FROM (SELECT generate_subscripts ('{1,2,3,4,5}'::int[], 1)  AS s) A WHERE s >3<o:p></o:p></span></p><p class="" style="font-family: arial; font-size: small; line-height: normal; margin-left: 36pt;"><span lang="EN-US" style="font-size: 10pt; line-height: 14px; font-family: Arial, sans-serif; color: black; background-color: rgb(246, 246, 246);">So now I can still extract data as part of “profile” (</span><span style="background-color: rgb(246, 246, 246); color: rgb(0, 0, 0); font-family: Arial, sans-serif; line-height: 14px; font-size: 13px;"> </span><span style="background-color: rgb(246, 246, 246); color: rgb(0, 0, 0); font-family: Arial, sans-serif; line-height: 14px; font-size: 13px;">A=[1,2,3,4,5] X=3 --> </span><span style="background-color: rgb(246, 246, 246); color: rgb(0, 0, 0); font-family: Arial, sans-serif; font-size: 13px; line-height: 14px;">B[4,5] ) </span></p><ul type="disc" style="font-family: arial; font-size: small; margin-top: 0cm;"><li class=""><span lang="EN-US" style="font-size: 10pt; line-height: 14px; font-family: Arial, sans-serif; color: black; background-color: rgb(246, 246, 246);">How is XML model for the observations and measurements (OM) used and how could the profile data type fit into the XML model?</span><span lang="EN-US" style="line-height: 14px; background-color: rgb(246, 246, 246);"><o:p></o:p></span></li></ul><p class="" style="font-family: arial; font-size: small; line-height: normal; margin-left: 35.4pt;"><span lang="EN-US" style="font-size: 10pt; line-height: 14px; font-family: Arial, sans-serif; color: black; background-color: rgb(246, 246, 246);">I’m merging the data profile type in istSOS package using a similar definition of OM model in which profile data are the same of the single measures in previously data model.<o:p></o:p></span></p><p class="" style="font-family: arial; font-size: small; line-height: normal;"><span lang="EN-US" style="font-size: 10pt; line-height: 14px; font-family: Arial, sans-serif; color: black; background-color: rgb(246, 246, 246);"><o:p> </o:p></span></p><p class="" style="font-family: arial; font-size: small; line-height: normal;"><span lang="EN-US" style="font-size: 10pt; line-height: 14px; font-family: Arial, sans-serif; color: black; background-color: rgb(246, 246, 246);">Work to be done in week 3</span></p><ul type="disc" style="margin-top: 0cm;"><li class=""><span lang="EN-US" style="background-color: rgb(246, 246, 246);"></span></li><li class=""><font color="#000000" face="Arial, sans-serif"><span style="line-height: 14px;">SOS service creation and testing with WA<br><br></span></font></li><li class=""><span style="line-height: 14px; color: rgb(0, 0, 0); font-family: Arial, sans-serif; font-size: small;">Importing some test data profiles into istSOS database (tab: measures_array)</span></li><br><li class="" style="font-family: arial; font-size: small; color: black;"><span lang="EN-US" style="font-size: 10pt; line-height: 14px; font-family: Arial, sans-serif; background-color: rgb(246, 246, 246);">Planning the development and starting the implementation of new python code to manage array data and merging in istSOS core.</span></li></ul>