Changes between Version 2 and Version 3 of Dimensions


Ignore:
Timestamp:
11/17/06 14:25:32 (12 years ago)
Author:
tomgross
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Dimensions

    v2 v3  
    6464  If two sets of dimensions are included each one should be complete and independent of the other.
    6565  * Exception: Common time variable?
     66
     67
     68== A better idea for multiple grids: ==
     69
     70I see no real problem.  Let the file have single vectors of latitude, longitude, salinity all of dimension nodes.  Then define several grid index arrays for different grids. 
     71
     72{{{
     73int grid1(ncell1,three)
     74int grid2(ncell2,three)
     75int grid3(ncell3,three)
     76}}}
     77
     78  Each one consists of triplets of indices picking out values from the lat, long, salt arrays
     79
     80{{{
     81float lon(nodes)
     82float lat(nodes)
     83float salt(time,nodes)
     84
     85}}}
     86
     87Then a couple of matlab type calls would allow you to plot these different grids easily:
     88
     89{{{
     90lon=nc{'lon'}(:);   lat=nc{'lat'}(:)  ; salt=nc{'salt'}(:) ;
     91grid1=nc{'grid1'}(:) ; grid2= nc{'grid2'}(:); grid3= nc{'grid3'}(:);
     92triplot(grid1,lon,lat,salt(3,:))
     93triplot(grid2,lon,lat,salt(3,:))
     94triplot(grid3,lon,lat,salt(3,:))
     95 
     96}}}
     97 
     98Now we come to the idea of a mosaic.  What do we need to know in order to make connections between grid1, grid2, grid3?
     99What would it mean to be connected?  Sharing halo values? 
    66100       
    67101