# Issue with rms values for greenspline -Cn20+c+i

**URL:** <https://forum.generic-mapping-tools.org/t/issue-with-rms-values-for-greenspline-cn20-c-i/4475>\
**Category:** Q&A\
**Created:** [November 29, 2023, 3:24pm UTC](https://forum.generic-mapping-tools.org/t/issue-with-rms-values-for-greenspline-cn20-c-i/4475 "2023-11-29T15:24:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Esteban82](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/esteban82/32/54_2.png) [@Esteban82](https://forum.generic-mapping-tools.org/u/Esteban82)\
**Post date:** [November 29, 2023, 3:24pm UTC](https://forum.generic-mapping-tools.org/t/issue-with-rms-values-for-greenspline-cn20-c-i/4475/1 "2023-11-29T15:24:15Z")

</div>

I remade the [animation 5](https://docs.generic-mapping-tools.org/dev/animations/anim05.html) but with this command

```
gmt greenspline geo.txt -Sc -Cn20+c+i -Ggeo.grd -Z2 -Emisfit.txt

```

This is the `misfit.txt` file. I notice that all the records have the same rms value (752.198173843). In the [animation](https://www.youtube.com/watch?v=7NQa4TORA3E&t=17s) I see that the values are changing. Is this a bug?

```
# Command : gmt greenspline geo.txt -Sc -Cn20 -Ggeo.grd -Z2 -Emisfit.txt -R-158/-156.9666666666667/18/19.66666666666667+I0.01666666666666667/0.01666666666666667
# eigenno	eigenval	var_percent	rms
0	59177476.7	65.8905533939	752.198173843
1	37281370.3447	92.0418967819	752.198173843
2	19324372.0562	99.0681055505	752.198173843
3	6863523.97604	99.9544541832	752.198173843
4	1200156.86214	99.9815552443	752.198173843
5	641289.879832	99.9892930717	752.198173843
6	527868.265693	99.9945358486	752.198173843
7	390481.243194	99.997404717	752.198173843
8	214083.14701	99.9982670504	752.198173843
9	171116.511092	99.9988179775	752.198173843
10	142872.632768	99.9992020457	752.198173843
11	109407.162496	99.999427263	752.198173843
12	95358.8475819	99.999598356	752.198173843
13	69689.8562616	99.9996897357	752.198173843
14	58339.4126887	99.9997537732	752.198173843
15	54178.2469319	99.9998090013	752.198173843
16	45554.7853581	99.9998480474	752.198173843
17	36758.0204825	99.9998734697	752.198173843
18	34217.5598564	99.9998954994	752.198173843
19	31929.9545072	99.999914682	752.198173843
```

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [November 29, 2023, 4:32pm UTC](https://forum.generic-mapping-tools.org/t/issue-with-rms-values-for-greenspline-cn20-c-i/4475/2 "2023-11-29T16:32:16Z")

</div>

Looking at it now.

---

<div class="post-metadata">

**Author:** ![Esteban82](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/esteban82/32/54_2.png) [@Esteban82](https://forum.generic-mapping-tools.org/u/Esteban82)\
**Post date:** [November 29, 2023, 5:32pm UTC](https://forum.generic-mapping-tools.org/t/issue-with-rms-values-for-greenspline-cn20-c-i/4475/3 "2023-11-29T17:32:04Z")

</div>

For the record, fixed by [https://github.com/GenericMappingTools/gmt/pull/8109](https://github.com/GenericMappingTools/gmt/pull/8109).

---

<div class="post-metadata">

**Author:** ![Esteban82](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/esteban82/32/54_2.png) [@Esteban82](https://forum.generic-mapping-tools.org/u/Esteban82)\
**Post date:** [November 29, 2023, 5:48pm UTC](https://forum.generic-mapping-tools.org/t/issue-with-rms-values-for-greenspline-cn20-c-i/4475/4 "2023-11-29T17:48:07Z")

</div>

BTW, @pwessel is it possible to select the range of grids that will be created?

I am thinking on something like this to only see from the 100th grid to the end.

```auto
gmt greenspline geo.txt -Sc -Cn100/"max"+c+i -Ggeo.grd -Z2 -Emisfit.txt

```
