Skip to content

Commit

Permalink
drop radar only vars for optical products
Browse files Browse the repository at this point in the history
  • Loading branch information
jhkennedy committed Sep 7, 2023
1 parent 60e3f83 commit c10044c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hyp3_autorift/crop.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ def crop_netcdf_product(netcdf_file: Path):
two_dim_chunks_settings = (chunk_lines, dims['x'])

encoding = ENCODING_TEMPLATE.copy()
if not netcdf_file.name.startswith('S1'):
for radar_variable in ['M11', 'M12', 'va', 'vr']:
encoding.pop(radar_variable)

for _, attributes in encoding.items():
if attributes['_FillValue'] is not None:
attributes['chunksizes'] = two_dim_chunks_settings
Expand Down

0 comments on commit c10044c

Please sign in to comment.