| 206 | ---------------------------------------------------------------------- |
| 207 | GNU Octave Version 3.6.1 |
| 208 | GNU Octave License: GNU General Public License |
| 209 | Operating System: unknown |
| 210 | ---------------------------------------------------------------------- |
| 211 | }}} |
| 212 | |
| 213 | {{{#!text/matlab |
| 214 | >> urlwrite('http://www.meteo.unican.es/work/netcdfAll-4.3.jar','netcdfAll-4.3.jar') |
| 215 | >> javaaddpath('./netcdfAll-4.3.jar'); |
| 216 | >> javaMethod('setGlobalCredentialsProvider','ucar.nc2.util.net.HTTPSession',javaObject('ucar.nc2.util.net.HTTPBasicProvider','username','password')); |
| 217 | >> ncfile = javaMethod('openDataset','ucar.nc2.dataset.NetcdfDataset','http://www.meteo.unican.es/tds5/dodsC/system4/System4_Seasonal_15Members.ncml'); |
| 218 | >> v = ncfile.findVariable('Minimum_temperature_at_2_metres_since_last_24_hours_surface'); |
| 219 | >> disp(v.getDimensions.toString) |
| 220 | [ member = 15;, run = 360;, time = 215;, lat = 241;, lon = 480;] |
| 221 | >> d = v.read('0,11:359:12,31:61,66,475'); |
| 222 | >> tmp = javaObject('org.octave.Matrix',d.reduce.copyToNDJavaArray); |
| 223 | >> oldFlag = java_convert_matrix (1); |
| 224 | >> octaveMatrix = tmp.ident(tmp); |
| 225 | [ (30 by 31) array of double ] |
| 226 | >> disp(squeeze(mean(octaveMatrix,2))) |
| 227 | }}} |
| 228 | |
| 229 | = Accessing to the Data portal using Octave= #ex.octave |
| 230 | |
| 231 | [[NoteBox(warn,This section needs revision and integrtion with the [#ex.matlab Matlab example section])]] |
| 232 | |
| 233 | {{{#!text/matlab |
| 234 | >> ver |