Changes between Version 44 and Version 45 of udg/ecoms


Ignore:
Timestamp:
Mar 14, 2013 8:46:33 PM (9 years ago)
Author:
antonio
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • udg/ecoms

    v44 v45  
    210210Java VM Version: Java 1.6.0_04-b12 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
    211211-------------------------------------------------------------------------------------
    212 >> javaaddpath('ftp://ftp.unidata.ucar.edu/pub/netcdf-java/v4.3/netcdfAll-4.3.jar');
     212>> javaaddpath('http://www.meteo.unican.es/work/netcdfAll-4.3.jar');
     213>> %javaaddpath('ftp://ftp.unidata.ucar.edu/pub/netcdf-java/v4.3/netcdfAll-4.3.jar');
    213214}}}
    214215
     
    217218>> HTTPSession.setGlobalCredentialsProvider(HTTPBasicProvider('username','password'));
    218219>> import ucar.nc2.*;
    219 >> ncfile = NetcdfFile.open('http://www.meteo.unican.es/tds5/dodsC/system4/System4_Seasonal_15Members.ncml');
     220>> import ucar.nc2.dataset.*;
     221>> ncfile = NetcdfDataset.openDataset('http://www.meteo.unican.es/tds5/dodsC/system4/System4_Seasonal_15Members.ncml');
    220222>> v = ncfile.findVariable('Minimum_temperature_at_2_metres_since_last_24_hours_surface');
    221 >> v.getShape()
     223>> disp(v.getDimensions)
     224[   member = 15;,    run = 360;,    time = 215;,    lat = 241;,    lon = 480;]
    222225>> data = v.read('0,11:359:12,31:61,66,475').copyToNDJavaArray();
    223 >> sqeeze(mean(data,3))
     226>> disp(squeeze(mean(data,3)))
     227  Columns 1 through 13
     228
     229  270.7917  273.2944  271.5666  271.0371  271.8275  272.4928  271.4809  268.5912  271.5313  273.8216  270.9940  274.2363  270.9933
     230
     231  Columns 14 through 26
     232
     233  271.5612  273.9899  270.5076  272.4505  270.6556  271.3118  272.7720  273.4359  271.8502  273.3965  274.1638  269.9825  271.3017
     234
     235  Columns 27 through 30
     236
     237  273.1195  271.2730  272.2915  270.4669
    224238}}}
    225239