Changeset 276 in lmdz_wrf


Ignore:
Timestamp:
Feb 25, 2015, 11:48:36 AM (10 years ago)
Author:
lfita
Message:

Fixing minor issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r275 r276  
    98319831    arguments = '[trajfile]@[Tbeg],[lonname],[latname],[zname],[timename],' +        \
    98329832      '[timekind],[boxsize],[circler]]'
    9833     check_arguments(fame,len(arguments.split(',')),arguments,',',8)
     9833    check_arguments(fname,len(arguments.split(',')),arguments,',',8)
    98349834
    98359835    ofile = 'tevolboxtraj_' + varn + '.nc'
     
    99089908##
    99099909    Ttraj = file_nlines(trajfile,'#')
    9910     if Ttraj > varobj.shape[0]:
     9910    if timekind == 'wrf':
     9911        dimt = objfile.variables[timn].shape[0]
     9912    else:
     9913        dimt = objfile.variables[timn].shape
     9914
     9915    if Ttraj > dimt:
    99119916        print errormsg
    99129917        print '  ' + fname + ': trajectory has ', Ttraj, ' time steps and data',     \
     
    99769981#            trajcut[0] = tstept - 1
    99779982# Assuming time as the first dimension in a C/python like way (t=0)
    9978 
    9979             slicev.append(gtrajvals[it,0])
    99809983
    99819984# box values
     
    1062310626#compute_tevolboxtraj('control/trajectory.dat@0,lon,lat,time,cf,5,5',                 \
    1062410627#  'control/wss.nc', 'wss')
    10625 # in /home/lluis/etudes/WL_HyMeX/superstorm
    10626 compute_tevolboxtraj('control/trajectory.dat@0,XLONG,XLAT,ZNU,Times,wrf,3,3',       \
    10627   'control/wrfout/wrfout_d01_2001-11-09_00:00:00', 'PSFC')
     10628# in camelot, /bdd/PCER/workspace/lfita/etudes/FF/50sims
     10629compute_tevolboxtraj('001/trajectory.dat@0,XLONG,XLAT,ZNU,Times,wrf,3,3',       \
     10630  '001/full_concatenated.nc', 'PSFC')
    1062810631
    1062910632def numVector_String(vec,char):
Note: See TracChangeset for help on using the changeset viewer.