[Thread Prev][Thread Next][Index]
Re: [ferret_users] combine ncdf files with nc2mc.sh
- To: <ferret_users@xxxxxxxx>, <E.Gavilan-Pascual-Ahuir1@xxxxxxxxxxxxxxx>
- Subject: Re: [ferret_users] combine ncdf files with nc2mc.sh
- From: Hella Riede <hella.riede@xxxxxxx>
- Date: Mon, 26 Jun 2017 01:40:12 +0200
- Arc-authentication-results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of hella.riede@xxxxxxx designates 192.67.218.51 as permitted sender) smtp.mailfrom=hella.riede@xxxxxxx
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=dMRMN5hFLIuGm+OhuSmud85t58lTDYMfQL0qQoDTuM0=; b=Nh1eXMhPuMb+JtT8bPF5AAgm0Dzb7TnUemXM5cBnVj0nNxKf05Xqw82vxmtCMCcSf9 B06R81/0KTb449jI/ssihMI5302BGsQFtsymn0tkbBNA3kxbUXxlvC/eOTaCmzRzgez2 hfstlFf+Rbu57zEbq6eAg7Jpq6TB8qyFKEWGdaKS4y6LF/fJoFOcxHwx28d2FT88Sz6O eyspMWW/UBDtTfKRp6MwaDiOKd5yVNMfuRt/nvaLfuM04iY4vD0DOWKNVFPuk/VgV3ah WdAJPlTwwu7oBZaKhrvakWSCSSlTVj3j98GONjJeHOn+aBunI2oHWncFcMBwNFo93HSa WpGA==
- Arc-seal: i=1; a=rsa-sha256; t=1498434016; cv=none; d=google.com; s=arc-20160816; b=qH7SSgeRjEpU3GSHlRicIE7helEaGBYM2S8/2n+et6bMZCCTMeoleZ98VrGe3SpQRA WMikxJ1oY+N4Y5oXiOz5Pgt+LxiKGn9lHt0L0Vc7ich0Z9qIpAVkDUZzTg4zUYH5ZTUa Y0u7NHjJMyofurn1TiUGBFWSzoT0P14Que46sgoPq8PT97ovJApeH7/KC6+gsVFNOyIP dE/oFMwofqwJmiEQyM5s/YkwMt702ftN0LrMyxTwDpLYbBxBujlOhRhj5Nry0Wtka79j OdGelxiy0zpzaifDyYi3hUpJ1sdk/b+4izjnCHaIV99y+uZq5ih0Zjy2C0L16x3W8Lz8 MnFA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noaa-gov.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive; bh=dMRMN5hFLIuGm+OhuSmud85t58lTDYMfQL0qQoDTuM0=; b=Usd4lEv/qHnYqBRxTdcMMBOyy2hiYTWopKqImDaXJiamTblWAAkLEBWn28PWyRZ1XY oHPDTJ2OxxwHdJ3z/RUg0NVCWpYHs/36TKXSZCiZguVmdFWuXIfMoKkyoYp8lB9JnAuO eDK/ErpzPdaTDtLZh6vq7B9xCnNN3YExTPCMUKqtIMr22E538C12hWiun+816atmZCkq XKyW2Uvqf2Y9GGpE/oNEye+HN9FdCD30kEgV/X1IojrLaON62plh3L3IxVj/cJhQMkLY GLRhGtIVUYE2P69kqIEnnHqBjs8wvfGacD5vf0oFvdACl75bCF505TY+7IXhWJdlnQ1/ VltA==
- In-reply-to: <WM!418b38c445c0c6fdf136fec73d283896f17fd6d6f7c7bc5a5c1bc212f4e3ef5d40a8b189839956dd9ecaf78d3f7dc11e!@mailhub-mx3.ncl.ac.uk>
- List-archive: <https://groups.google.com/a/noaa.gov/group/ferret_users/>
- List-help: <https://support.google.com/a/noaa.gov/bin/topic.py?topic=25838>, <mailto:ferret_users+help@noaa.gov>
- List-id: <ferret_users.noaa.gov>
- List-post: <https://groups.google.com/a/noaa.gov/group/ferret_users/post>, <mailto:ferret_users@noaa.gov>
- Mailing-list: list ferret_users@xxxxxxxx; contact ferret_users+owners@xxxxxxxx
- References: <DB6PR07MB3367C4A7421AF50C75F5C3DD88D80@DB6PR07MB3367.eurprd07.prod.outlook.com> <WM!418b38c445c0c6fdf136fec73d283896f17fd6d6f7c7bc5a5c1bc212f4e3ef5d40a8b189839956dd9ecaf78d3f7dc11e!@mailhub-mx3.ncl.ac.uk>
- Sender: owner-ferret_users@xxxxxxxx
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1
Dear Estanis,
looking into the script code of nc2mc here, http://www.pa.op.dlr.de/~PatrickJoeckel/nc2mc/nc2mc, you can see that this error message is triggered if 'tline' of the first nc file to be added to the descriptor file does not contain 1 or 4 fields:
switch (${#tline})
case 1:
# special case
echo 'WARNING: FORMAT OF units-ATTRIBUTE OF '$tname' NOT RECOGNIZED: '$tline
set tline = ( "${tline}" "since" "0001-01-01" "00:00:00" )
echo '... using '${tline} 'instead.'
breaksw
case 4:
# OK, do nothing
breaksw
default:
echo 'ERROR: FORMAT OF units-ATTRIBUTE OF '$tname' NOT RECOGNIZED: '$tline
exit 4
breaksw
endsw
'tline' is the line in a netCDF file that contains the time units, e.g., 'hours since 01-Jan-1900 00:00:00'. 4 fields would be the typical case, in this case field 1 is 'hours', field 2 is 'since', field 3 is '01-Jan-1900', and field 4 is '00:00:00'.
So the error does *not* relate to your already existing descriptor file, but to the first *.nc file to be added, which would be 'nemo1.nc' in your example. In a shell, execute this command to check the time units in your netCDF file and find out why it does not have 4 fields: ncdump -h nemo1.nc | less.
I actually wonder where your descriptor file comes from if nc2mc aborted with an error ...
Best wishes,
Hella
On 06/23/2017 08:13 PM, Estanislao Gavilan Pascual-Ahuir (PGR) wrote:
> Dear Community,
>
>
> I am trying to combine 2 ncdf files using nc2mc.sh. But I am having this error
>
>
> ERROR: FORMAT OF units-ATTRIBUTE OF t NOT RECOGNIZED:
>
> Thanks in advance for all your help.
>
>
> My descriptor file is:
>
> &FORMAT_RECORD
> D_TYPE = ' MC',
> D_FORMAT = ' 1A',
> D_SOURCE_CLASS = 'MODEL OUTPUT',
> /
> &BACKGROUND_RECORD
> D_EXPNUM = 'Control',
> D_TITLE = '',
> D_T0TIME = '01-Jan-1900 00:00:00',
> D_TIME_UNIT = 1.0,
> D_TIME_MODULO = .FALSE.,
> /
> &MESSAGE_RECORD
> D_MESSAGE = ' ',
> D_ALERT_ON_OPEN = F,
> D_ALERT_ON_OUTPUT = F,
> /
> &EXTRA_RECORD
> /
> &STEPFILE_RECORD
> s_filename = 'nemo1.nc',
> S_START = 3471508800,
> S_END = 4417156800,
> S_DELTA = 432000,
> S_NUM_OF_FILES = 1,
> S_REGVARFLAG = ' ',
> /
> &STEPFILE_RECORD
> s_filename = 'nemo2.nc',
> S_START = 4417588800,
> S_END = 6309316800,
> S_DELTA = 432000,
> S_NUM_OF_FILES = 1,
> S_REGVARFLAG = ' ',
> /
> &STEPFILE_RECORD
> s_filename = '**END OF STEPFILES**'
> /
>
>
> Kind regards,
>
>
> Estanis
>
>
--
...............................................................................
Hella Riede hella.riede@xxxxxxx
Air chemistry department: Modeling & Global Observations
Max Planck Institute for Chemistry, Hahn-Meitner-Weg 1, 55128 Mainz, Germany
www.mpic.de www.caribic.de
...............................................................................
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement