[Thread Prev][Thread Next][Index]

[las_users] categories.xml bug



I have found an issue with how LAS reads in categories.xml to get the variables for the datasets.  It seems to not be resetting the variable as it loops over the variables for the dataset (see categories.bug.01.png).  LAS is supposed to show only two magnitude variables (wind and stress), but shows one for each variable in the dataset.  It looks like it is adding the same thing and adding each time it sees a variable.  For composite variables it doesn't seem to have the same problem as if they are in a separate loop (see categories.bug.00.png).  I have included a snippet of the categories.xml file (categories.snippet.00.xml) and a snippet of the dataset xml file (seawinds-daily.snippet.00.xml).

From the documentation (http://ferret.pmel.noaa.gov/LAS/documentation/installer-documentation/adding-gridded-data/the-xml-configuration-for-categories/?searchterm=category.xml) I should be able to pick and choose variables by using the "equals" for the filter tag.  In the examples there are a couple of typos where it says "apply-datasets" and "apply-variables" rather than "apply-dataset" and "apply-variable" too.

Thanks and thought you would like to know.

Phil Cogbill (Government Contractor)
Subject Matter Specialist, STG, Inc.
Climate Services and Monitoring Division
Data Access and Applications Branch

National Climatic Data Center
Veach-Baley Federal Building
151 Patton Ave.
Room 355
Asheville, NC 28801-5001
Phil.Cogbill@xxxxxxxx
Desk: (828) 271-4474
Cell: (828) 419-0303

This electronic transmission contains information that may be internal
use only,confidential, or proprietary.  If you are not the intended
recipient, be aware that any disclosure, copying, distribution or use
of the contents hereof is strictly prohibited.  If you have received
this transmission in error, please notify Phil.Cogbill@xxxxxxxx

Attachment: categories.bug.00.png
Description: PNG image

Attachment: categories.bug.01.png
Description: PNG image

<!-- Blended Seawinds ====================================================== -->
<category name="NOAA Multiple-Satellite Blended Sea Surface Winds">

  <category name="Daily">

    <category name="Vectors">

      <filter action="apply-variable"
        equals="Wind Speed (vector)"/>

      <filter action="apply-variable"
        equals="Wind Stress (vector)"/>

    </category>

    <category name="Magnitude">

      <filter action="apply-variable"
        equals="Wind Speed - Magnitude"/>

      <filter action="apply-variable"
        equals="Wind Stress - Magnitude"/>

    </category>

  </category>

</category>
<!--  Blended Sea Winds - Daily ============================================ -->
<BlendedSeaSurfaceWindDaily name="Sea Surface Winds (Daily)"
  url="http://www.ncdc.noaa.gov/thredds/dodsC/oceanwindsdly";
  doc="http://www.ncdc.noaa.gov/oa/rsad/air-sea/seawinds.html";>

  <!-- Vector variables ==================================================== -->
  <composite>

    <!-- Speed Vector ****************************************************** -->
    <vectors_speed_dly name="Wind Speed (vector)"
    units="N/m^2">
      <properties>
        <ui>
          <default>file:ui.xml#VecVariable</default>
        </ui>
      </properties>
      <link match="../../variables/u" />
      <link match="../../variables/v" />
    </vectors_speed_dly>

  </composite>

  <variables>

    <!-- Wind - U Component ************************************************ -->
    <u name="Wind Speed - U Component"
      units="m/s">

      <properties>
        <ferret>
          <interpolate_data>false</interpolate_data>
          <do_contour>1</do_contour>
          <fill_type>fill</fill_type>
          <land_type>shade</land_type>
          <!--
          <fill_levels>(0,30,2)</fill_levels>
          <contour_levels>(0,32,4)</contour_levels>
          -->
        </ferret>
      </properties>

      <link match="/lasdata/grids/SEAWINDS_time_lat_lon_grid" />
      <link match="/lasdata/grids/SEAWINDS_time_lat_lon_grid" />

    </u>

    <!-- Wind - V Component ************************************************ -->
    <v name="Wind Speed - V Component"
      units="m/s">

      <properties>
        <ferret>
          <interpolate_data>false</interpolate_data>
          <do_contour>1</do_contour>
          <fill_type>fill</fill_type>
          <land_type>shade</land_type>
          <!--
          <fill_levels>(0,30,2)</fill_levels>
          <contour_levels>(0,32,4)</contour_levels>
          -->
        </ferret>
      </properties>

      <link match="/lasdata/grids/SEAWINDS_time_lat_lon_grid" />

    </v>

    <!-- Wind - W Component ************************************************ -->
    <w name="Wind Speed - Magnitude"
      units="m/s">

      <properties>
        <ferret>
          <interpolate_data>false</interpolate_data>
          <do_contour>1</do_contour>
          <fill_type>fill</fill_type>
          <land_type>shade</land_type>
          <!--
          <fill_levels>(0,30,2)</fill_levels>
          <contour_levels>(0,32,4)</contour_levels>
          -->
        </ferret>
      </properties>

      <link match="/lasdata/grids/SEAWINDS_time_lat_lon_grid" />

      <link match="/lasdata/grids/SEAWINDS_time_lat_lon_grid" />

    </w>

  </variables>

</BlendedSeaSurfaceWindDaily>

<!--  Blended Sea Winds - Daily ============================================ -->
<BlendedSeaSurfaceStressDaily name="Sea Surface Wind Stress (Daily)"
  url="http://www.ncdc.noaa.gov/thredds/dodsC/oceanwindsDlyStrs";
  doc="http://www.ncdc.noaa.gov/oa/rsad/air-sea/seawinds.html";>

  <!-- Vector variables ==================================================== -->
  <composite>

    <!-- Stress Vectors **************************************************** -->
    <vectors_stress_dly name="Wind Stress (vector)"
    units="N/m^2">
      <properties>
        <ui>
          <default>file:ui.xml#VecVariable</default>
        </ui>
        <ferret>
          <interpolate_data>false</interpolate_data>
          <do_contour>1</do_contour>
          <fill_type>fill</fill_type>
          <land_type>shade</land_type>
          <!--
          <fill_levels>(0,250,.5)</fill_levels>
          <contour_levels>(0,32,.5)</contour_levels>
          -->
        </ferret>
      </properties>

      <link match="../../variables/taux" />
      <link match="../../variables/tauy" />

    </vectors_stress_dly>

  </composite>

  <variables>

    <!-- Wind Stress - Magnitude ******************************************* -->
    <tau name="Wind Stress - Magnitude"
      units="N/m^2">

      <properties>
        <ferret>
          <interpolate_data>false</interpolate_data>
          <do_contour>1</do_contour>
          <fill_type>fill</fill_type>
          <land_type>shade</land_type>
          <!--
          <fill_levels>(-2)(-1.0,1.0,0.1)(2)</fill_levels>
          <contour_levels>(-2)(-1.0,1.0,0.1)(2)</contour_levels>
          -->
        </ferret>
      </properties>

      <link match="/lasdata/grids/SEAWINDS_time_lat_lon_grid" />

    </tau>

    <!-- Wind Stress - U Component ***************************************** -->
    <taux name="Wind Stress - U component"
      units="N/m^2">
      <properties>
        <ferret>
          <interpolate_data>false</interpolate_data>
          <do_contour>1</do_contour>
          <fill_type>fill</fill_type>
          <land_type>shade</land_type>
          <!--
          <fill_levels>(-2)(-1.0,1.0,0.1)(2)</fill_levels>
          <contour_levels>(-2)(-1.0,1.0,0.1)(2)</contour_levels>
          -->
        </ferret>
      </properties>

      <link match="/lasdata/grids/SEAWINDS_time_lat_lon_grid" />

    </taux>

    <!-- Wind Stress - V Component ***************************************** -->
    <tauy name="Wind Stress - V component"
      units="N/m^2">

      <properties>
        <ferret>
          <interpolate_data>false</interpolate_data>
          <do_contour>1</do_contour>
          <fill_type>fill</fill_type>
          <land_type>shade</land_type>
          <!--
          <fill_levels>(-2)(-1.0,1.0,0.1)(2)</fill_levels>
          <contour_levels>(-2)(-1.0,1.0,0.1)(2)</contour_levels>
          -->
        </ferret>
      </properties>

      <link match="/lasdata/grids/SEAWINDS_time_lat_lon_grid" />

    </tauy>

  </variables>

</BlendedSeaSurfaceStressDaily>

[Thread Prev][Thread Next][Index]


Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement