Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change woa13 to woa23 #1

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Conversation

ezhilsabareesh8
Copy link
Collaborator

This PR updated all references to WOA2013 to WOA2023 in scripts and documentation.

  • Updated README to reflect WOA2023 references.
  • Modified relevant scripts to use WOA2023 dataset.
  • Initial_conditions_WOA submodule is replaced to use WOA23 dataset.

Copy link

@anton-seaice anton-seaice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whats the license for this ? Its inhered, so @aekiss - does COSIMA have a preferred license ?

I put some comments on - I haven't run this yet

initial_conditions_WOA23/01/make_ic Outdated Show resolved Hide resolved
initial_conditions_WOA23/025/make_ic Outdated Show resolved Hide resolved
initial_conditions_WOA23/10/make_ic Outdated Show resolved Hide resolved
initial_conditions_WOA23/make_inital_conditions.sh Outdated Show resolved Hide resolved
initial_conditions_WOA23/10/md5sum.txt Outdated Show resolved Hide resolved
setup_WOA_initial_conditions.py Outdated Show resolved Hide resolved
setup_WOA_initial_conditions.py Show resolved Hide resolved
@anton-seaice
Copy link

This PR contributes to COSIMA/access-om3#161

inte.csh Outdated Show resolved Hide resolved
inte.csh Show resolved Hide resolved
inte.csh Show resolved Hide resolved
inte.csh Show resolved Hide resolved
copy_to_input_rc.sh Show resolved Hide resolved
finalise.sh Outdated Show resolved Hide resolved
initial_conditions_WOA23/make_ic Outdated Show resolved Hide resolved
Copy link

@anton-seaice anton-seaice Dec 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The general advice is that "months since ..." should be avoided as a time unit. See https://cfconventions.org/Data/cf-conventions/cf-conventions-1.7/build/ch04s04.html

xarray gives me this error, when opening '/g/data/ik11/inputs/access-om3/woa23/monthly/woa23_decav_ts_01_04.nc' :

ValueError: Failed to decode variable 'time': unable to decode time units 'months since 0001-01-01 00:00:00' with 'the default calendar'. Try opening your dataset with decode_times=False or installing cftime if it is not installed.

There is more detailed advice here https://cfconventions.org/Data/cf-conventions/cf-conventions-1.7/build/ch07s04.html but as long as the file opens with xarray I think thats sufficient.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This script times out for me before finishing

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works well for me, sometimes it is killed because of overuse of login node. In that case we may have to submit it as a job.

# to create initial condition files. It combines applies masks
# to filter invalid data, calculates pressure, absolute salinity,
# and conservative temperature.

# import modules
from glob import glob
import os,sys

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import os,sys
import sys

@@ -93,8 +94,7 @@
t_conservative = gsw.CT_from_t(s_absolute,t_in_situ,pressure_tile)

# save to netcdf
#save_file = data_dir + 'woa13_decav_ts_jan_04v2.nc'
save_file = dst_data_dir + 'woa13_decav_ts_'+mon[mm]+'_04v2.nc'
save_file = dst_data_dir + 'woa23_decav_ts_'+mon[mm]+'_04.nc'
print(save_file)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like these 12 'woa23_decav_ts_'+mon[mm]+'_04.nc' files get modified in place to add the time variable and the conservative_temperature, so we need to add metadata for this operation. e.g. what was done, how is practical salinity defined, what code was used, etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants