WCS from multiple netCDF returning only background image

Norman Barker nbarker at ITTVIS.COM
Wed Feb 28 04:07:58 EST 2007


Ed,

There were a lot of good changes made by Frank and Denis last year to
the netCDF driver to support r/w and access to variables, this means the
syntax of the time index shape file has changed. So an example from my
netCDF WCS installation here would be

OGRFeature(my__ta):61
  LOCATION (String) = NETCDF:"/my__ta_1982013118.nc":ta
  TIME (String) = 1982-01-31T18
  POLYGON ((0 160,320 160,320 0,0 0,0 160))

(I have made up the file names), but you see how I have accessed the
temperature variable using the NETCDF access keyword?

To create a time index shapefile for netCDF and MapServer you can use
GDAL and Python (and recently someone reported using Ruby), I posted a
script to the list last year to do this, if you hunt around you can find
it.  (Or later on this week post to me and I will dig it out).

Thanks,

Norman

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of edfialk
Sent: 27 February 2007 20:32
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] WCS from multiple netCDF returning
only background image

Hey, thanks again Frank.

Now I get:
[root at niceguy RETRO]# ogrinfo -al RETRO.shp
INFO: Open of `RETRO.shp'
using driver `ESRI Shapefile' successful.

Layer name: RETRO
Geometry: Polygon
Feature Count: 41
Extent: (0.000000, 0.000000) - (0.000000, 0.000000)
Layer SRS WKT:
(unknown)
LOCATION: String (255.0)
TIME: String (0.0)
E: String (0.0)
OGRFeature(RETRO):0
  LOCATION (String) = _anthro_nox_1960.0.5x0.5.nc

960.
  TIME (String) = (null)
  E (String) = (null)
  POLYGON ((0 0,0 0,0 0,0 0,0 0))
.....bunch of these...all the same...followed by:
OGRFeature(RETRO):39
  LOCATION (String) = _anthro_nox_1999.0.5x0.5.nc

999.
  TIME (String) = (null)
  E (String) = (null)
  POLYGON ((0 0,0 0,0 0,0 0,0 0))

ERROR 3: fread(282) failed on DBF file.

ERROR 3: fread(282) failed on DBF file.

ERROR 3: fread(282) failed on DBF file.

ERROR 3: fread(282) failed on DBF file.

ERROR 3: fread(282) failed on DBF file.

OGRFeature(RETRO):40
  LOCATION (String) = (null)
  TIME (String) = (null)
  E (String) = (null)
  POLYGON ((0 0,0 0,0 0,0 0,0 0))


I'm assuming I made a bad shapefile then.

-- 
View this message in context:
http://www.nabble.com/WCS-from-multiple-netCDF-returning-only-background
-image-tf3303314.html#a9191201
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the mapserver-users mailing list