@@ -247,6 +247,9 @@ def parse_args(self, *args, **kwargs):
247
247
attr_name = None ,
248
248
nc_name = 'contour_lon' ,
249
249
nc_type = 'f4' ,
250
+ output_type = 'i2' ,
251
+ scale_factor = 0.01 ,
252
+ add_offset = 180 ,
250
253
nc_dims = ('Nobs' , 'NbSample' ),
251
254
nc_attr = dict (
252
255
long_name = 'Longitude of contour' ,
@@ -257,12 +260,39 @@ def parse_args(self, *args, **kwargs):
257
260
attr_name = None ,
258
261
nc_name = 'contour_lat' ,
259
262
nc_type = 'f4' ,
263
+ output_type = 'i2' ,
264
+ scale_factor = 0.01 ,
260
265
nc_dims = ('Nobs' , 'NbSample' ),
261
266
nc_attr = dict (
262
267
long_name = 'Latitude of contour' ,
263
268
description = 'lats of contour points' ,
264
269
)
265
270
),
271
+ contour_lon_s = dict (
272
+ attr_name = None ,
273
+ nc_name = 'contour_lon_s' ,
274
+ nc_type = 'f4' ,
275
+ output_type = 'i2' ,
276
+ scale_factor = 0.01 ,
277
+ add_offset = 180 ,
278
+ nc_dims = ('Nobs' , 'NbSample' ),
279
+ nc_attr = dict (
280
+ long_name = 'Longitude of speed-based contour points' ,
281
+ description = 'lons of speed-based contour points' ,
282
+ )
283
+ ),
284
+ contour_lat_s = dict (
285
+ attr_name = None ,
286
+ nc_name = 'contour_lat_s' ,
287
+ nc_type = 'f4' ,
288
+ output_type = 'i2' ,
289
+ scale_factor = 0.01 ,
290
+ nc_dims = ('Nobs' , 'NbSample' ),
291
+ nc_attr = dict (
292
+ long_name = 'Latitude of speed-based contour points' ,
293
+ description = 'lats of speed-based contour points' ,
294
+ )
295
+ ),
266
296
contour_e = dict (
267
297
attr_name = None ,
268
298
nc_name = 'contour_e' ,
@@ -307,4 +337,8 @@ def parse_args(self, *args, **kwargs):
307
337
),
308
338
)
309
339
340
+ for key in VAR_DESCR .keys ():
341
+ if 'output_type' not in VAR_DESCR [key ]:
342
+ VAR_DESCR [key ]['output_type' ] = VAR_DESCR [key ]['nc_type' ]
343
+
310
344
VAR_DESCR_inv = {VAR_DESCR [key ]['nc_name' ] : key for key in VAR_DESCR .keys ()}
0 commit comments