Index: palm/trunk/SOURCE/netcdf_data_input_mod.f90
===================================================================
--- palm/trunk/SOURCE/netcdf_data_input_mod.f90	(revision 3941)
+++ palm/trunk/SOURCE/netcdf_data_input_mod.f90	(revision 3942)
@@ -25,4 +25,8 @@
 ! -----------------
 ! $Id$
+! Fix: increase LEN of all NetCDF attribute values (caused crash in 
+! netcdf_create_global_atts due to insufficient length)
+! 
+! 3941 2019-04-30 09:48:33Z suehring
 ! Move check for grid dimension to an earlier point in time when first array
 ! is read.
@@ -638,31 +642,31 @@
 !-- attribute.
     TYPE global_atts_type
-       CHARACTER(LEN=12 ) ::  acronym                            !< acronym of institution
+       CHARACTER(LEN=200) ::  acronym = ' '                      !< acronym of institution
        CHARACTER(LEN=7)   ::  acronym_char = 'acronym'           !< name of attribute
-       CHARACTER(LEN=200) ::  author                             !< first name, last name, email adress
+       CHARACTER(LEN=200) ::  author  = ' '                      !< first name, last name, email adress
        CHARACTER(LEN=6)   ::  author_char = 'author'             !< name of attribute
-       CHARACTER(LEN=12 ) ::  campaign = 'PALM-4U'               !< name of campaign
+       CHARACTER(LEN=200) ::  campaign = 'PALM-4U'               !< name of campaign
        CHARACTER(LEN=8)   ::  campaign_char = 'campaign'         !< name of attribute
-       CHARACTER(LEN=200) ::  comment                            !< comment to data
+       CHARACTER(LEN=200) ::  comment = ' '                      !< comment to data
        CHARACTER(LEN=7)   ::  comment_char = 'comment'           !< name of attribute
-       CHARACTER(LEN=200) ::  contact_person                     !< first name, last name, email adress
+       CHARACTER(LEN=200) ::  contact_person = ' '               !< first name, last name, email adress
        CHARACTER(LEN=14)  ::  contact_person_char = 'contact_person'  !< name of attribute
        CHARACTER(LEN=200) ::  conventions = 'CF-1.7'             !< netCDF convention
        CHARACTER(LEN=11)  ::  conventions_char = 'Conventions'   !< name of attribute
-       CHARACTER(LEN=23 ) ::  creation_time                      !< creation time of data set
+       CHARACTER(LEN=23 ) ::  creation_time = ' '                !< creation time of data set
        CHARACTER(LEN=13)  ::  creation_time_char = 'creation_time'  !< name of attribute
-       CHARACTER(LEN=16 ) ::  data_content                       !< content of data set
+       CHARACTER(LEN=200) ::  data_content = ' '                 !< content of data set
        CHARACTER(LEN=12)  ::  data_content_char = 'data_content' !< name of attribute
-       CHARACTER(LEN=200) ::  dependencies                       !< dependencies of data set
+       CHARACTER(LEN=200) ::  dependencies = ' '                 !< dependencies of data set
        CHARACTER(LEN=12)  ::  dependencies_char = 'dependencies' !< name of attribute
-       CHARACTER(LEN=200) ::  history                            !< information about data processing
+       CHARACTER(LEN=200) ::  history = ' '                      !< information about data processing
        CHARACTER(LEN=7)   ::  history_char = 'history'           !< name of attribute
-       CHARACTER(LEN=200) ::  institution                        !< name of responsible institution
+       CHARACTER(LEN=200) ::  institution = ' '                  !< name of responsible institution
        CHARACTER(LEN=11)  ::  institution_char = 'institution'   !< name of attribute
-       CHARACTER(LEN=200) ::  keywords                           !< keywords of data set
+       CHARACTER(LEN=200) ::  keywords = ' '                     !< keywords of data set
        CHARACTER(LEN=8)   ::  keywords_char = 'keywords'         !< name of attribute
-       CHARACTER(LEN=200) ::  licence                            !< licence of data set
+       CHARACTER(LEN=200) ::  licence = ' '                      !< licence of data set
        CHARACTER(LEN=7)   ::  licence_char = 'licence'           !< name of attribute
-       CHARACTER(LEN=200) ::  location                           !< place which refers to data set
+       CHARACTER(LEN=200) ::  location = ' '                     !< place which refers to data set
        CHARACTER(LEN=8)   ::  location_char = 'location'         !< name of attribute
        CHARACTER(LEN=10)  ::  origin_lat_char = 'origin_lat'     !< name of attribute
@@ -674,12 +678,12 @@
        CHARACTER(LEN=8)   ::  origin_z_char = 'origin_z'         !< name of attribute
        CHARACTER(LEN=12)  ::  palm_version_char = 'palm_version' !< name of attribute
-       CHARACTER(LEN=200) ::  references                         !< literature referring to data set
+       CHARACTER(LEN=200) ::  references = ' '                   !< literature referring to data set
        CHARACTER(LEN=10)  ::  references_char = 'references'     !< name of attribute
        CHARACTER(LEN=14)  ::  rotation_angle_char = 'rotation_angle'  !< name of attribute
-       CHARACTER(LEN=12 ) ::  site                               !< name of model domain
+       CHARACTER(LEN=200) ::  site = ' '                         !< name of model domain
        CHARACTER(LEN=4)   ::  site_char = 'site'                 !< name of attribute
-       CHARACTER(LEN=200) ::  source                             !< source of data set
+       CHARACTER(LEN=200) ::  source = ' '                       !< source of data set
        CHARACTER(LEN=6)   ::  source_char = 'source'             !< name of attribute
-       CHARACTER(LEN=200) ::  title                              !< title of data set
+       CHARACTER(LEN=200) ::  title = ' '                        !< title of data set
        CHARACTER(LEN=5)   ::  title_char = 'title'               !< name of attribute
        CHARACTER(LEN=7)   ::  version_char = 'version'           !< name of attribute
