From 71477b6351ae2fe49307afa0f15bbf144a623107 Mon Sep 17 00:00:00 2001
From: pcain <pcain@usgs.gov>
Date: Wed, 1 Sep 2021 17:22:18 -0600
Subject: [PATCH] decbase for locations starting with R

---
 geomagio/iaga2002/IAGA2002Writer.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/geomagio/iaga2002/IAGA2002Writer.py b/geomagio/iaga2002/IAGA2002Writer.py
index 2e9bbdfdd..bd215ef98 100644
--- a/geomagio/iaga2002/IAGA2002Writer.py
+++ b/geomagio/iaga2002/IAGA2002Writer.py
@@ -117,7 +117,11 @@ class IAGA2002Writer(object):
         if (
             "declination_base" in stats
             and stats.declination_base is not None
-            and (stats.data_type == "variation" or stats.data_type == "reported")
+            and (
+                stats.data_type == "variation"
+                or stats.data_type == "reported"
+                or stats.data_type[0] == "R"
+            )
         ):
             comments.append(
                 "DECBAS               {:<8d}"
-- 
GitLab