Changeset 777 in lmdz_wrf


Ignore:
Timestamp:
May 26, 2016, 1:19:34 PM (9 years ago)
Author:
lfita
Message:

Adding test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r771 r777  
    1385813858    minlon = np.min(np.abs(lonvs))
    1385913859
     13860    ivtest = 2198
    1386013861#    mindiff = np.min([minlat, minlon])/1.
    1386113862    mindiffin = np.sqrt(minlat*minlat + minlon*minlon)
     13863    print '  ' + fname + ': Longitudes minimum:', np.min(lonvs), 'max:', np.max(lonvs)
     13864    print '  ' + fname + ': Latitudes minimum:', np.min(latvs), 'max:', np.max(latvs)
     13865    print 'Lluis lon/lat ivtest:',lonvs[ivtest],',',latvs[ivtest]
    1386213866
    1386313867    print '  ' + fname + ': Closest latitude to Equator:', minlat
     
    1399914003    varlongname = ovar.long_name
    1400014004    varunits = ovar.units
     14005
     14006    print 'Lluis ovar[ivtest]:',ovar[ivtest]
     14007    quit()
    1400114008
    1400214009    fval = gen.fillvalue_kind(type(ovar[0]), fval0)
     
    1419414201
    1419514202            newnc.sync()
     14203            if ire > ivtest:
     14204                print 'iv:',ivtest,'lon lat:',lonvs[ivtest],',',latvs[ivtest]
     14205                print 'ilonlat:',ilonlatv[ivtest,:],'lonlat proj:', projlon[ilonlatv[ivtest,0]],',',     \
     14206                  projlat[ilonlatv[ivtest,1]],'diff:',newvarindiff[ivtest]
     14207                newnc.close()
     14208                quit()
    1419614209#            newnc.close()
    1419714210#            quit()
Note: See TracChangeset for help on using the changeset viewer.