[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: woce.ncml





Roland Schweitzer wrote:
Hi,

Thanks John.

It may sound like sour grapes at this point, but I've always thought the values element should look like:

<values>
  <value>4602</value>
  <value>4607</value>
</values>

yeah, at least that would be a good alternative.

you can use "," but you have to specify the seperator="," attribute


or maybe

<values>
  <v>4602</v>
  <v>4607</v>
</values>

I ran into this once before when I tried something like:
<values>
1 2 3
4 5 6
7 8 9
</values>

that should have worked, did it not work?


What I'm proposing is a bit of pain to type, but less ambiguous to parse.

Second question/issue. I changed the ncml, but the change didn't show up in TDS until I cleared the cache. Is that the expected behavior?

i would have said you needed to reinit the catalog. is the ncml in the cactalog?


Thanks again for doing my debugging for me. Glad it resulted in a couple of fixes to the convention parsing to make it worth your while.

like killing 3 flies in one mighty swing


Good to see you last week.

likewise, hope to see you again soon.



Cheers,
Roland

John Caron wrote:



Roland Schweitzer wrote:

<?xml version="1.0" encoding="UTF-8"?>
<netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2";>
  <variable name="ntime">
    <attribute name="units" value="days since 1990-01-01 00:00:00"/>
    <attribute name="_CoordinateAxisType" value="Time" />
    <values>4602,4607</values>
  </variable>
  <aggregation dimName="ntime" type="joinNew">
   <variableAgg name="sea_level"/>
<netcdf location="http://dods.jpl.nasa.gov/dods-bin/nph-nc/pub/data_collections/woce_v3/topex/data/10_deg/ssh10d20020808.nc.gz"/> <netcdf location="http://dods.jpl.nasa.gov/dods-bin/nph-nc/pub/data_collections/woce_v3/topex/data/10_deg/ssh10d20020813.nc.gz"/>
  </aggregation>
</netcdf>


this should work:

<?xml version="1.0" encoding="UTF-8"?>
<netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2";>

 <variable name="ntime" type="int" shape="ntime">
   <attribute name="units" value="days since 1990-01-01 00:00:00"/>
   <attribute name="_CoordinateAxisType" value="Time" />
   <values>4602 4607</values>
 </variable>

 <aggregation dimName="ntime" type="joinNew">
  <variableAgg name="sea_level"/>
<netcdf location="http://dods.jpl.nasa.gov/dods-bin/nph-nc/pub/data_collections/woce_v3/topex/data/10_deg/ssh10d20020808.nc.gz"/> <netcdf location="http://dods.jpl.nasa.gov/dods-bin/nph-nc/pub/data_collections/woce_v3/topex/data/10_deg/ssh10d20020813.nc.gz"/>
 </aggregation>

</netcdf>
your main problem was using a "," in <values>, which was silently failing. also you need to specify type="int". I also discovered 2(!) more bugs in the convention parser, which you probably wont see.