Matlab Code and Data description

7 downloads 289 Views 45KB Size Report
Matlab Code and Data description: >> file = 'data.nc';. >> ncdisp(file);. Source: F:\Data Agradp\data.nc. Format: classic. Dimensions: F = 187. C = 3. I-C = 15.
Matlab  Code  and  Data  description:     >>  file  =  'data.nc';       >>  ncdisp(file);   Source:                         F:\Data  Agradp\data.nc   Format:                         classic   Dimensions:                         F       =  187                         C       =  3                         I-­‐C  =  15                         X       =  144                         L       =  4                         Y       =  72   Variables:           F                               Size:               187x1                         Dimensions:  F                         Datatype:       single                         Attributes:                                                 pointwidth                   =  1                                                 file_last_modified  =  1442444578                                                 calendar                       =  '360'                                                 expires                         =  1444348800                                                 gridtype                       =  0                                                 units                             =  'months  since  1960-­‐01-­‐01'           C                               Size:               15x3                         Dimensions:  I-­‐C,C                         Datatype:       int8                         Attributes:                                                 gridtype  =  2                                                 units         =  'ids'           X                               Size:               144x1                         Dimensions:  X                         Datatype:       single                         Attributes:                                                 standard_name  =  'longitude'                                                 pointwidth         =  2.5                                                 gridtype             =  1                                                 units                   =  'degree_east'  

        L                               Size:               4x1                         Dimensions:  L                         Datatype:       single                         Attributes:                                                 pointwidth  =  1                                                 gridtype       =  0                                                 units             =  'months'           Y                               Size:               72x1                         Dimensions:  Y                         Datatype:       single                         Attributes:                                                 standard_name  =  'latitude'                                                 pointwidth         =  2.5                                                 gridtype             =  0                                                 units                   =  'degree_north'           prob                         Size:               3x144x72x4x187                         Dimensions:  C,X,Y,L,F                         Datatype:       single                         Attributes:                                                 missing_value     =  -­‐9                                                 expires                 =  1444348800                                                 units                     =  'percent'                                                 long_name             =  'Tercile  Probability'                                                 scale_max             =  100                                                 colorscalename  =  'tercileclassesscale'                                                 ncolor                   =  254                                                 maxncolor             =  254                                                 colormap               =   '[null   16777215   16777184   [16777184   44]   15658671   [15658671   13]   13153410   [13153410   12]   11834980   [11834980   13]   12632256   12632256  2019940  [2019940  10]  59045  [59045  13]  65480  [65480  12]  65535  [65535  13]  54015   [54015  12]  2139647  [2139647  13]  2115034  [2115034  12]  [6303920  83]  6303920]'                                                 CE                           =  100                                                 CS                           =  0                                                 scale_min             =  0   >>  lon  =  ncread(file,'X');   >>  lat  =  ncread(file,'Y');   >>  time  =  ncread(file,  'F');   >>  lead  =  ncread(file,  'L');   >>  probability  =  ncread(file,'prob',  [1  1  1  1  1],  [144  72  187  1  1],  [1  1  1  1  1]);   一   this  is  the  infeasible  code    

ncread(source,  varname,  start,  count,  stride)   source  is  the  file  name   varname  is  the  variable  name   start  is  from  where  to  start  read  the  data  for  each  dimension(in  vector  form)   count  is  how  many  data  points  to  read  for  each  dimension(in  vector  form)   stride  is  the  frequency  of  extraction  data     I  am  still  trying  to  figure  out  the  code  for  ‘start’  and  ‘count’  to  extract  our  prob  variable  specified   with  values  of  other  dimension  variables.