-
Notifications
You must be signed in to change notification settings - Fork 129
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
CMORiser for the IAPv4.2 global ocean temperature dataset #3887
base: main
Are you sure you want to change the base?
Conversation
865d3fe
to
f69970b
Compare
33fc979
to
0423369
Compare
Units should be in Kelvin right? I think that's what I did. |
I know |
Hi @flicj191 , I have removed the unit conversion. I wonder if the cmorisation requires the units to be converted to kelvin or if degC is OK. Are the NOAA convert product in degC or K? |
It's degC in the cmor table for |
latitude_coord = cube.coord("latitude") | ||
longitude_coord = cube.coord("longitude") | ||
depth_coord = cube.coord("standard depth") | ||
depth_coord.rename("depth") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
depth_coord.rename("depth") | |
depth_coord.rename("depth") | |
depth_coord.var_name = "lev" | |
depth_coord.attributes['positive'] = "down" |
I was getting CMOR errors with the depth coordinate var_name, and couldn't load, have added corrections here
with catch_warnings(): | ||
warnings.simplefilter("ignore") # Ignore all warnings | ||
cubes = iris.load(in_files, rawvar) | ||
reference_year = raw_info["reference_year"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reference_year
isn't used
return file_list | ||
|
||
|
||
def process_data(cube, reference_year): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reference_year
isn't used
|
||
|
||
def process_data(cube, reference_year): | ||
""" Process raw data. Convert to Kelvin and add time dimension. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
""" Process raw data. Convert to Kelvin and add time dimension. | |
""" Process raw data. Add time dimension. |
not converting to Kelvin
""" Process raw data. Convert to Kelvin and add time dimension. | ||
Concatenate the cubes and return the new cube. | ||
""" | ||
# Convert temperature from Celsius to Kelvin and add time dimension |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Convert temperature from Celsius to Kelvin and add time dimension | |
# Add time dimension |
not converting to Kelvin
Description
This dataset provides gridded ocean temperature data at 1°×1° horizontal resolution, covering 0–6000m depth (119 levels), with monthly data from 1940 to the present. The data incorporates bias corrections, quality control, and mapping improvements (Cheng et al. 2024), making it suitable for climate variability and change studies over various scales and timescales.
Before you get started
Checklist
It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.
New or updated data reformatting script
To help with the number of pull requests: