Changes between Version 45 and Version 46 of udg/ecoms


Ignore:
Timestamp:
Mar 14, 2013 10:35:01 PM (9 years ago)
Author:
antonio
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • udg/ecoms

    v45 v46  
    204204{{{#!text/matlab
    205205>> ver
     206----------------------------------------------------------------------
     207GNU Octave Version 3.6.1
     208GNU Octave License: GNU General Public License
     209Operating 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
    206235-------------------------------------------------------------------------------------
    207236MATLAB Version 7.8.0.347 (R2009a)