[Thread Prev][Thread Next][Index]
[ferret_users] Missing values - interpolation and smoothing
- To: ferret_users@xxxxxxxx
- Subject: [ferret_users] Missing values - interpolation and smoothing
- From: Szymon Roziewski <szymon.roziewski@xxxxxxxxx>
- Date: Mon, 17 Jan 2011 17:52:59 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=RXmL1yK/2WrHU+XI5VFuJmQPvdViepvcQMyb2BYgkhE=; b=iHJ4a3vVVISz+k95m5at6USJQrIIoqE4lCMpRUvkjUZC4HYBfTfo8Row2vYWEZksZ6 opMpyBTFp6UD9gAf17GIptwb6BhBRj0RM9ULL/nJA5LW/wOzCOMhKZ2Bzt5GGdIyWUJG KZdpnN+V3IT0zBEQ4QzDmzieCMHH7qoQKkmI8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=iV5Wc9VNfpw69Ucfz3be2hFKqi2XqdmmqAVoJJ7fFcO/496w7Q7PR4ZMb0tAH7HyG/ SPQcELULaqhaCD2H4AKIqEaCFmqiltmTXIc+gaiE7grXweFeTbDP3kgWRvNKz5gBS3oW 4O4mtyTGvktVeEsGyp8CiHd1W9CIW+08r7rag=
- Sender: owner-ferret_users@xxxxxxxx
Dear Ferreters,
I have such a problem, namely I have data hs as an array (132,145) from hs.cdf file with missing value set as -999.
Then I read those data and try to interpolate (regridding with smoothing). The script follows as:
use hs.cdf
DEFINE AXIS/X=-5.666666667:5.25:0.010416667 xfine
DEFINE AXIS/Y=-2.0:10.0:0.010416667 yfine
DEFINE GRID/x=xfine/y=yfine fine_grid
let/bad=-999 var_hs=hs[i=1:132,j=1:145,k=0,l=1]
let/bad=-999 fine_hs=var_hs[gxy=fine_grid]
LET/bad=-999 ubox_hs=fine_hs[x=@SBX:19,y=@SBX:19]
LET/bad=-999 utaper_hs=ubox_hs[x=@SHN:13,y=@SHN:13]
shade/levels=(0.0)(0.5,1,0.5)(1.0,1.25,0.25)(1.25,2.0,0.75)(2.0,7.0,1.0)(7.0,11,2.0)(15) utaper_hs[g=fine_grid]
frame/file=dd.gif
What I get is completely frustrating me.
I think the missing value doesn't work well. And that's why the interpolation gives such a misleading result on the boundary.
I attach demanded files: hs.cdf and also hs.gif.
I appreciate any help.
Thank You in advance.
Attachment:
hs.cdf
Description: Cdf file
Attachment:
hs.cdf
Description: Cdf file
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement