-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
include netcdf files of sample output in the repository
- Loading branch information
Showing
8 changed files
with
28 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,3 @@ __pycache__/ | |
#pytest | ||
.cache | ||
.pytest_cache | ||
|
||
# Data files | ||
*.nc | ||
*.nc4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,32 @@ | ||
#!/bin/env bash | ||
# Script to make the observation data ERA-20C CF-compliant | ||
# ERA-20C: | ||
# https://climatedataguide.ucar.edu/climate-data/era-20c-ecmwfs-atmospheric-reanalysis-20th-century-and-comparisons-noaas-20cr | ||
# CF convention: | ||
# http://cfconventions.org/Data/cf-standard-names/current/build/cf-standard-name-table.html | ||
# and search in the Standard Names "air_pressure_at_mean_sea_level" | ||
# | ||
# Yanchun He, 22nd May, 2023 | ||
|
||
ESGF=/scratch/yanchun/ESGF/ | ||
cp /projects/NS9588K/ERA20c/psl_mon_1900_2010.nc $ESGF/rawdata/obs | ||
# copy rawobs | ||
mkdir -p ../Data/rawobs/ && cd ../Data/rawobs/ | ||
wget http://ns9560k.web.sigma2.no/diagnostics/esmvaltool/yanchun/Data/rawobs/psl_mon_1900_2010.nc | ||
cp psl_mon_1900_2010.nc ../Data/ESGF/obsdata/Tier3/ERA-20C/ | ||
cd ../Data/ESGF/obsdata/Tier3/ERA-20C/ | ||
|
||
# rename file | ||
mv psl_mon_1900_2010.nc OBS6_ERA-20C_reanaly_1_Amon_psl_190001-201012.nc | ||
|
||
# rename variable | ||
ncrename -v sp,psl OBS6_ERA-20C_reanaly_1_Amon_psl_190001-201012.nc | ||
|
||
# rename dimensions | ||
ncrename -d latitude,lat -d longitude,lon OBS6_ERA-20C_reanaly_1_Amon_psl_190001-201012.nc | ||
ncrename -v latitude,lat -v longitude,lon OBS6_ERA-20C_reanaly_1_Amon_psl_190001-201012.nc | ||
|
||
# rename standard_name | ||
ncatted -a standard_name,psl,m,c,air_pressure_at_mean_sea_level OBS6_ERA-20C_reanaly_1_Amon_psl_190001-201012.nc | ||
ncatted -a long_name,psl,m,c,Sea Level Pressure OBS6_ERA-20C_reanaly_1_Amon_psl_190001-201012.nc | ||
|
||
# rename long_name | ||
ncatted -a long_name,psl,m,c,"Sea Level Pressure" OBS6_ERA-20C_reanaly_1_Amon_psl_190001-201012.nc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+223 KB
...112437/work/map/script1/cbf_CMIP6_NorESM2-LM_Amon_historical_r1i1p1f1_psl_gn_1950-2010.nc
Binary file not shown.
Binary file added
BIN
+223 KB
...112437/work/map/script1/cbf_CMIP6_NorESM2-LM_Amon_historical_r2i1p1f1_psl_gn_1950-2010.nc
Binary file not shown.
Binary file added
BIN
+223 KB
...112437/work/map/script1/cbf_CMIP6_NorESM2-LM_Amon_historical_r3i1p1f1_psl_gn_1950-2010.nc
Binary file not shown.
Binary file added
BIN
+223 KB
...112437/work/map/script1/cbf_CMIP6_NorESM2-MM_Amon_historical_r1i1p1f1_psl_gn_1950-2010.nc
Binary file not shown.
Binary file added
BIN
+223 KB
...ipe_cbf_20230524_112437/work/map/script1/eof_OBS6_ERA-20C_reanaly_1_Amon_psl_1950-2010.nc
Binary file not shown.