Skip to content

Commit da8c4bb

Browse files
committed
data preprocess
1 parent 5dbdee1 commit da8c4bb

4 files changed

Lines changed: 42 additions & 6 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ job
1010

1111
tmp
1212

13+
tmp*
14+
1315
trainer
1416

1517
output

README.md

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Data-driven Global Ocean Modeling for Seasonal to Decadal Prediction
32

43
<div align="center">
@@ -8,7 +7,7 @@
87
</div>
98

109
**This repository contains the official implementation of ORCA-DL**
11-
---
10+
---------------------------------------------------------------
1211

1312
<!-- ## 📌 Overview
1413
@@ -22,9 +21,11 @@
2221

2322
### Installation
2423

25-
```
24+
```bash
2625
git clone https://github.com/OpenEarthLab/ORCA-DL.git
2726
cd ORCA-DL
27+
conda create -n orca python=3.9.17
28+
conda activate orca
2829
pip install -r requirements.txt
2930
```
3031

@@ -33,14 +34,29 @@ pip install -r requirements.txt
3334
All the model weights and data can be found in https://1drv.ms/f/c/49d761d10f0b201d/Emi9scIyaWBCrNTgRo6t12oBLnF2qGDRGj0M7-g0ekRM1A
3435

3536
### Quick Demo
37+
3638
See [demo.ipynb](https://github.com/OpenEarthLab/ORCA-DL/blob/main/demo.ipynb)
3739

38-
## 📋 Updates
40+
Please note that ORCA-DL initially uses [GODAS](https://psl.noaa.gov/data/gridded/data.godas.html) data as its starting point. Initialization with other data is also feasible, but it is necessary to ensure that the data is interpolated to the correct longitude and latitude range and resolution, as in [example_data](https://github.com/OpenEarthLab/ORCA-DL/blob/main/example_data). Here is an example of how to interpolate the original data using [CDO](https://code.mpimet.mpg.de/projects/cdo) (recommended):
3941

40-
- Training data and code are coming soon.
42+
```bash
43+
wget https://downloads.psl.noaa.gov/Datasets/godas/sshg.1980.nc -O sshg-1980.nc # download a 2D data from GODAS
44+
cdo -b f64 remapbil,grid sshg-1980.nc sshg-1980-processed.nc
4145

42-
- **2025-03:** Model weights and demo code are released.
46+
wget https://downloads.psl.noaa.gov/Datasets/godas/salt.1980.nc -O salt-1980.nc # download a 3D data from GODAS
47+
cdo -b f64 remapbil,grid salt-1980.nc tmp1.nc
48+
cdo intlevel,10,15,30,50,75,100,125,150,200,250,300,400,500,600,800,1000 tmp1.nc tmp2.nc
49+
cdo setzaxis,zaxis.txt tmp2.nc salt-1980-processed.nc
50+
rm tmp1.nc tmp2.nc
51+
```
52+
53+
After the data interpolation is completed, you can refer to the [demo.ipynb](https://github.com/OpenEarthLab/ORCA-DL/blob/main/demo.ipynb) to run ORCA-DL.
4354

55+
## 📋 Updates
56+
57+
- Training data and code are coming soon.
58+
- **2025-03-21:** Data preprocessing processes are released.
59+
- **2025-03-04:** Model weights and demo code are released.
4460

4561
## 📄 Citation
4662

grid

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
gridtype = lonlat
2+
xsize = 360
3+
ysize = 128
4+
xname = lon
5+
xlongname = "longitude"
6+
xunits = "degrees_north"
7+
yname = lat
8+
ylongname = "latitude"
9+
yunits = "degrees"
10+
xfirst = 0.5
11+
xinc = 1.0
12+
yfirst = -63.5
13+
yinc = 1.0

zaxis.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
zaxistype = height
2+
size = 16
3+
name = level
4+
units = m
5+
levels = 10,15,30,50,75,100,125,150,200,250,300,400,500,600,800,1000

0 commit comments

Comments
 (0)