[SOLVED] function migrate()

If you have problems using RGeostats package or if you simply need some help on an unlisted subject.

[SOLVED] function migrate()

Postby pierrepetitgas » Thu Jun 26, 2014 2:42 pm

Bonjour à tous!
I would like to migrate values z1 which are on a coarse grid gd1 on a finer grid gd2. So I do:
migrate(db1=gd1, db2=gd2, name = db.getname(gd1,"z",1), modify.target = T, flag.fill=0)
But gd2 contains many NA, as if the function did not value every grid point.
migrate() does not work if flag.fill=1 or=2.
In the help 2 cases are mentionned : from point to grid and from point to point dbs.
Is it not appropriate to use migrate() from grid to grid?
are my grid bds to big? gd1: 127 x 180, gd2: 1667 x 2401
Thanks. Pierre :geek:
pierrepetitgas
 
Posts: 4
Joined: Sat Dec 22, 2012 11:51 am

Re: function migrate()

Postby Didier Renard » Mon Oct 20, 2014 10:42 pm

Hello Pierre

The migrate method has been extended to the migration from a Grid into a Grid, with two options:
- loop on the input grid Db: each node of the input is migrated. Some of the nodes of the output grid Db may been left empty
- loop on the output grid Db: all nodes of the output grid are filled (with the closest node of the input grid Db).

This new method will be available i version 10.0.5
Didier Renard
 
Posts: 249
Joined: Thu Sep 20, 2012 4:22 pm


Return to Other Troubleshooting

Who is online

Users browsing this forum: No registered users and 1 guest