I can read the netCDF file data with netCDF-python or with gdalinfo, but I am unsure of the easiest way to get it into a PostGIS database. It would be really easy if I could convert the netCDF file to the shapefile format because using ogr2ogr is fairly straightforward. I started to used some code netCDF2postgis.py from the PostGIS Recipes book, but it has a lot of problems and what I did get working created way too many tables.
If it helps, the data is NOAA GOES 15 weather satellite data which contains the following information. This is only for Band 1 (visible light) at a specific date and time:
gdalinfo NETCDF:"goes15.2014.175.190020.BAND_01.nc"Driver: netCDF/Network Common Data FormatFiles: none associatedSize is 512, 512Coordinate System is `'Metadata: NC_GLOBAL#Conventions=CF-1.4 NC_GLOBAL#Satellite Sensor=G-15 IMG NC_GLOBAL#Source=McIDAS Area FileSubdatasets: SUBDATASET_1_NAME=NETCDF:"goes15.2014.175.190020.BAND_01.nc":auditTrail SUBDATASET_1_DESC=[2x80] auditTrail (8-bit character) SUBDATASET_2_NAME=NETCDF:"goes15.2014.175.190020.BAND_01.nc":data SUBDATASET_2_DESC=[1x29x68] data (32-bit floating-point) SUBDATASET_3_NAME=NETCDF:"goes15.2014.175.190020.BAND_01.nc":lat SUBDATASET_3_DESC=[29x68] lat (32-bit floating-point) SUBDATASET_4_NAME=NETCDF:"goes15.2014.175.190020.BAND_01.nc":lon SUBDATASET_4_DESC=[29x68] lon (32-bit floating-point)Corner Coordinates:Upper Left ( 0.0, 0.0)Lower Left ( 0.0, 512.0)Upper Right ( 512.0, 0.0)Lower Right ( 512.0, 512.0)Center ( 256.0, 256.0)
أكثر...
If it helps, the data is NOAA GOES 15 weather satellite data which contains the following information. This is only for Band 1 (visible light) at a specific date and time:
gdalinfo NETCDF:"goes15.2014.175.190020.BAND_01.nc"Driver: netCDF/Network Common Data FormatFiles: none associatedSize is 512, 512Coordinate System is `'Metadata: NC_GLOBAL#Conventions=CF-1.4 NC_GLOBAL#Satellite Sensor=G-15 IMG NC_GLOBAL#Source=McIDAS Area FileSubdatasets: SUBDATASET_1_NAME=NETCDF:"goes15.2014.175.190020.BAND_01.nc":auditTrail SUBDATASET_1_DESC=[2x80] auditTrail (8-bit character) SUBDATASET_2_NAME=NETCDF:"goes15.2014.175.190020.BAND_01.nc":data SUBDATASET_2_DESC=[1x29x68] data (32-bit floating-point) SUBDATASET_3_NAME=NETCDF:"goes15.2014.175.190020.BAND_01.nc":lat SUBDATASET_3_DESC=[29x68] lat (32-bit floating-point) SUBDATASET_4_NAME=NETCDF:"goes15.2014.175.190020.BAND_01.nc":lon SUBDATASET_4_DESC=[29x68] lon (32-bit floating-point)Corner Coordinates:Upper Left ( 0.0, 0.0)Lower Left ( 0.0, 512.0)Upper Right ( 512.0, 0.0)Lower Right ( 512.0, 512.0)Center ( 256.0, 256.0)
أكثر...