Commit 5b58eada authored by ARCHER's avatar ARCHER 💬
Browse files

uptated nclight for new L2 version

parent 7e1a5df6
...@@ -160,9 +160,9 @@ def writeLight(fname,data,date,meta=None): ...@@ -160,9 +160,9 @@ def writeLight(fname,data,date,meta=None):
# ('owiPreProcessing/FilterBinary_1_cross' , 'heterogeneity_cr_h'), # ('owiPreProcessing/FilterBinary_1_cross' , 'heterogeneity_cr_h'),
# ('owiPreProcessing/FilterBinary_2_cross' , 'heterogeneity_cr_m'), # ('owiPreProcessing/FilterBinary_2_cross' , 'heterogeneity_cr_m'),
# ('owiPreProcessing/FilterBinary_3_cross' , 'heterogeneity_cr_l'), # ('owiPreProcessing/FilterBinary_3_cross' , 'heterogeneity_cr_l'),
('owiPreProcessing/FilterBinary_2' , 'heterogeneity_mask'), # TODO: waiting for merged filter ('owiWindFilter' , 'heterogeneity_mask'),
('owiPreProcessing/wind_streaks_orientation_stddev' , 'wind_streaks_orientation_stddev'), ('owiPreProcessing/wind_streaks_orientation_stddev' , 'wind_streaks_orientation_stddev'),
('owiPreProcessing/estimWindDir_2' , 'wind_streaks_orientation'), # TODO: should be owiPreProcessing/wind_streaks_orientation ('owiPreProcessing/wind_streaks_orientation' , 'wind_streaks_orientation'),
('owiNrcs' , 'nrcs_co'), ('owiNrcs' , 'nrcs_co'),
('owiNrcs_cross' , 'nrcs_cr'), ('owiNrcs_cross' , 'nrcs_cr'),
('owiElevationAngle' , 'elevation_angle'), ('owiElevationAngle' , 'elevation_angle'),
...@@ -398,7 +398,7 @@ def nclight2gridded(filein,fileout): ...@@ -398,7 +398,7 @@ def nclight2gridded(filein,fileout):
ds_gd.rio.set_spatial_dims('x','y', inplace=True) ds_gd.rio.set_spatial_dims('x','y', inplace=True)
ds_gd.rio.write_crs(crs, inplace=True) ds_gd.rio.write_crs(crs, inplace=True)
ds_gd.to_netcdf(fileout) ds_gd.to_netcdf(fileout,format='NETCDF4_CLASSIC')
def getAttribute(fname, attr): def getAttribute(fname, attr):
try: try:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment