[mapserver-users] fetching netcdf from web service
Rob Fuller
fullergalway at gmail.com
Fri Dec 15 07:40:23 PST 2017
Hi,
I was hoping to expose some ocean data as WMS using mapserver, where the
netcdf data is fetched on demand from the erddap server.
The gdalinfo command appears to show something useful, however the
corresponding ogrinfo command doesn't, and neither have I been able to come
up with a mapfile to see any kind of data fetched from erddap and rendered.
Has anyone done this or can you offer any tips?
Thanks,
Rob.
root at 0031582b6672:/geodata# gdalinfo "
http://erddap.digitalocean.ie/erddap/griddap/IMI_CONN_2D.nc?zeta[(last)][(52.9508945):(53.7291217)][(-10.7985117):(-8.8964883)]&.nc
"
Warning 1: No UNIDATA NC_GLOBAL:Conventions attribute
Driver: netCDF/Network Common Data Format
Files: none associated
Size is 640, 440
Coordinate System is `'
Origin = (-10.799999999999960,53.730008086083473)
Pixel Size = (0.002976562500000,-0.001772727222680)
Metadata:
latitude#actual_range={52.95089447171561,53.72912172247213}
latitude#axis=Y
latitude#ioos_category=Location
latitude#long_name=Latitude
latitude#standard_name=latitude
latitude#units=degrees_north
latitude#_CoordinateAxisType=Lat
longitude#actual_range={-10.79851171874996,-8.89648828124996}
longitude#axis=X
longitude#ioos_category=Location
longitude#long_name=Longitude
longitude#standard_name=longitude
longitude#units=degrees_east
longitude#_CoordinateAxisType=Lon
NC_GLOBAL#cdm_data_type=Grid
NC_GLOBAL#Easternmost_Easting=-8.89648828124996
NC_GLOBAL#geospatial_lat_max=53.72912172247213
NC_GLOBAL#geospatial_lat_min=52.95089447171561
NC_GLOBAL#geospatial_lat_resolution=0.001772727222680005
NC_GLOBAL#geospatial_lat_units=degrees_north
NC_GLOBAL#geospatial_lon_max=-8.89648828124996
NC_GLOBAL#geospatial_lon_min=-10.79851171874996
NC_GLOBAL#geospatial_lon_resolution=0.002976562500000001
NC_GLOBAL#geospatial_lon_units=degrees_east
NC_GLOBAL#history=2017-12-15T15:33:03Z
http://milas.marine.ie/thredds/dodsC/IMI-CONN_AGG
2017-12-15T15:33:03Z
http://erddap.digitalocean.ie/erddap/griddap/IMI_CONN_2D.nc?zeta[(last)][(52.9508945):(53.7291217)][(-10.7985117):(-8.8964883)]&.nc
NC_GLOBAL#infoUrl=http://milas.marine.ie/thredds/
NC_GLOBAL#institution=Irish Marine Institute
NC_GLOBAL#license=The data may be used and redistributed for free but is
not intended
for legal use, since it may contain inaccuracies. Neither the data
Contributor, ERD, NOAA, nor the United States Government, nor any
of their employees or contractors, makes any warranty, express or
implied, including warranties of merchantability and fitness for a
particular purpose, or assumes any legal liability for the accuracy,
completeness, or usefulness, of this information.
NC_GLOBAL#Northernmost_Northing=53.72912172247213
NC_GLOBAL#sourceUrl=http://milas.marine.ie/thredds/dodsC/IMI-CONN_AGG
NC_GLOBAL#Southernmost_Northing=52.95089447171561
NC_GLOBAL#summary=CONN2D
NC_GLOBAL#time_coverage_end=2017-12-18T00:00:00Z
NC_GLOBAL#time_coverage_start=2017-12-18T00:00:00Z
NC_GLOBAL#title=Irish Marine Institute Connemara Model CONN2D
NC_GLOBAL#Westernmost_Easting=-10.79851171874996
NETCDF_DIM_EXTRA={time}
NETCDF_DIM_time_DEF={1,6}
NETCDF_DIM_time_VALUES=1513555200
time#actual_range={1513555200,1513555200}
time#axis=T
time#ioos_category=Time
time#long_name=time since initialization
time#standard_name=time
time#time_origin=01-JAN-1970 00:00:00
time#units=seconds since 1970-01-01T00:00:00Z
time#_CoordinateAxisType=Time
zeta#colorBarMaximum=3.0
zeta#colorBarMinimum=-3.0
zeta#coordinates=time latitude longitude
zeta#FillValue_=9.99999993381581e+36
zeta#ioos_category=Sea Level
zeta#long_name=Sealevel Height
zeta#missing_value=9.9999999e+36
zeta#standard_name=sea_surface_height
zeta#units=m
Subdatasets:
SUBDATASET_1_NAME=NETCDF:"/tmp/file.dat":zeta
SUBDATASET_1_DESC=[1x440x640] sea_surface_height (32-bit floating-point)
Geolocation:
LINE_OFFSET=0
LINE_STEP=1
PIXEL_OFFSET=0
PIXEL_STEP=1
SRS=GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS
84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]
X_BAND=1
X_DATASET=NETCDF:"/tmp/file.dat":longitude
Y_BAND=1
Y_DATASET=NETCDF:"/tmp/file.dat":latitude
Corner Coordinates:
Upper Left ( -10.8000000, 53.7300081)
Lower Left ( -10.8000000, 52.9500081)
Upper Right ( -8.8950000, 53.7300081)
Lower Right ( -8.8950000, 52.9500081)
Center ( -9.8475000, 53.3400081)
Band 1 Block=640x1 Type=Float32, ColorInterp=Undefined
NoData Value=9.99999993381581251e+36
Unit Type: m
Metadata:
colorBarMaximum=3.0
colorBarMinimum=-3.0
coordinates=time latitude longitude
FillValue_=9.99999993381581e+36
ioos_category=Sea Level
long_name=Sealevel Height
missing_value=9.9999999e+36
NETCDF_DIM_time=1513555200
NETCDF_VARNAME=zeta
standard_name=sea_surface_height
units=m
root at 0031582b6672:/geodata# ogrinfo "
http://erddap.digitalocean.ie/erddap/griddap/IMI_CONN_2D.nc?zeta[(last)][(52.9508945):(53.7291217)][(-10.7985117):(-8.8964883)]&.nc
"
ERROR 6: Update from remote service not supported
Warning 1: No UNIDATA NC_GLOBAL:Conventions attribute
FAILURE:
Unable to open datasource `
http://erddap.digitalocean.ie/erddap/griddap/IMI_CONN_2D.nc?zeta[(last)][(52.9508945):(53.7291217)][(-10.7985117):(-8.8964883)]&.nc'
with the following drivers.
-> PCIDSK
-> netCDF
-> JPEG2000
-> PDF
-> ESRI Shapefile
-> MapInfo File
-> UK .NTF
-> OGR_SDTS
-> S57
-> DGN
-> OGR_VRT
-> REC
-> Memory
-> BNA
-> CSV
-> NAS
-> GML
-> GPX
-> LIBKML
-> KML
-> GeoJSON
-> Interlis 1
-> Interlis 2
-> OGR_GMT
-> GPKG
-> SQLite
-> ODBC
-> WAsP
-> MDB
-> PGeo
-> MSSQLSpatial
-> PostgreSQL
-> MySQL
-> OpenFileGDB
-> XPlane
-> DXF
-> CAD
-> Geoconcept
-> GeoRSS
-> GPSTrackMaker
-> VFK
-> PGDUMP
-> OSM
-> GPSBabel
-> SUA
-> OpenAir
-> OGR_PDS
-> WFS
-> HTF
-> AeronavFAA
-> Geomedia
-> EDIGEO
-> GFT
-> SVG
-> CouchDB
-> Cloudant
-> Idrisi
-> ARCGEN
-> SEGUKOOA
-> SEGY
-> XLS
-> ODS
-> XLSX
-> ElasticSearch
-> Walk
-> Carto
-> AmigoCloud
-> SXF
-> Selafin
-> JML
-> PLSCENES
-> CSW
-> VDV
-> GMLAS
-> TIGER
-> AVCBin
-> AVCE00
-> HTTP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20171215/3be75378/attachment.htm>
More information about the MapServer-users
mailing list