[Thread Prev][Thread Next][Index]
Re: [ferret_users] problem in reading .mc files.
- To: Ansley Manke <Ansley.B.Manke@xxxxxxxx>
- Subject: Re: [ferret_users] problem in reading .mc files.
- From: yangxing zheng <yangxingz@xxxxxxxxx>
- Date: Wed, 14 Nov 2007 16:44:37 -0800 (PST)
- Cc: oar.pmel.ferret_users@xxxxxxxx
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=5LVlDe1Yu1BMDkVOn7IKvWtMFWurRp/3HuMYh4l3VGQ7ofwxMSzKGRGwZrE21fj4PFB78HYyJo6n8nheLgHvi98uKYqSsSkezTXoETOW5IBdtheaR2MSX28cGi/Hg6J8dN4ysPVVfFunlMunuAcDf/9N2R1ndgxsRR8el5+jDsw=;
- In-reply-to: <473B35F4.1030504@xxxxxxxx>
- Sender: owner-ferret_users@xxxxxxxx
Hi,
Thank you for kind help. Ansley, I try your way,
using
repeat/l=1:22 shade temp
it stops at l=21. It can not plot temp, however, if I
plot u first,
yes?shade u
then I plot temp at l=21 again,
yes?shade temp
it works! It is really surpring to me about ferret
working.
P.S.: I using the individual cdf file (l=21), it has
no problem to plot temp
The following is what I try:
yes? set region/k=1/x=110w:100w/x=10s:0
yes? repeat/l=1:22 shade temp
.........
!-> REPEAT: L=15
!-> REPEAT: L=16
!-> REPEAT: L=17
!-> REPEAT: L=18
!-> REPEAT: L=19
!-> REPEAT: L=20
!-> REPEAT: L=21
** netCDF error: Variable not found
shade temp
Command file, command group, or REPEAT execution
aborted
yes? set region/l=21
yes? shade temp
** netCDF error: Variable not found
yes? shade u
yes? shade temp
......
------------------
Do you think it is a bug for ferret v5.70 Mac OS?
--- Ansley Manke <Ansley.B.Manke@xxxxxxxx> wrote:
> Hi Yangxing,
> Accessing data in Ferret occurs in several stages.
> The command
>
> yes? set data test.mc
>
> reads the .mc file to see what's in there, and it
> uses that information
> to create the time axis. Then the first file is
> opened, and information
> about the other axes and the variables is stored
> from what's in that
> file. This is all that has happened at the point
> where you do a SHOW
> DATA command. The other stepfiles are opened and
> read only when data
> from them is required by the other commands - plot,
> shade, load, or
> other commands that produce an output.
>
> I wonder if one of the step files is missing the
> variable TEMP. Since
> you're seeing the error in the first 100 time steps,
> you could try:
>
> yes? cancel region
> yes? repeat/L=1:100
> (shade/x=110w:80w/y=10s:10n/k=1 temp)
>
> And see if you hit an error message.
>
>
> yangxing zheng wrote:
> > Thank all of you for prompt response. Now I
> include
> > the .mc file to diagnose what the problem is.
> > --- Roman Tonkonojenkov <romantonk@xxxxxxx> wrote:
> >
> >
> >> Hi Yangxing,
> >>
> >> Maybe a stupid remark, but I had similar problems
> in
> >> the past and
> >> at least in one instance I was using the wrong
> case
> >> (i.e. the variable was
> >> TEMP instead of temp). I don't think it is the
> issue
> >> with you,
> >> but at least try it
> >> Cheers,
> >> Roman
> >>
> >> On Tue, Nov 13, 2007 06:39 PM, yangxing zheng
> >> <yangxingz@xxxxxxxxx> wrote:
> >>
> >> I have a problem about reading mc file from
> ferret.
> >>
> >>> The following is an example. The files are
> there.
> >>>
> >> We
> >>
> >>> show data/variables, the variable temp exists.
> If I
> >>> make a plot by seting an individual l (set
> >>> region/l=11), it works. But if I want to plot
> time
> >>> series of temp, it says: ** netCDF error:
> Variable
> >>>
> >> not
> >>
> >>> found.
> >>> But variable temp is obvious there. Also if I
> >>>
> >> plot
> >>
> >>> a time series of u and v (the grid is identical
> to
> >>> temp), it does work! Do you think what the major
> >>> problem is? I attached the .mc file to you as a
> >>> reference.
> >>>
> >>> [mac35:yzheng/HYCOM/Pacific] yzheng%
> ferret
> >>> NOAA/PMEL TMAP
> >>> FERRET v5.70 (alpha)
> >>> Mac OS X 10.3.4 - 10/08/04
> >>> 13-Nov-07 16:08
> >>>
> >>> yes? set data test.mc
> >>> yes? show data/variables
> >>> currently SET data sets:
> >>> 1> ./test.mc (default)
> >>> HYCOM-NCODA Assimilation Run NOGAPS
> >>> name title I
>
> >>>
> >>
> >>
> >>> J K L
> >>> U Zonal Velocity 1:1376
>
> >>>
> >>> 1:937 1:19 1:425
> >>> cm/s on grid GFP1 with -9999 for
> >>>
> >> missing
> >>
> >>> data
> >>> X=180E:70W Y=35.1S:35.1N Z=-5:1050
>
> >>> V Meridional Velocity 1:1376
>
> >>>
> >>> 1:937 1:19 1:425
> >>> cm/s on grid GFP1 with -9999 for
> >>>
> >> missing
> >>
> >>> data
> >>> X=180E:70W Y=35.1S:35.1N Z=-5:1050
>
> >>> TEMP Temperature 1:1376
>
> >>>
> >>> 1:937 1:19 1:425
> >>> DegC on grid GFP1 with -9999 for
> >>>
> >> missing
> >>
> >>> data
> >>> X=180E:70W Y=35.1S:35.1N Z=-5:1050
>
> >>>
> >>> time range: 03-NOV-2003 00:00 to 31-DEC-2004
> >>>
> >> 00:00
> >>
> >>> yes? set region/l=12
> >>> yes? yes? set region/x=110w:80w/y=10s:10n/k=1
> >>> yes? yes? fill temp
> >>> yes? set region/l=1:100/i=100/j=700/k=1
> >>> yes? yes? plot temp
> >>> ** netCDF error: Variable not found
> >>> yes? plot u
> >>> yes? plot v
> >>>
> >>> ----------------------------
> >>>
> >>>
> >>>
> >>>
> >>
>
____________________________________________________________________________________
> >>
> >>> Be a better sports nut! Let your teams follow
> you
> >>> with Yahoo Mobile. Try it now.
> >>>
> >
>
http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ
> >
> >>>
> >>>
> >>
> >
> >
> >
>
____________________________________________________________________________________
> > Never miss a thing. Make Yahoo your home page.
> > http://www.yahoo.com/r/hs
>
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Privacy Policy | Disclaimer | Accessibility Statement