@@ -410,8 +410,7 class HDFWriter(Operation): | |||
|
410 | 410 | self.metadataList = metadataList |
|
411 | 411 | self.dataList = [s.strip() for s in dataList] |
|
412 | 412 | self.setType = setType |
|
413 |
if self. |
|
|
414 | self.setType = "weather" | |
|
413 | if self.setType == "weather": | |
|
415 | 414 | self.set_kwargs(**kwargs) |
|
416 | 415 | self.set_kwargs_obj(self.dataOut,**kwargs) |
|
417 | 416 |
@@ -10,15 +10,33 PATH = '/home/soporte/Downloads/data_WR_RHI' | |||
|
10 | 10 | |
|
11 | 11 | |
|
12 | 12 | PARAM = { |
|
13 |
'P': {'name': 'dataPP_POWER', |
|
|
14 |
'V': {'name': 'dataPP_DOP', 'zmin': -20, 'zmax': 20, 'colormap': 'seismic', |
|
|
15 |
'RH': {'name': 'RhoHV_R', 'zmin': 0, 'zmax': 1, 'colormap': 'jet', 'label': 'Coef |
|
|
16 |
'FD': {'name': 'PhiD_P', 'zmin': -180, |
|
|
17 |
'ZD': {'name': 'Zdb_D', 'zmin': -20, 'zmax': 80, 'colormap': 'viridis', |
|
|
18 |
'Z': {'name': 'Zdb', 'zmin': -20, 'zmax': 60, 'colormap': 'viridis', |
|
|
19 |
'W': {'name': 'Sigmav_W', 'zmin': -20, 'zmax': 60, 'colormap': 'viridis', |
|
|
13 | 'P': {'name': 'dataPP_POWER','zmin': 35, 'zmax': 60, 'colormap': 'jet', 'label': 'Power', 'wrname':'Pow', 'cb_label': 'dB', 'ch':1}, | |
|
14 | 'V': {'name': 'dataPP_DOP', 'zmin': -20, 'zmax': 20, 'colormap': 'seismic','label': 'Velocity', 'wrname':'Dop', 'cb_label': 'm/s','ch':1}, | |
|
15 | 'RH': {'name': 'RhoHV_R', 'zmin': 0, 'zmax': 1, 'colormap': 'jet', 'label': 'Coef.Correlacion', 'wrname':'R', 'cb_label': '*', 'ch':0}, | |
|
16 | 'FD': {'name': 'PhiD_P', 'zmin': -180,'zmax': 180,'colormap': 'RdBu_r', 'label': 'Fase Diferencial', 'wrname':'P' , 'cb_label': 'ΒΊ', 'ch':0}, | |
|
17 | 'ZD': {'name': 'Zdb_D', 'zmin': -20, 'zmax': 80, 'colormap': 'viridis','label': 'Reflect.Diferencial','wrname':'D' , 'cb_label': 'dBz','ch':0}, | |
|
18 | 'Z': {'name': 'Zdb', 'zmin': -20, 'zmax': 60, 'colormap': 'viridis','label': 'Reflectividad', 'wrname':'Z', 'cb_label': 'dBz','ch':1}, | |
|
19 | 'W': {'name': 'Sigmav_W', 'zmin': -20, 'zmax': 60, 'colormap': 'viridis','label': 'AnchoEspectral', 'wrname':'S', 'cb_label': 'hz', 'ch':1} | |
|
20 | 20 | } |
|
21 | 21 | |
|
22 | ||
|
23 | #---------------------SIGNAL CHAIN ------------------------------------ | |
|
24 | # Definido por el usuario puede ser modificado solo se necesita definir. Ejemplo | |
|
25 | ''' | |
|
26 | desc_wr= { | |
|
27 | 'Data': { | |
|
28 | 'dataPP_POW': 'Power', | |
|
29 | 'utctime': 'Time', | |
|
30 | 'azimuth': 'az', | |
|
31 | 'elevation':'el' | |
|
32 | }, | |
|
33 | 'Metadata': { | |
|
34 | 'heightList': 'range', | |
|
35 | 'channelList': 'Channels' | |
|
36 | } | |
|
37 | } | |
|
38 | ''' | |
|
39 | ||
|
22 | 40 | def main(args): |
|
23 | 41 | |
|
24 | 42 | experiment = args.experiment |
@@ -120,13 +138,38 def main(args): | |||
|
120 | 138 | op.addParameter(name='colormap', value=PARAM[param]['colormap']) |
|
121 | 139 | |
|
122 | 140 | if args.save: |
|
141 | desc_wr= { | |
|
142 | 'Data': { | |
|
143 | PARAM[param]['name']: PARAM[param]['wrname'],#PARAM[param]['name']: {PARAM[param]['wrname']:['P0','P1']}, | |
|
144 | 'utctime': 'Time' | |
|
145 | }, | |
|
146 | 'Metadata': { | |
|
147 | 'heightList': 'range', | |
|
148 | 'channelList': 'Channels', | |
|
149 | 'data_azi': 'azimuth', | |
|
150 | 'data_ele': 'elevation' | |
|
151 | } | |
|
152 | } | |
|
123 | 153 | opObj10 = proc.addOperation(name='HDFWriter') |
|
124 | 154 | opObj10.addParameter(name='path',value=path_save, format='str') |
|
125 | 155 | opObj10.addParameter(name='Reset',value=True) |
|
126 | 156 | opObj10.addParameter(name='setType',value='weather') |
|
127 | 157 | opObj10.addParameter(name='blocksPerFile',value='1',format='int') |
|
128 |
opObj10.addParameter(name=' |
|
|
158 | #opObj10.addParameter(name='channel',value=PARAM[param]['ch'],format='int') | |
|
159 | opObj10.addParameter(name='metadataList',value='heightList,channelList,Typename,Datatype,Scantype,Latitude,Longitud,Heading,Waveform,PRF,CreatedBy,ContactInformation,data_azi,data_ele') | |
|
160 | opObj10.addParameter(name='Typename', value=PARAM[param]['label']) | |
|
161 | opObj10.addParameter(name='Datatype', value='RadialSet') | |
|
162 | opObj10.addParameter(name='Scantype', value='PPI') | |
|
163 | opObj10.addParameter(name='Latitude', value='-11.96') | |
|
164 | opObj10.addParameter(name='Longitud', value='-76.54') | |
|
165 | opObj10.addParameter(name='Heading', value='293') | |
|
166 | opObj10.addParameter(name='Height', value='293') | |
|
167 | opObj10.addParameter(name='Waveform', value='OFM') | |
|
168 | opObj10.addParameter(name='PRF', value='2500') | |
|
169 | opObj10.addParameter(name='CreatedBy', value='WeatherRadarJROTeam') | |
|
170 | opObj10.addParameter(name='ContactInformation', value='dscipion@igp.gob.pe') | |
|
129 | 171 | opObj10.addParameter(name='dataList',value=','.join([PARAM[param]['name'],'utctime'])) |
|
172 | opObj10.addParameter(name='description',value=json.dumps(desc_wr)) | |
|
130 | 173 | |
|
131 | 174 | project.start() |
|
132 | 175 |
General Comments 0
You need to be logged in to leave comments.
Login now