|
52 | 52 |
|
53 | 53 | for file in ./mss/*.nc; do mv "$file" "${file/.nc/.EUR_LL015.nc}"; done |
54 | 54 | mv ./mss/*.nc ~/mss/testdata |
55 | | - |
56 | | - |
57 | | -ECMWF forecast |
58 | | -============== |
59 | | - |
60 | | - |
61 | | -ECTrans Setup |
62 | | -------------- |
63 | | - |
64 | | -1. Login at https://ecaccess.ecmwf.int/ecmwf/ \ |
65 | | - Go to https://ecaccess.ecmwf.int/ecmwf/gateway/ECtrans/Setup |
66 | | -2. Click "Add association" at the bottom of the page \ |
67 | | - Call the association "MSS-Data-Transfer" and set up your SFTP/FTP Server to your liking \ |
68 | | - If you want to call it something else, make sure to change `ectrans_id` inside the `settings.config` |
69 | | - |
70 | | - |
71 | | -Scripts Setup |
72 | | -------------- |
73 | | - |
74 | | -1. Clone this repository and move into it |
75 | | - |
76 | | - git clone https://github.com/Open-MSS/data-retrieval.git |
77 | | - cd data-retrieval |
78 | | - |
79 | | -2. Install all requirements |
80 | | - |
81 | | - pip3 install --user -r requirements.txt |
82 | | - |
83 | | -3. Copy the settings.example to settings.config and adjust the configuration |
84 | | - to your liking; here, you may also overwrite the values set already in |
85 | | - settings.default. |
86 | | - |
87 | | - |
88 | | -Usage |
89 | | ------ |
90 | | -After completing both setups, you can use this script as follows: |
91 | | - |
92 | | -* The default settings are located in settings.default. It is set to the forecast |
93 | | - for 36h from today 0:00 UTC for a certain domain and resolution. You may add (or edit) |
94 | | - a file named settings.config with specific environment variable settings |
95 | | - (e.g. like export DAY=22 ; export MONTH=12; export YEAR=2021; export GRID=0.5/0.5) |
96 | | - and run the script locally by ./bin/get\_ecmwf.sh or as a batch job by |
97 | | - sbatch ./bin/get\_ecmwf.sh |
98 | | -* If it is run as a batch job using the MSJ trigger system, init and forecast times |
99 | | - that are then automatically stored in the environment variables MSJ* will be used instead |
100 | | - With the trigger, the job ist started when a specific forecast is available, |
101 | | - e.g. fc00h036 for the 36h forecast. It can be started either form the ecaccess website |
102 | | - or by typing |
103 | | - ecaccess-job-submit -ni fc00h036 bin/get_ecmwf.sh (automatic daily job renewal) |
104 | | - or |
105 | | - ecaccess-job-submit -ni fc00h036 -noRenew bin/get_ecmwf.sh (job runs once) |
106 | | - |
0 commit comments