diff --git a/act/discovery/get_armfiles.py b/act/discovery/get_armfiles.py index 3d730212e1..4af7fd584f 100644 --- a/act/discovery/get_armfiles.py +++ b/act/discovery/get_armfiles.py @@ -163,6 +163,12 @@ def download_data(username, token, datastream, startdate, enddate, time=None, ou print(f'[DOWNLOADING] {fname}') open_bytes_file.write(data) file_names.append(output_file) + # Get ARM DOI and print it out + print(datastream, start_datetime, end_datetime) + doi = get_arm_doi(datastream, start_datetime.strftime('%Y-%m-%d'), end_datetime.strftime('%Y-%m-%d')) + print('\nIf you use these data to prepare a publication, please cite:\n') + print(textwrap.fill(doi, width=80)) + print('') else: print( 'No files returned or url status error.\n' 'Check datastream name, start, and end date.'