# Bug croco\_pytools 2.0.0 and 2.0.1 tide and TIDE\_MAS

**URL:** <https://forum.croco-ocean.org/t/bug-croco-pytools-2-0-0-and-2-0-1-tide-and-tide-mas/7538>\
**Category:** croco tools (pre/post-processing)\
**Tags:** tide, croco\_pytools\
**Created:** [January 13, 2026, 12:39pm UTC](https://forum.croco-ocean.org/t/bug-croco-pytools-2-0-0-and-2-0-1-tide-and-tide-mas/7538 "2026-01-13T12:39:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![slegac](https://forum.croco-ocean.org/user_avatar/forum.croco-ocean.org/slegac/32/267_2.png) [@slegac](https://forum.croco-ocean.org/u/slegac)\
**Post date:** [January 13, 2026, 12:39pm UTC](https://forum.croco-ocean.org/t/bug-croco-pytools-2-0-0-and-2-0-1-tide-and-tide-mas/7538/1 "2026-01-13T12:39:47Z")

</div>

A bug has been discovered in make\_tides for the versions 2.0.0 and 2.0.1 : the  
phase correction on date is applied even when disabled.

This currently causes incorrect phases when using the TIDES\_MAS option in  
CROCO: even if SSH correction is disabled, a phase correction is still  
applied and then recomputed in Fortran, leading to wrong results.

A correction will be provided in the next release.

---

<div class="post-metadata">

**Author:** ![hook-hulk](https://forum.croco-ocean.org/user_avatar/forum.croco-ocean.org/hook-hulk/32/783_2.png) [@hook-hulk](https://forum.croco-ocean.org/u/hook-hulk)\
**Post date:** [January 13, 2026, 5:09pm UTC](https://forum.croco-ocean.org/t/bug-croco-pytools-2-0-0-and-2-0-1-tide-and-tide-mas/7538/2 "2026-01-13T17:09:51Z")

</div>

hi,  
[crocotides.py](https://forum.croco-ocean.org/uploads/short-url/hhrpAgeLewtAaSVgZo3ILJJ9jkC.py) (12.5 KB)

Thank you for your kind reporting . can you please check the file i attached. i fixed it correctly or not? I am new in forum. can you please help me. i modified Line 51, 134, and 262-272.  
Thank you.

---

<div class="post-metadata">

**Author:** ![slegac](https://forum.croco-ocean.org/user_avatar/forum.croco-ocean.org/slegac/32/267_2.png) [@slegac](https://forum.croco-ocean.org/u/slegac)\
**Post date:** [January 15, 2026, 8:11am UTC](https://forum.croco-ocean.org/t/bug-croco-pytools-2-0-0-and-2-0-1-tide-and-tide-mas/7538/3 "2026-01-15T08:11:50Z")

</div>

Hello,

Thank you for your input.  
I don’t think it is necessary to add a new boolean parameter use\_tides\_mas, since the existing parameters correction\_ssh and correction\_uv are sufficient.

The issue lies in the in the apply\_correction function, which currently does not distinguish between SSH and UV. As a result, correction is applied for both even if to only one of them is asked for.

Furthermore, if no correction are asked for, a phase correction is still there (should be 0).

An issue has been opened on the _croco\_pytools_ GitLab project. I will post an update here once it is fixed and merged into the main branch.

---

<div class="post-metadata">

**Author:** ![hook-hulk](https://forum.croco-ocean.org/user_avatar/forum.croco-ocean.org/hook-hulk/32/783_2.png) [@hook-hulk](https://forum.croco-ocean.org/u/hook-hulk)\
**Post date:** [January 15, 2026, 9:50am UTC](https://forum.croco-ocean.org/t/bug-croco-pytools-2-0-0-and-2-0-1-tide-and-tide-mas/7538/4 "2026-01-15T09:50:29Z")

</div>

ok. thank you.  
[crocotides.py](https://forum.croco-ocean.org/uploads/short-url/9xv3BcNiJpXRyN9iYakzKoDPGf8.py) (12.6 KB)
