Skip to content

Commit

Permalink
samplefiles for non latin characters and script for log to nc convers…
Browse files Browse the repository at this point in the history
…ion of parsivel
  • Loading branch information
DaveOri committed Feb 21, 2019
1 parent 7e8021f commit 90ac3c7
Show file tree
Hide file tree
Showing 6 changed files with 1,451 additions and 6 deletions.
7 changes: 4 additions & 3 deletions raincoat/scatTable/TMMrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
ray = prefactor*d**6
print(d, rxs, ray, ext, T, f)
table.loc[d] = T, wl, K2, rxs, ext, ray
# table.to_csv(str(T-273.15)[:2]+'C_'+str(f*1e-9)+'GHz.csv')

table.to_csv(str(T-273.15)[:2]+'C_'+str(f*1e-9)+'GHz.csv')
exit()
# %%

def dB(x):
Expand Down Expand Up @@ -109,7 +109,8 @@ def dB(x):
ray = prefactor*d**6
print(d, rxs, ray, ext, T, f)
table.loc[d] = T, wl, K2, rxs, ext, ray
# table.to_csv(str(T-273.15)[:2]+'C_'+str(f*1e-9)+'GHz.csv')
table.to_csv(str(T-273.15)[:2]+'C_'+str(f*1e-9)+'GHz.csv')


ax1.plot(table['radarsx[mm2]'], table['ray[mm2]'], label='Thurai 0 deg')
ax1.grid()
Expand Down
Binary file added samplefiles/parsivel_jue_20190210.nc
Binary file not shown.
1,440 changes: 1,440 additions & 0 deletions samplefiles/parsivel_nya_20180905.log

Large diffs are not rendered by default.

Binary file added samplefiles/parsivel_nya_20180905.nc
Binary file not shown.
4 changes: 4 additions & 0 deletions scripts/make_parsivel_nc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from raincoat.disdrometer.parsivel_log_nc_convert_samdconform import writeNC

writeNC('../samplefiles/parsivel_jue_20190210.log', '../samplefiles/parsivel_jue_20190210.nc', 'jue')
writeNC('../samplefiles/parsivel_nya_20180905.log', '../samplefiles/parsivel_nya_20180905.nc', 'nya')
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import sys

def configuration(parent_package='',top_path=None):
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('raincoat', parent_package, top_path,
version = '0.0.1',
Expand Down Expand Up @@ -59,7 +59,7 @@ def configuration(parent_package='',top_path=None):

from numpy.distutils.core import setup
setup(configuration=configuration,
packages = ['raincoat','raincoat.test','raincoat.scatTable','raincoat.parsivel'],
packages = ['raincoat','raincoat.test','raincoat.scatTable','raincoat.disdrometer'],
package_data = {},
platforms = ['any'],
requires = ['numpy', 'scipy'])
requires = ['numpy', 'scipy', 'netCDF4'])

0 comments on commit 90ac3c7

Please sign in to comment.