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

Compute global / hemispheric / regional reductions (e.g. averaging, integrating) #45

Open
dabail10 opened this issue Jan 18, 2024 · 8 comments
Assignees

Comments

@dabail10
Copy link
Collaborator

This is something the CVDP does. It creates global and hemispheric integrated quantities including:

  • globally averaged temperature
  • NH sea ice area
  • SH sea ice area

others?

For the sea ice we need:

  • NH / SH total sea ice extent (area where concentration is >= 15%)
  • NH / SH total sea ice area
  • NH / SH total sea ice volume
  • NH / SH total snow (on sea ice) volume

This uses tarea from the sea ice model (constant gridcell area from sea ice history files or grid files).

Convert aice to fraction if it is not already.

NH extent = where(aice.ge.0.15,tarea,0.) where tlat > 0.
NH area = sum(aicetarea) for tlat > 0. x 1.0e-12
NH ice volume = sum(hi
tarea) for tlat > 0. x 1.0e-13
NH snow volume = sum(hs*tarea) for tlat > 0. x 1.0e-13

@dabail10
Copy link
Collaborator Author

Is this already in python? @nusbaume @justin-richling

Does the ADF call the CVDP?

@dabail10
Copy link
Collaborator Author

Here is some python code. Assuming that you have sea ice files uploaded:

ds_area = (ds.TAREA*ds.aice).where(TLAT>0.).sum(dim=['ni','nj'])

@justin-richling
Copy link
Collaborator

@dabail10 Yeah, we can call the CVDP from the ADF

@dabail10
Copy link
Collaborator Author

Aha. I see that the ADF calls the CVDP NCL scripts.

@justin-richling
Copy link
Collaborator

Yeah, I should've mentions that. It runs in the background of the ADF via NCL scripts. I'm working with Adam Phillips to eventually get the major parts of the CVDP and CVDP-LE into python.

@phillips-ad
Copy link
Collaborator

@dabail10 the current plan is for a python-only CVDP release to happen in the latter half of 2024. That release will not have all the current CVDP/CVDP-LE capabilities in it. I will speak with you at a later date about what sea ice metrics we should carry over into the new python CVDP package.

@dabail10
Copy link
Collaborator Author

Got it. I still think we should work on this one step asap. I will prototype something in python.

@dabail10 dabail10 changed the title Compute global / hemispheric integrated quantities. Compute global / hemispheric / regional reductions (e.g. averaging, integrating) Jan 18, 2024
@dabail10
Copy link
Collaborator Author

@klindsay28 has a number of functions for doing this type of calculation.

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

No branches or pull requests

4 participants