# Cmems mercator 1

**URL:** <https://forum.croco-ocean.org/t/cmems-mercator-1/448>\
**Category:** croco tools (pre/post-processing)\
**Tags:** CROCO-tools, matlab, python\
**Created:** [May 2, 2023, 5:02am UTC](https://forum.croco-ocean.org/t/cmems-mercator-1/448 "2023-05-02T05:02:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![malateibi](https://forum.croco-ocean.org/user_avatar/forum.croco-ocean.org/malateibi/32/316_2.png) [@malateibi](https://forum.croco-ocean.org/u/malateibi)\
**Post date:** [May 2, 2023, 5:02am UTC](https://forum.croco-ocean.org/t/cmems-mercator-1/448/1 "2023-05-02T05:02:41Z")

</div>

Hello CMEMS has changed their Global Physical Analysis and Forecasting System as you can see in this page

> **[Migrating to the new Global Physical Analysis and Forecasting System |...](https://help.marine.copernicus.eu/en/articles/7045314-migrating-to-the-new-global-physical-analysis-and-forecasting-system)**
>
> We will discover the main technical changes of the new version (known as GLO12) of the product GLOBAL\_ANALYSISFORECAST\_PHY\_001\_024.

therefore, For Mercator 1/12 forecast  
the service id GLOBAL\_ANALYSIS\_FORECAST\_PHY\_001\_024-TDS is not exists anymore and it has been Atomized to four different files, how we can edit that and let the download\_mercator\_frcst download the four files and combine them to have access for zos, uo, vo, thetao and so. we used to have one files but now we need 4 files.

---

<div class="post-metadata">

**Author:** ![EfrainRR](https://forum.croco-ocean.org/letter_avatar_proxy/v4/letter/e/3e96dc/32.png) [@EfrainRR](https://forum.croco-ocean.org/u/EfrainRR)\
**Post date:** [May 8, 2023, 1:07pm UTC](https://forum.croco-ocean.org/t/cmems-mercator-1/448/2 "2023-05-08T13:07:45Z")

</div>

Hello Malateibi, this is my “fast and furious” solution for the CMEMS change. This solution modifies the original code of crocotools and uses NCO to append the netcdf files. Of course, many possible solutions exist, but this is my solution.

My solution files of Forecast\_tools:

[download\_mercator\_frcst\_python.m](https://forum.croco-ocean.org/uploads/default/original/1X/6a9589f66bc0f6eabfde318adfb3de974023a25e.m)  
[write\_mercator\_frcst.m](https://forum.croco-ocean.org/uploads/default/original/1X/cb05c40de939c2d27c9b25ee09feef7b660bb776.m)  
[crocotools\_param.m](https://forum.croco-ocean.org/uploads/default/original/1X/36d64c25dc2a2d4e079db459ec9a35d58421b472.m)

Sincerely yours

Efraìn

---

<div class="post-metadata">

**Author:** ![malateibi](https://forum.croco-ocean.org/user_avatar/forum.croco-ocean.org/malateibi/32/316_2.png) [@malateibi](https://forum.croco-ocean.org/u/malateibi)\
**Post date:** [May 9, 2023, 4:23am UTC](https://forum.croco-ocean.org/t/cmems-mercator-1/448/3 "2023-05-09T04:23:31Z")

</div>

Thank you EfrainRR,  
Actually I did the same thing, download all the four files and merge them using `ncks -A --no-abc` and changed product\_id to product\_ids

```
% motu_url='http://nrt.cmems-du.eu/motu-web/Motu';
% service_id='GLOBAL_ANALYSISFORECAST_PHY_001_024-TDS';
% product_ids = {'cmems_mod_glo_phy_anfc_0.083deg_P1D-m', 'cmems_mod_glo_phy-so_anfc_0.083deg_P1D-m', 'cmems_mod_glo_phy-thetao_anfc_0.083deg_P1D-m', 'cmems_mod_glo_phy-cur_anfc_0.083deg_P1D-m'};

```

i will try to publish the code or even make a pull request

---

<div class="post-metadata">

**Author:** ![pmarchesiello](https://forum.croco-ocean.org/user_avatar/forum.croco-ocean.org/pmarchesiello/32/378_2.png) [@pmarchesiello](https://forum.croco-ocean.org/u/pmarchesiello)\
**Post date:** [May 12, 2023, 4:24pm UTC](https://forum.croco-ocean.org/t/cmems-mercator-1/448/4 "2023-05-12T16:24:45Z")

</div>

Thanks guys for this report and the corrections. I used Efrain’s routines and modified them to avoid the need for NCO (see attached files). This will be available on the distributed code soon… Patrick

[download\_mercator\_frcst\_python.m](https://forum.croco-ocean.org/uploads/default/original/1X/ddc7cc3488d1c24b47832ed411b970473822504f.m)

[write\_mercator\_frcst.m](https://forum.croco-ocean.org/uploads/default/original/1X/d22767eb9f8a8c285b4ddf6c7dae4a392040ced8.m)

[crocotools\_param.m](https://forum.croco-ocean.org/uploads/default/original/1X/88662d153a026221c510ee0b5ca0b4e2ad99a409.m)

---

<div class="post-metadata">

**Author:** ![EfrainRR](https://forum.croco-ocean.org/letter_avatar_proxy/v4/letter/e/3e96dc/32.png) [@EfrainRR](https://forum.croco-ocean.org/u/EfrainRR)\
**Post date:** [May 19, 2023, 3:07pm UTC](https://forum.croco-ocean.org/t/cmems-mercator-1/448/5 "2023-05-19T15:07:02Z")

</div>

Thanks Patrick , 🙂
