From fc5a7876dae28c2ad46741ef5be1f6b8a8f06884 Mon Sep 17 00:00:00 2001 From: Michael Kelleher Date: Mon, 24 Feb 2020 15:03:18 -0500 Subject: [PATCH] Get data citation from input file --- data/icebridge.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/data/icebridge.py b/data/icebridge.py index d3f2874..ab2cec7 100644 --- a/data/icebridge.py +++ b/data/icebridge.py @@ -362,6 +362,12 @@ def mcb_bamber( speak.verbose(args, " Writing thk to base.") base.thk = nc_base.createVariable("thk", "f4", ("y", "x",)) base.thk[:, :] = trans.thk[:, :] + try: + base.thk.reference = nc_massCon.Data_citation + except AttributeError: + # Attribute not there...set it somewhere else + print("THICKNESS DATA CITATION NOT FOUND") + pass copy_atts_bad_fill(massCon.thickness, base.thk, -9999.0) speak.verbose(args, " Interpolating, with priority, topg and topgerr.")