Ask Your Question

cmems mercator

asked 2023-05-02 07:02:41 +0200

Hello CMEMS has changed their Global Physical Analysis and Forecasting System as you can see in this page 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.

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted

answered 2023-05-08 15:07:45 +0200

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:

C:\fakepath\download_mercator_frcst_python.m C:\fakepath\write_mercator_frcst.m C:\fakepath\crocotools_param.m

Sincerely yours


edit flag offensive delete link more

answered 2023-05-12 18:24:45 +0200

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




edit flag offensive delete link more


Thanks Patrick , :)

EfrainRR gravatar imageEfrainRR ( 2023-05-19 17:07:02 +0200 )edit

answered 2023-05-09 06:23:31 +0200

updated 2023-05-09 06:24:16 +0200

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='';
% 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

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2023-05-02 07:02:41 +0200

Seen: 80 times

Last updated: May 12