From 578225967209ecee4b287121c67a9fdde90644ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carmen=20Pi=C3=B1ero=20Meg=C3=ADas?= Date: Mon, 1 Jul 2024 16:03:40 +0200 Subject: [PATCH 1/2] Remove add_offset and scale_factor from variable. --- nes/nc_projections/default_nes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nes/nc_projections/default_nes.py b/nes/nc_projections/default_nes.py index 2433863..0554037 100644 --- a/nes/nc_projections/default_nes.py +++ b/nes/nc_projections/default_nes.py @@ -2024,7 +2024,7 @@ class Nes(object): # Avoid some attributes for attrname in var_info.ncattrs(): - if attrname not in ['missing_value', '_FillValue']: + if attrname not in ['missing_value', '_FillValue', 'add_offset', 'scale_factor']: value = getattr(var_info, attrname) if str(value) in ['unitless', '-']: value = '' -- GitLab From 3c852927ae9c63bd01c70641dcc8697462f6c388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carmen=20Pi=C3=B1ero=20Meg=C3=ADas?= Date: Thu, 4 Jul 2024 11:43:53 +0200 Subject: [PATCH 2/2] Remove single quotes. --- nes/nc_projections/default_nes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nes/nc_projections/default_nes.py b/nes/nc_projections/default_nes.py index 0554037..670bb6a 100644 --- a/nes/nc_projections/default_nes.py +++ b/nes/nc_projections/default_nes.py @@ -2024,7 +2024,7 @@ class Nes(object): # Avoid some attributes for attrname in var_info.ncattrs(): - if attrname not in ['missing_value', '_FillValue', 'add_offset', 'scale_factor']: + if attrname not in ["missing_value", "_FillValue", "add_offset", "scale_factor"]: value = getattr(var_info, attrname) if str(value) in ['unitless', '-']: value = '' -- GitLab