File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1765,12 +1765,12 @@ subroutine read_obs_sm_ASCAT_EUMET( &
17651765
17661766 ! Check that str_date_time only contains numeric characters
17671767
1768- do ii = 1 , len (str_date_time)
1769- if (ichar (str_date_time(ii:ii)) < ichar (' 0' ) .or. ichar (str_date_time(ii:ii)) > ichar (' 9' )) then
1770- err_msg = ' The date-time string parsed from the ASCAT observation filename contains non-numeric characters'
1771- call ldas_abort(LDAS_GENERIC_ERROR, Iam, err_msg)
1772- end if
1773- end do
1768+ do ii = 1 , len (trim ( str_date_time) )
1769+ if (ichar (str_date_time(ii:ii)) < ichar (' 0' ) .or. ichar (str_date_time(ii:ii)) > ichar (' 9' )) then
1770+ err_msg = ' The date-time string parsed from the ASCAT observation filename contains non-numeric characters'
1771+ call ldas_abort(LDAS_GENERIC_ERROR, Iam, err_msg)
1772+ end if
1773+ end do
17741774
17751775 read (str_date_time( 1 : 4 ), * ) date_time_tmp% year
17761776 read (str_date_time( 5 : 6 ), * ) date_time_tmp% month
You can’t perform that action at this time.
0 commit comments