Nsidc.ds.osdd

From Earth Science Information Partners (ESIP)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

back

Sample NSIDC Dataset Level OpenSearch Description Document

<?xml version="1.0" encoding="UTF-8"?>
<!--
    OpenSearch description document for nsidc.org. 

    Author: Matthew Savoie
    Date:   2009-10-09

    Copyright (c) 2009 National Snow and Ice Data Center. All rights reserved.
    -->
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" 
                       xmlns:time="http://a9.com/-/opensearch/extensions/time/1.0/"
                       xmlns:geo="http://a9.com/-/opensearch/extensions/geo/1.0/" >

  <!-- Note: nsidc namespace could be esipsearch if we decide to go standard -->
    
  <!-- Admin Details -->
  <ShortName>NSIDC Search</ShortName>
  <LongName>OpenSearch interface for nsidc.org</LongName>
  <Description>This is the opensearch description document that describes how to query our server for dataset level information.</Description>
  <Tags>nsidc.org opensearch</Tags>
  <Contact>webservices@nsidc.org</Contact>
  
  <!-- Images -->
  <!-- 
       2009-10-09: Waiting for a 16x16 icon. And the other should really be 64x64 icon?
  -->
  <Image width="16" height="16" type="image/x-icon">http://nsidc.org/?</Image>
  <Image width="76" height="60" type="image/jpeg">http://nsidc.org/images/logo_nsidc_76x60.jpg</Image>

  <!-- URL Template for refreshing this file -->
  <Url type="application/opensearchdescription+xml"
       rel="self"
       template="http://nsidc.org/opensearch/datset"/>

  

  <!-- URL Template for HTML results Dataset level search -->
  <Url type="text/html"
       rel="results"
       indexOffset="1"
       pageOffset="1"
       template="http://www.nsidc.org/opensearch/1.1/service/variable={searchTerms?}&loc={geo:polygon?}&dtstart={time:start?}&dtend={time:end?}&format=html"/>

  <!-- Question: I'm not certain I need the version in the URL or if the
       namespace above does everything we need?  Would we ever want to have
       two OS versions at the same time?  -->

  <!-- Question: Would we use time:start and time:end since we're going to
       limit times to GMT?   -->

  <!-- URL Template for ATOM results Dataset level search -->
  <Url type="text/xml"
       rel="results"
       indexOffset="1"
       pageOffset="1"
       template="http://www.nsidc.org/opensearch/1.1/service/variable={searchTerms?}&loc={geo:polygon?}&dtstart={time:start?}&dtend={time:end?}&format=atom"/>

  <Url type="text/html"
       rel="results"
       indexOffset="1"
       pageOffset="1"
       template="http://www.nsidc.org/opensearch/1.1/service/variable={searchTerms?}&loc={geo:polygon?}&dtstart={time:start?}&dtend={time:end?}&format=html"/>
  

  <!-- Example Queries -->
  <Query role="example" variable="Air Temperature" />
  <Query role="example" variable="Brightness Temperature" 
         dtstart="2000-01-01T00:00:00Z"
         dtend="2000-01-31T23:59:59Z" />

  <!-- Control Params -->
  <Language>en-us</Language>
  <OutputEncoding>UTF-8</OutputEncoding>
  <InputEncoding>UTF-8</InputEncoding>
  <SyndicationRight>open</SyndicationRight>
  <AdultContent>false</AdultContent>
  <Attribution>© 2009 National Snow and Ice Data Center.</Attribution>
</OpenSearchDescription>