Changeset 2561 in lmdz_wrf


Ignore:
Timestamp:
May 28, 2019, 2:56:00 PM (6 years ago)
Author:
lfita
Message:

removing spurious print in module_scientific.f90' and in nc_var_tools.py'

Location:
trunk/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/module_scientific.f90

    r2555 r2561  
    26292629  ! Filling with the points of all the space with .TRUE.
    26302630  Npts = COUNT(boolmat)
    2631   PRINT *, dx, dy, 'Lluis Npts:', Npts, 'Nppt:', Nppt
    26322631
    26332632  IF (ALLOCATED(points)) DEALLOCATE(points)
  • trunk/tools/nc_var_tools.py

    r2542 r2561  
    2939129391                getvarybndst = ydimvarbnds2D.transpose()
    2939229392
    29393                 print 'ref:', dxref, dyref
    29394                 print 'Lluis looking for:', reflon, 'lat.', reflat
    29395                 for j in range(dyref):
    29396                     print 'Lluis ref lat.', yslice2D[:,j,0]
    29397                 print 'Lluis get lon.', getlon[0,:]
    29398                 print 'Lluis get lat.', getlat[:,0]
    29399                 for i in range(dxget):
    29400                     print i,'Lluis get lat.', xdimvarbnds2D[:,0,i]
    29401                 for j in range(dyget):
    29402                     print j,'Lluis get lat.', ydimvarbnds2D[:,j,0]
    29403 
    2940429393                Ngridsint, gridsint, areas2Dt, areast, percenst =                    \
    2940529394                  fsci.module_scientific.grid_spacepercen(xcavals=reflont,           \
     
    2964429633                newdim = onewnc.createDimension('coord',2)
    2964529634
     29635            print '    Lluis dims ', dn+'Ngrid', 'Srgrid', Srgrid
     29636
    2964629637            newvar = onewnc.createVariable(dn+'Ngrid','i', tuple(Srgrid))
    2964729638            if Ngridsin.shape[1] == 1:
     
    2977329764    dxyB = osliceinB.shape[1]
    2977429765
     29766    print 'Lluis dims osliceNB', osliceNB.dimensions, 'osliceNA', osliceNA.dimensions
     29767
     29768
    2977529769    Srgrid = list(osliceNB.dimensions) + list(osliceNA.dimensions)
    2977629770    Sigrid = ['coord', dn+'gridin'] + Srgrid
     
    2980429798    inpointsB = inpB.transpose()
    2980529799
     29800    print 'Lluis here 00'
     29801
    2980629802    # Remembering that it is python (C-like...)
    2980729803    inpointsA = inpointsA-1
     
    2981929815    if not gen.searchInlist(onewnc.dimensions, dn+'gridin'):
    2982029816        newdim = onewnc.createDimension(dn+'gridin', maxNpointsAB)
     29817
     29818    print 'Lluis file creation'
     29819
     29820    print 'Lluis shapes: newvar', newvar.shape, 'NpointsAB', NpointsAB.shape, 'Srgrid', Srgrid
    2982129821
    2982229822    newvar = onewnc.createVariable(dn+'Ngrid','i', tuple(Srgrid))
     
    2982629826    newvar.setncattr('coordinates',' '.join(Srgrid[::-1]))
    2982729827   
     29828    print 'Lluis file creation 1'
     29829
    2982829830    innewvar = onewnc.createVariable(dn+'gridin', 'i', tuple(Sigrid),                \
    2982929831      fill_value=gen.fillValueI)
     
    2983229834    innewvar.setncattr('coordinates',' '.join(Srgrid[::-1]))
    2983329835
     29836    print 'Lluis file creation 2'
     29837
    2983429838    aanewvar = onewnc.createVariable(dn+'area','f',tuple(Srgrid),                    \
    2983529839      fill_value=gen.fillValueF)
     
    2983829842    aanewvar.setncattr('coordinates',' '.join(Srgrid[::-1]))
    2983929843
     29844    print 'Lluis file creation 3'
     29845
    2984029846    anewvar = onewnc.createVariable(dn+'gridarea','f',tuple(Spgrid),                 \
    2984129847      fill_value=gen.fillValueF)
     
    2984429850    anewvar.setncattr('coordinates',' '.join(Spgrid[::-1]))
    2984529851
     29852    print 'Lluis file creation 4'
     29853
    2984629854    pnewvar = onewnc.createVariable(dn+'gridpercen','f',tuple(Spgrid),               \
    2984729855      fill_value=gen.fillValueF)
     
    2985029858    pnewvar.setncattr('coordinates',' '.join(Spgrid[::-1]))
    2985129859
    29852     jjA = 10
    29853     iiA = 2
    29854     jjB = 0
    29855     iiB = 4
     29860    print 'Lluis prior to... dyA, dxA, dyB, dxB', dyA, dxA, dyB, dxB
     29861
    2985629862    for jA in range(dyA):
    2985729863        for iA in range(dxA):
     
    2989029896    #onewnc.close()
    2989129897    #quit()
     29898
     29899    print 'Lluis here !!'
    2989229900
    2989329901    if Nnewslcs >= 3:
Note: See TracChangeset for help on using the changeset viewer.