diff --git a/RMA2SERAPHIN.py b/RMA2SERAPHIN.py index 703087a..15f9c8e 100644 --- a/RMA2SERAPHIN.py +++ b/RMA2SERAPHIN.py @@ -8,18 +8,17 @@ import matplotlib.pyplot as plt import math from py_rmatools import rma -get_ipython().magic('matplotlib qt') plt.rcParams.update({'figure.max_open_warning': 0}) # In[65]: -meshFilename = 'ck_034.rm1' +meshFilename = 'HWQ010.rm1' channelWidth = 100 -RMAfilename = 'CK011_WQ' +RMAfilename = 'HWQ277_2010_WQ' #If RMA11 -constNum = [1] +constNum = [1,2,3,5,6,7,8,10,11,13,14,15,18] # In[66]: @@ -173,7 +172,7 @@ def RMA11toSerafin(): f.write(struct.pack(">l",len(NodeList)*4)) - R.next() + #R.next() f.close() @@ -336,18 +335,6 @@ with open(meshFilename) as f: line = f.readline() -# In[ ]: - - - - -# In[ ]: - - - - -# In[75]: - for e in ElementList: oneD2triangle(e) square2Triangle(e) @@ -365,10 +352,6 @@ for key, value in nodeDict.items(): cpt +=1 -# In[ ]: - - - # # Open and Read First Step of the RMA File and Save a Serafin @@ -388,55 +371,3 @@ if R.type==b'RMA2 ': constName = ['X-VEL','Y-VEL','DEPTH','FREE SURFACE'] RMA2toSerafin() - - -# In[ ]: - - - - -# In[ ]: - - - - -# In[ ]: - - - - -# In[ ]: - - - - -# In[ ]: - - - - -# In[ ]: - - - - - -# In[ ]: - - - - -# In[ ]: - - - - -# In[ ]: - - - - -# In[ ]: - - -