[Thread Prev][Thread Next][Index]
Re: [ferret_users] Masking Argo data with qualify flag
- To: Chan Joo Jang <cjjang@xxxxxxxxxxx>
- Subject: Re: [ferret_users] Masking Argo data with qualify flag
- From: Peter Szabo <szabpet83@xxxxxxxxx>
- Date: Tue, 20 May 2008 11:06:23 +0200
- Cc: ferret_users@xxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=/5q0TV7l+0dv+9Ot7R+3mlX00h8lE4I5Jr6L7yeSlW4=; b=nYpOzbjzh1nQPnoCytPJiY8FtFdVrEoXrTR2mNZp1mDBkj7+eIxgaTu6zlULR0V7FAK+nH27ozD+OJj8h3VCeyuTlAQxVos49+SoJOKSSq4cTyoSkDbS1YGqi6eX2/pUoJhn3l0EGzKarG2/72IMv8Nr46cQo0jFPsf5g4HOuSc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=WQdiPqMuKXJV4yvgcbLTZXjh4U6DqtMKbE39mhpr2Q62rLw2HXDuS33KxJWulyDy4d5m8o9rcDW2aP+rIvHO5vGcX+IcYFtG7rI1CNwptLxPC8xNcrHoUhxMly/EVF73Wm8otgptBvbR6BWUPCrTsDVdI5UoavG7aEG8IbijVFM=
- In-reply-to: <48310C17.8050909@xxxxxxxxxxx>
- References: <48310C17.8050909@xxxxxxxxxxx>
- Sender: owner-ferret_users@xxxxxxxx
Hi Chan Joo,
i succeed in solving your problem applying some manuality. here is what i did:
use yourfile.nc
list/file=argo.txt temp_qc
!after this you should do some tricks in this ASCII file:
(1) delete the first some lines, delete the beginning of each line and delete the " symbols
(2) change " " to "0 "(here i have spaces)
(3) then change the numbers that are not your wanted 1,2,5 to "0 ". in this case: the "4" to "0 ".
(4) finally "1" ("2" and "5") to "1 " (and so on...)
i attach how my argo.txt file looks now.
then continue in FERRET:
def ax/x=1:48:1 xax
def ax/y=1:11:1 yax
def grid/x=xax/y=yax xygrid
set data/ez/var="qc"/grid=xygrid/column=48 argo.txt
let qcmiss=if qc gt 0 then qc
fill/lev=(0,35,5) temp[d=1] !here is the original temp field
fill/lev=(0,35,5) temp[d=1]*qcmiss !here is temp with quality flag
I attach these two GIFs also.
There should be a nicer and more automated solution, but hope this helps,
Peter Szabo
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0
1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Attachment:
argoorig.gif
Description: GIF image
Attachment:
argowithqc.gif
Description: GIF image
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Privacy Policy | Disclaimer | Accessibility Statement