Changeset 3


Ignore:
Timestamp:
09/26/07 10:53:22 (17 years ago)
Author:
kolasinski
Message:

use of ncdf_meshread routine instead of ncdf_meshlec obsolete routine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/procs/meshes/mesh_orca.pro

    r2 r3  
    115115                  'V2': mesmsk = 'meshmask_ORCA_R2.nc' 
    116116                  'V3': mesmsk = 'meshmask_ORCA_R2_V2.nc' 
    117                ENDCASE  
    118                print, '                         mask config '+orca_mask_version 
     117               ENDCASE 
    119118               IF whole_arrays EQ 0 THEN BEGIN  
    120                   ncdf_meshlec, hom_idl+'grids/'+mesmsk, glam = glamboundary_box, onearth = onearth 
     119                   cmd_grid = 'ncdf_meshread, sm_file, GLAMBOUNDARY = glamboundary_box, onearth = onearth' 
    121120               ENDIF ELSE BEGIN  
    122                   ncdf_meshlec, hom_idl+'grids/'+mesmsk, onearth = onearth 
     121                   cmd_grid = 'ncdf_meshread, sm_file, GLAMBOUNDARY = glamboundary_box' 
    123122               ENDELSE  
    124                    
    125123            END  
    126124            'L300': BEGIN 
    127                ncdf_meshlec, hom_idl+'grids/meshmask.orca.2d.L300.nc', glam = glamboundary_box 
     125               mesmsk = 'meshmask.orca.2d.L300.nc' 
     126               cmd_grid = 'ncdf_meshread, sm_file, GLAMBOUNDARY = glamboundary_box' 
    128127            END  
    129128         ENDCASE  
    130129      END  
    131       'ORCA_R4': BEGIN  
    132          ncdf_meshlec, hom_idl+'grids/meshmask_orca4.nc', glam = glamboundary_box  
    133       END  
    134    ENDCASE  
    135  
    136    IF keyword_set(WHOLE_ARRAYS) THEN print, '                         [whole array]'                
     130      'ORCA_R4': BEGIN 
     131         mesmsk = 'meshmask_orca4.nc' 
     132         cmd_grid = 'ncdf_meshread, sm_file, GLAMBOUNDARY = glamboundary_box'  
     133      END  
     134   ENDCASE 
     135    
     136   print, '                         mask config '+orca_mask_version 
     137   IF keyword_set(WHOLE_ARRAYS) THEN print, '                         [whole array]'           
     138         
     139   sm_file = hom_idl+'grids/'+mesmsk 
     140   res = find(sm_file) 
     141 
     142   IF res NE 'NOT FOUND' THEN BEGIN 
     143       res_grid =  execute(cmd_grid) 
     144   ENDIF ELSE BEGIN 
     145       stop, 'No meshmask file found for ORCA mesh config' 
     146   ENDELSE 
    137147 
    138148; reduce grid to zonal mean 
Note: See TracChangeset for help on using the changeset viewer.