# Linear trend: gmt regress vs trend1d -Np1

**URL:** <https://forum.generic-mapping-tools.org/t/linear-trend-gmt-regress-vs-trend1d-np1/5759>\
**Category:** Q&A\
**Tags:** regress, trend1d\
**Created:** [March 2, 2025, 2:23pm UTC](https://forum.generic-mapping-tools.org/t/linear-trend-gmt-regress-vs-trend1d-np1/5759 "2025-03-02T14:23:21Z")\
**Posts on this page:** 2\
**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:** [March 2, 2025, 2:23pm UTC](https://forum.generic-mapping-tools.org/t/linear-trend-gmt-regress-vs-trend1d-np1/5759/1 "2025-03-02T14:23:21Z")

</div>

I would like to know if the linear trend calculated with `gmt regress` and `gmt trend1d -Np1` are the same? ? In the practice, I see that but I am not complety sure.

---

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [March 3, 2025, 12:30am UTC](https://forum.generic-mapping-tools.org/t/linear-trend-gmt-regress-vs-trend1d-np1/5759/2 "2025-03-03T00:30:00Z")

</div>

I guess that, if docs do not mention this, one needs to read to code to check that it’s calling the same functions.
