Sorry if I'm a bit slow on the uptake!
Thanks for your help,
Sheila
-----Original Message-----
From: John Caron [mailto:address@hidden]
Sent: 27 February 2008 15:43
To: Needham, Sheila
Cc: Unidata netCDF Java Support
Subject: Re: IOSP error
Needham, Sheila wrote:
Hi John,
I've finally got as far as testing my IOSP in THREDDS and I'm getting
this error:
ucar.atd.dorade.DoradeSweep$DoradeSweepException: java.io.IOException
at
ucar.atd.dorade.DoradeSweep.isDoradeSweep(DoradeSweep.java:510)
at
ucar.nc2.iosp.dorade.Doradeheader.isValidFile(Doradeheader.java:48)
at
ucar.nc2.iosp.dorade.Doradeiosp.isValidFile(Doradeiosp.java:59)
at ucar.nc2.NetcdfFile.open(NetcdfFile.java:441)
at ucar.nc2.NetcdfFile.open(NetcdfFile.java:261)
at ucar.nc2.NetcdfFile.open(NetcdfFile.java:231)
at ucar.nc2.NetcdfFile.open(NetcdfFile.java:219)
at ucar.nc2.NetcdfFile.open(NetcdfFile.java:207)
at test.TestNetcdf.main(TestNetcdf.java:30)
Caused by: java.io.IOException
at ucar.atd.dorade.DoradeSweep.findName(DoradeSweep.java:528)
at
ucar.atd.dorade.DoradeSweep.isDoradeSweep(DoradeSweep.java:507)
... 8 more
It carries on to find my IOSP and completes successfully. Can I
change the order in which IOSPs are tested or disable the ones I know
we're not going to use?
Hi Sheila:
I think the easiest thing is for us to fix the dorade iosp, which is
mistakenly claiming your file. Can you send me a sample file?
Also, if you are loading your IOSP at runtime, it should be coming
first, before the statndara IOSPs. If not, I will fix that also.
---
On a separate note, have you any thoughts on how to convert data to
different output formats from the TDS? For example, we might store
data as NetCDF but want to retrieve it as GRIB1. I was thinking along
the lines of an input service provider sitting between the stored data
and the CDM (as we've got now), and an output service provider between
the CDM and the client - but I'm not sure how this would fit with the
TDS.
The problem is that GRIB output is only suitable for gridded data. So
writing a generic CDM -> GRIB output service is not possible. However,
if you write a gridded data -> GRIB service, we could define a "GRIB
output service" which one could configure into the TDS for specific
datasets.
We want to move away from the current situation where we have dozens
of data formats and specific converters for each pair!
Yes, thats the hope!
Thanks,
Sheila
============================================
Sheila Needham Senior Software Developer
Infrastructure Development Team Technology
*Met Office* Fitzroy Road Exeter EX1 3PB United Kingdom
Tel: +44 (0)1626 363489
E-mail: address@hidden _http://www.metoffice.gov.uk_
============================================