[Thread Prev][Thread Next][Index]

Re: Muti-cdf files



Hi Xin -

Please see the Ferret FAQ for an answer to your question re: Multi-NetCDF datasets under linux systems at:
     http://ferret.wrc.noaa.gov/Ferret/FAQ/system/linux_mc_descriptors.html

Kevin

Xin Jin wrote:

Hi Mick,

I've tried it again, but not work. It seems related to the linux operate system. I have also tested it in a Sun workstation, it really works. Does anybody else has the experiences with linux on this descriptor file?

Thanks.
 

Xin
 

Mick Spillane wrote:

Hi Xin,
        I've had that error before and after your message I tried
and succeeded in getting it again.
In the .des file that works each line with a $ (dollar sign) in it
begins with a SPACE character.  If I edit the file to remove those
leading spaces then the same error you report occurs.
        I must someday learn what goes on behind the scenes with
these descriptor files.  I remember when I first tried to use one
I got nowhere until someone supplied me with one that worked, and
I've been copying and modifying that file ever since.  This is not
too satisfactory and it would be nice if I could point you to a
full description of the syntax but I'm not aware of one.
        Hope this is of some use anyway.  I work at a Sun workstation
and have no experience with linux but hopefully this will not be
an issue.

Mick

PS Here is the descriptor file again but I've substituted a + for
every SPACE which may help to avoid any ambiguity with introduced
by email.  If you cut and paste the following lines to a file
named exptl.desplus then the command
sed 's/+/ /g' exptl.desplus > exptl.des
should result in the file that works for me.
***************************************************************************
*+test+of+mc+descriptor+to+combine+decade+&+century+of+annual+data++++++++*
***************************************************************************
+$FORMAT_RECORD
++++++D_TYPE+++++++++++++++=+'++MC',
++++++D_FORMAT+++++++++++++=+'++1A',
++++++D_SOURCE_CLASS+++++++=+'MODEL+OUTPUT',
+$END
+$BACKGROUND_RECORD
++++++D_EXPNUM+++++++++++++=+'0001',
++++++D_MODNUM+++++++++++++=+'++AA',
++++++D_TITLE++++++++++++++=+'test+data+written+by+ferret',
++++++D_TIME_UNIT++++++++++=+31557600.0,
++++++D_TIME_MODULO++++++++=+.FALSE.,
++++++D_ADD_PARM+++++++++++=+15*'+',
+$END
+$MESSAGE_RECORD
++++++D_MESSAGE++++++++++++=+'+',
++++++D_ALERT_ON_OPEN++++++=+F,
++++++D_ALERT_ON_OUTPUT++++=+F,
+$END
*************************************************
+$EXTRA_RECORD
+$END
+$STEPFILE_RECORD
++++++s_filename+++++++++++=+'decade.nc',
++++++S_AUX_SET_NUM++++++++=+0,
++++++S_START++++++++++++++=+1900,
++++++S_END++++++++++++++++=+1909,
++++++S_DELTA++++++++++++++=+1.0,
++++++S_NUM_OF_FILES+++++++=+1,
++++++S_REGVARFLAG+++++++++=+'+',
+$END
**************************************************
+$EXTRA_RECORD
+$END
+$STEPFILE_RECORD
++++++S_FILENAME+++++++++++=+'century.nc',
++++++S_AUX_SET_NUM++++++++=+0,
++++++S_START++++++++++++++=+1910,
++++++S_END++++++++++++++++=+2009,
++++++S_DELTA++++++++++++++=+1.0,
++++++S_NUM_OF_FILES+++++++=+1,
++++++S_REGVARFLAG+++++++++=+'+',
+$END
**************************************************
+$STEPFILE_RECORD
++++++s_filename+++++++++++=+'**END+OF+STEPFILES**'
+$END
**************************************************

|--****--****-*---*---***--***--|____spillane@pmel.noaa.gov____|
|-*__---*-----*--*-*--*--*-*--*-|_SCIENCE APPLICATIONS SUPPORT_|
|--***--*-----*-*---*-***--***--|____EPIC/Ferret/PlotPlus______|
|-----*-*-----*-*****-*----*----|__Room 2070 Bldg#3 NOAA/PMEL__|
|-****---****-*-*---*-*----*----|____Phone_:_(206)526-6780_____|

-- 
________________________________________

Xin Jin
Inst.of Geophysics and Planetary Physics
University of California Los Angeles
5845 Slichter Hall
Los Angeles, CA 90095-4996, USA
phone: (310) 825 4526
fax  : (310) 206 3051
email: xjin@igpp.ucla.edu
 

--
Kevin O'Brien                   UW/JISAO
206-526-6751                    NOAA/PMEL/TMAP
206-526-6744 (fax)              http://tmap.pmel.noaa.gov
 


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement