Dear Satyesh,On Wed, Oct 21, 2020 at 2:39 PM Satyesh Ghetiya <satyeshghetiya@xxxxxxxxx> wrote:I have two variables having same temporal range, but different spatial range. Let say name of the variable having larger region is big and name of the variable having smaller region (subset region of big) is small.e.g., big has spatial range 40:150 E, -30:30 Nand small has spatial range 50:100 E, 0:10 N (subset region of big)I want to replace values of big with that of small in the region 50:100 E, 0:10 N. In short, I want to replace the values of big so that it has values of small in subregion rectangle.That can be accomplished in two steps:1) Extend the domain of "small" to that of "big"→ The extended "small" will be undefined outside the original small domain.2) Merge, using "small" where it's defined or "big" otherwise.I'm attaching a self-contained example, which you can run on your fer--G Satyesh
- References:
- [ferret_users] Replacing values of rectangular region in Variable
- From: Satyesh Ghetiya
- Re: [ferret_users] Replacing values of rectangular region in Variable
- From: Ryo Furue
- Previous by thread: Re: [ferret_users] Replacing values of rectangular region in Variable
- Next by thread: [ferret_users] WIRE PLOT (axis labeling)
[Thread Prev][Thread Next][Index]