Changeset 272 in lmdz_wrf


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

Adding check_arguments in 'compute_tevolboxtraj'
Fixing argument number

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r271 r272  
    97599759    """ Function to compute tevolboxtraj: temporal evolution at a given point along
    97609760          a box following a trajectory
    9761       values= [trajfile]@[Tbeg],[lonname],[latname],[timename],[timekind],[boxsize],[circler]
     9761      values= [trajfile]@[Tbeg],[lonname],[latname],[zname],[timename],[timekind],[boxsize],[circler]
    97629762        [trajfile]: ASCII file with the trajectory ('#' not readed)
    97639763          [time] [xpoint] [ypoint]
     
    97829782        quit()
    97839783
     9784    arguments = '[trajfile]@[Tbeg],[lonname],[latname],[zname],[timename],' +        \
     9785      '[timekind],[boxsize],[circler]]'
     9786    check_arguments(fame,len(arguments.split(',')),arguments,',',8)
     9787
    97849788    ofile = 'tevolboxtraj_' + varn + '.nc'
    97859789
     
    97909794    zn = values.split(',')[3]
    97919795    timn = values.split(',')[4]
    9792     timekind = values.split(',')[4]
    9793     boxs = int(values.split(',')[5])
    9794     circler = int(values.split(',')[6])
     9796    timekind = values.split(',')[5]
     9797    boxs = int(values.split(',')[6])
     9798    circler = int(values.split(',')[7])
    97959799
    97969800    if np.mod(boxs,2) != 1:
Note: See TracChangeset for help on using the changeset viewer.