<commit_before># -*- coding: utf-8 -*-
"""
Created on Sun Nov 11 11:53:27 2012

@author: <NAME>
@website: www.ambhas.com

this scripts plots the forcing for the richards' input file
"""

import numpy as np
import matplotlib.pyplot as plt
from ambhas.xls import xlsread

in_file = 'maddur.xls'
xls_file = xlsread(in_file)
doy = xls_file.get_cells('B2:B366','forcing')
rain = xls_file.get_cells('C2:C366','forcing')
pet = xls_file.get_cells('D2:D366','forcing')

plt.clf()
plt.bar(doy,rain, color='m', edgecolor='m', label='Rainfall')
plt.plot(pet, label='PET')
plt.grid(True)
plt.legend()
plt.xlabel('DOY')
plt.ylabel('mm')
plt.savefig('output/richards_forcing.png')

#from ambhas.richards import RICHARDS_1D


#maddur = RICHARDS_1D('/home/tomer/richards/input/maddur.xls')
#output_file = nc.NetCDFFile(maddur.ofile_name, 'r')
#print output_file.variables
#foo = output_file.variables['sm']
#theta= foo.getValue()<commit_msg>richards_forcing.png added<commit_after># -*- coding: utf-8 -*-
"""
Created on Sun Nov 11 11:53:27 2012

@author: <NAME>
@website: www.ambhas.com

this scripts plots the forcing for the richards' input file
"""

import matplotlib.pyplot as plt
from ambhas.xls import xlsread

in_file = 'maddur.xls'
xls_file = xlsread(in_file)
doy = xls_file.get_cells('B2:B366','forcing')
rain = xls_file.get_cells('C2:C366','forcing')
pet = xls_file.get_cells('D2:D366','forcing')

plt.clf()
plt.bar(doy,rain, color='m', edgecolor='m', label='Rainfall')
plt.plot(pet, label='PET')
plt.grid(True)
plt.legend()
plt.xlabel('DOY')
plt.ylabel('mm')
plt.savefig('../wiki/images/richards_forcing.png')

#from ambhas.richards import RICHARDS_1D


#maddur = RICHARDS_1D('/home/tomer/richards/input/maddur.xls')
#output_file = nc.NetCDFFile(maddur.ofile_name, 'r')
#print output_file.variables
#foo = output_file.variables['sm']
#theta= foo.getValue()
{'fraction_non_alphanumeric': 0.16918918918918918, 'fraction_numerical': 0.02918918918918919, 'mean_word_length': 6.202334630350195, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5540335', 'n_tokens_mistral': 826, 'n_tokens_neox': 744, 'n_words': 142}