[Thread Prev][Thread Next][Index]
[ferret_users] merging netcdf files
- To: ferret_users@xxxxxxxx
- Subject: [ferret_users] merging netcdf files
- From: STEEVEN PAUL YERRAGUNTLA <steevenpaul@xxxxxxxxx>
- Date: Wed, 27 Oct 2010 23:37:17 +0530
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=7eNtu+SIzI1OBC953N8PzS6JWr7gnHtGoSrnzjsoGXk=; b=niTNmpH0wNa2Nhq32Dwhqqvl3ZE+COTGU5vzX7OboZ4i0W/5m8Tu0D278Zy41UK9F+ hzFqTRbwo+2X/XF/ZkUurIcMU770itHxkgT/bWGBGWWYtAd63/9YxZtsCvRiYuME178S J6WM/PyETWFzY40seae05TdFp0bSLjXHaLqoU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=gdp8KUgxAS6+/2hsjwVnOtxqXYGOkMoW2LHpdP5mmz8Kh9lt0aqPx5H8z4LGXvsSgp DjNoLbWlIQfn64Qm4Pk31zvpPDSxn0AwSw4Cdyaz9S988dhDiE6avAPxA1iO2D/ccrDp 2sy1vaM11ysYRvEllJw/zhslrxa1ZUQo0YQEc=
- Sender: owner-ferret_users@xxxxxxxx
Dear ferreters,
���� I want to merge two netcdf files, where second file having consecutive time steps to first file time steps.�� I tried in three ways (1). I tried� to make Descriptive fle but resultant des file showing error as follows
�
��� yes? use test.des
�**TMAP ERR: Error in namelist record
������������ Error in: STEPFILE_RECORD� 1
������������ Data set: ./test.des
(2).I tried another command NCRCAT, which results in error as follows:� ncrcat: ERROR input file salt_600_8697.cdf lacks a record dimension.
(3). Followed an answer in archives, which is as follows.�
*************
def axis/t=.... taxm ! define the merged time axis
def grid/like=v1[d=1]/t=taxm gm ! the merged grid
let/title="Merged variable" vm=if(L le 5)then v1[d=1} else v2[d=2]
**************
I am not clear about if condition checking, and tried above examples in the following way.
yes? sh da
���� currently SET data sets:
��� 1> ./s1-3.cdf
�name���� title���������������������������� I�������� J�������� K�������� L
�S������� Salinity������������������������ 1:161���� 1:91����� 1:60����� 1:3
�
��� 2> ./s4-6.cdf� (default)
�name���� title���������������������������� I�������� J�������� K�������� L
�S������� Salinity������������������������ 1:161���� 1:91����� 1:60����� 1:3
�
yes? def grid/like=s[d=1]/t=taxm gm
yes? let/title="Merged Variable" sm=if(L le 3) then s[d=1] else s[d=2]
yes? save/file=stest.cdf� sm
�*** NOTE: Ambiguous coordinates on T axis: IF(L LE 3) THEN S[D=1] ELSE S[D=2]
�*** NOTE: Ambiguous coordinates on T axis: IF(L LE 3) THEN S[D=1] ELSE S[D=2]
�LISTing to file stest.cdf
But output files show only first file time steps only.
yes? sh da
������ � 3> ./stest.cdf� (default)
�name���� title���������������������������� I�������� J�������� K�������� L
�SM������ Merged Variable����������������� 1:161���� 1:91����� 1:60����� 1:3
How to add step file record in netcdf file, if it required to make descriptive file?. Is there any way to achieve merging in ferret itself.
Hope somebody will spare sometime and answer me.
thanks in advance.
regards,
- Paul.
--
Steeven Paul Y
Research Fellow
NIO RC Vizag
176 Lawsons Bay Colony
Visakhapatnam - 530017
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Privacy Policy | Disclaimer | Accessibility Statement