[Thread Prev][Thread Next][Index]

RE: [las_users] time format and type in DRDS service



Hi Roland,

Yes. It's a public OPeNDAP.
I copy and pasted below the configuration xml file for this dataset.
Thanks for your help on this.
Jerome.


<datasets>
  <coral
    name = "1980 - 2005 Coral Survey NWIOOS"
    url = ""
    doc = "">

    <properties><ui>
      <default>file:ui.xml#nwioos_demo</default>
    </ui>

    <database_access name="nwioos_drds">
      <db_type>drds</db_type>
      <db_server>NWIOOS Server</db_server>
      <db_name>Coral Survey</db_name>
      <db_title>Coral Survey</db_title>
      <db_host>localhost</db_host>
      <db_table>coral</db_table>
      <longitude>longitude_dd</longitude>
      <lon_domain>-180:180</lon_domain>
      <latitude>latitude_dd</latitude>
      <!--<depth>Z</depth>
      <depth_units>meters</depth_units>-->
      <time>year_survey</time>
      <time_type>double</time_type>
      <time_units>years since 1980-01-01 00:00:00</time_units>
      <time_format>yyyy.0</time_format>
      <hours_1970></hours_1970>
      <missing>-9999.0</missing>
      <positive>down</positive>
    </database_access>

    </properties>

    <variables>
      <scientific_name units="m/sec" name="Scientific name of taxa" url="">
        <link match="/lasdata/grids/scientific_grid"/>
      </scientific_name>
      <!--<hake_05_nv units="m/sec" name="Northward Velocity" url="">
        <link match="/lasdata/grids/hake_05_grid"/>
      </hake_05_nv>-->
    </variables>
  </coral>
</datasets>

<grids>
  <scientific_grid>
    <link match="/lasdata/axes/scientific_x"/>
    <link match="/lasdata/axes/scientific_y"/>
 <!--   <link match="/lasdata/axes/scientific_depth"/>-->
    <link match="/lasdata/axes/scientific_time"/>
  </scientific_grid>
</grids>

<axes>
  <scientific_y units="degrees_north" type="y">
    <arange start="15" step="1" size="60"/>
  </scientific_y>
  <scientific_x units="degrees_east" type="x">
    <arange start="180" step="1" size="75"/>
  </scientific_x>
  <!--<hake_05_depth units="meters" type="z">
    <arange start="22" step="8" size="60"/>
  </hake_05_depth>-->
  <scientific_time type="t" units="month">
   <arange start="1980-01-01" step="12" size="25"/>
  </scientific_time>
</axes>



Date: Tue, 26 Aug 2008 09:51:46 -0500
From: Roland.Schweitzer@xxxxxxxx
Subject: Re: [las_users] time format and type in DRDS service
To: jejeking@xxxxxxxxxxx
CC: oar.pmel.las_users@xxxxxxxx

Hi Jerome,

If this is a public OPeNDAP server can you please send an example configuration for this data set to the list?  I'll take a look at it.

Roland

Jerome King wrote:
Hi LAS experts,

I am trying to serve an OPeNDAP DRDS dataset on LAS.

I have been following the NWIOOS example. The trick with this dataset is that "time" is of type "float64" and the format is YYYY.0
Unfortunately I am not the person serving this dataset on OPeNDAP so I can't go change the time type and format to something more standard. This is unfortunate because I know I would be able to get it to work if time was of type 'int' and format 'yyyy'.

So this is how I set up the drds parameters in my config file:

<time>year</time>
<time_type>double</time_type>
<time_units>years since 1949-01-01 00:00:00</time_units>
<time_format>yyyy.0</time_format>

I also tried 'yyyy' and 'yyyy.y' for the time_format with no success.
In the LAS documentation, it's not clear to me if <time_format> needs to be used with time type "double" or not and what syntax to use.

So I am wondering if someone see what I am missing or what I am doing wrong.
I have had success with other datasets where 'time' is of type "int" or "string".

Thanks for any help on this.
Jerome.
 


Get thousands of games on your PC, your mobile phone, and the web with Windows®. Game with Windows



Be the filmmaker you always wanted to be—learn how to burn a DVD with Windows®. Make your smash hit

[Thread Prev][Thread Next][Index]


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

Privacy Policy | Disclaimer | Accessibility Statement