WCS from multiple netCDF returning only background image

edfialk wef1 at CEC.WUSTL.EDU
Wed Feb 28 13:13:54 EST 2007


Ahhh, I see.

I found your old python script at:
http://www.nabble.com/Map-File-Problem--tf2015860.html#a5544967

I'm not too great at python (this is my first time actually working with
python) but I did some editing and replaced some things:

for var in ['u', 'v']:   -> for var in ['emission_flux']  //my variable in
netCDF (the 'ta' you were using)

my filenames also only have the year so when extracting the date, I just
took the year and then added "-01-01T00", so I skipped the strptime, and the
strftime.

After executing, it printed out a bunch of times and ended with:
TIMES VAR: emission_flux
1966-01-01T00,1986-01-01T00,1963-01-01T00,1989-01-01T00,1975-01-01T00,1993-01-01T00,1997-01-01T00,1973-01-01T00,1964-01-01T00,1992-01-01T00,1999-01-01T00,1968-01-01T00,1981-01-01T00,1995-01-01T00,1985-01-01T00,1983-01-01T00,1961-01-01T00,1967-01-01T00,1984-01-01T00,1990-01-01T00,1991-01-01T00,1980-01-01T00,1972-01-01T00,1962-01-01T00,1977-01-01T00,1970-01-01T00,1998-01-01T00,1976-01-01T00,1994-01-01T00,1960-01-01T00,1979-01-01T00,1996-01-01T00,1982-01-01T00,1988-01-01T00,1987-01-01T00,2000-01-01T00,1971-01-01T00,1965-01-01T00,1974-01-01T00,1978-01-01T00,1969-01-01T00

checking the DBF file, I noticed it worked...i think:

NETCDF:"/var/www/html/mapserver/RETRO/RETRO_anthro_nox_1966.0.5x0.5.nc":emission_flux              
1966-01-01T00

ogrinfo on the shape file gave:

OGRFeature(emission_fluxindex):40
  LOCATION (String) =
NETCDF:"/var/www/html/mapserver/RETRO/RETRO_anthro_nox_1969.0.5x0.5.nc":emission_flux
  TIME (String) = 1969-01-01T00
  POLYGON ((0.25 89.75,359.75 89.75,359.75 -89.75,0.25 -89.75,0.25 89.75))

--filled in polygon coordinates, very nice.

So in my mapfile, I point to this new emission_fluxindex.shp, but I still
get a blank GeoTiff.

I hate to keep asking what now, but this isn't really my area of expertise.

Again, thanks, and take your time.

-Ed

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



More information about the mapserver-users mailing list