### A. Spiga -- LMD -- 03/07/2011 def api_onelevel ( path_to_input = './', \ input_name = 'wrfout_d0?_????-??-??_??:00:00', \ path_to_output = None, \ output_name = None, \ process = 'list', \ fields = 'tk,W,uvmet,HGT', \ debug = False, \ bit64 = False, \ oldvar = True, \ interp_method = 4, \ extrapolate = 0, \ unstagger_grid = False, \ onelevel = 0.020 ): import api import numpy as np if not path_to_output: path_to_output = path_to_input if not output_name: if interp_method <= 2: output_name = input_name+'_p' if interp_method == 3: output_name = input_name+'_z' if interp_method == 4: output_name = input_name+'_zabg' print input_name, output_name api.api_main ( path_to_input, input_name, path_to_output, output_name, \ process, fields, debug, bit64, oldvar, np.arange(299), \ interp_method, extrapolate, unstagger_grid, onelevel ) return output_name