Re: [R-sig-Geo] make a raster from Aquarius files

2017-12-01 Thread Michael Sumner
Ugh, and you must think I'm crazy given that it's clearly HDF5 not HDF4 as per my opening line (the file naming is more the latter). I'll stop now. Hope it's useful. Cheers, Mike. On Sat, 2 Dec 2017 at 07:44 Michael Sumner wrote: > Ah thanks, and sorry I didn't think any of those old HDF4 files

Re: [R-sig-Geo] make a raster from Aquarius files

2017-12-01 Thread Michael Sumner
Ah thanks, and sorry I didn't think any of those old HDF4 files were still there! This is HDF5 with subdatasets, from gdalinfo: Subdatasets: SUBDATASET_1_NAME=HDF5:"Q20151522015181.L3m_MO_SCISM_V5.0_SSS_1deg"://l3m_data SUBDATASET_1_DESC=[180x360] //l3m_data (32-bit floating-point) SUBDATASET

Re: [R-sig-Geo] make a raster from Aquarius files

2017-12-01 Thread Antonio Silva
Thanks Ben and Michael for the attention The file I'm trying to rasterize can be downloaded at https://oceancolor.gsfc.nasa.gov/cgi/l3 I selected the Aquarius sea surface salinity smoothed file from June 2015 (SMI HDF). As Ben pointed it is also available from OBPG Nasa Ocean Color site at https

Re: [R-sig-Geo] make a raster from Aquarius files

2017-12-01 Thread Ben Tupper
Hi, Those Aquarius files look quite different from others I have used from OBPG (mostly MODISA and SeaWiFS). As a short-cut alternative, you could read all of the values into a matrix and make a global raster from that. An example is shown below. You can also subset the extraction as you ha

Re: [R-sig-Geo] make a raster from Aquarius files

2017-12-01 Thread Michael Sumner
That file name does not correspond to the standard patterns used by the oceancolor site. All the L3m products from there are now (NetCDF 4.0) .nc and so will work fine with raster/ncdf4. (Some years ago they were HDF4 - without an extension, as the shortcuts in the image thumbnails hints (SMI/HDF