Ignore:
Timestamp:
07/12/18 19:12:32 (6 years ago)
Author:
oabramkina
Message:

Replacing axis zoom by axis extract.
Zoom private attributes are gone for good.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/io/nc4_data_output.cpp

    r1553 r1559  
    11751175        axis->computeWrittenCompressedIndex(comm_file); 
    11761176        
    1177         int zoom_size  = (MULTI_FILE == SuperClass::type) ? axis->zoom_n.getValue() 
    1178                                                           : axis->global_zoom_n.getValue(); 
    1179  
    1180         int zoom_count = axis->zoom_n;                                                  
    1181         int zoom_begin = axis->zoom_begin; 
    1182  
    1183         if ((0 == axis->zoom_n) && (MULTI_FILE == SuperClass::type)) return; 
     1177        int size  = (MULTI_FILE == SuperClass::type) ? axis->n.getValue() 
     1178                                                          : axis->n_glo.getValue(); 
     1179 
     1180        if ((0 == axis->n) && (MULTI_FILE == SuperClass::type)) return; 
    11841181 
    11851182        std::vector<StdString> dims; 
     
    12001197          if (axis->dim_name.isEmpty()) axisDim = axisid; 
    12011198          else axisDim=axis->dim_name.getValue(); 
    1202           SuperClassWriter::addDimension(axisDim, zoom_size); 
     1199          SuperClassWriter::addDimension(axisDim, size); 
    12031200          dims.push_back(axisDim); 
    12041201 
     
    13441341              std::vector<StdSize> start(1), startBounds(2) ; 
    13451342              std::vector<StdSize> count(1), countBounds(2) ; 
    1346               start[0] = startBounds[0] = zoom_begin - axis->global_zoom_begin; 
    1347               count[0] = countBounds[0] = zoom_count; // zoom_size 
     1343              start[0] = startBounds[0] = axis->begin; 
     1344              count[0] = countBounds[0] = axis->n; 
    13481345              startBounds[1] = 0; 
    13491346              countBounds[1] = 2; 
     
    26162613                    { 
    26172614                        CAxis* axis = CAxis::get(axisList[idxAxis]); 
    2618                         start.push_back(axis->zoom_begin - axis->global_zoom_begin); 
    2619                         count.push_back(axis->zoom_n); 
     2615                        start.push_back(axis->begin); 
     2616                        count.push_back(axis->n); 
    26202617                      --idx; 
    26212618                      --idxAxis; 
Note: See TracChangeset for help on using the changeset viewer.