Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

Postprocessing package: Unable to install all postprocessing tools into the virtual environment

Hi There,

I was trying to install the postprocessing package in Cheyenne. And I followed the instruction: 1) download the code; 2) Setting up the Python virtualenv using create_python_env.

When I conducted the second step, I encountered this question:

1594073364274.png

I am not sure if this is associated with the python version. But in the postprocessing package, it said that we should use "python (version >= 2.7.x but < 3.y.z)" in the system requirement
(see NCAR/CESM_postprocessing). It seems there is a conflict between the instruction and the actual setting.

Furthermore, I tried to use "module load python/3.7.5" and ran that again. But the error still show up. I am not sure if my command is correct for using newer python versions because I am a new Cheyenne user.

In addition, I only need to use this package to do zonal average to ocean data (irregular gird), however I did not see any examples for that. I inferred from the instruction that the zonal average is a special package Therefore, if anyone has any suggestion for conducting the zonal average using the postprocessing package, it would be perfect!

And I appreciate any suggestions / thoughts / answers! Thanks very much!!!

Cheers,
Qinxue
 
Update:

It seems I successfully set up the enviroment. And have all the scripts in my space for postprocessing. However, I was still wondering how to conduct zonal average to pop file..

I saw the function in the source code. However, I did not see any relevant .xml scripts.

Does anyone has any thoughts/comments about this? Thanks a lot again!!!

Cheers,
Qinxue

1594158525057.png
 

fischer

CSEG and Liaisons
Staff member
Hi Qinxue,

I've been told that the diagnostic package will not do zonal averaging over the ocean grid. It only is able to perform zonal average over lat/lon regular grid.

Chris
 

strandwg

Moderator
Staff member
The postprocessing package you've installed doesn't do zonal averages, as Chris notes.

There is an effort underway to provide a zonal averaging tool for POP output; please see the GitHub issue at

 
Hi Qinxue,

I've been told that the diagnostic package will not do zonal averaging over the ocean grid. It only is able to perform zonal average over lat/lon regular grid.

Chris

The postprocessing package you've installed doesn't do zonal averages, as Chris notes.

There is an effort underway to provide a zonal averaging tool for POP output; please see the GitHub issue at



Hi Chris and Gary,

Thanks very much for your kind replies!!!
And thank you very much Gary for the link. It is very helpful! And it seems I successfully calculated the zonal mean using the corresponding scripts.
May I ask a following question?
After I got the zonal mean, I realized that I still need to calculate the residual -- that is the variable at each grid minus the zonal mean. And for the pop file, there is not a constant latitude associated with each row. For example, V = [V] + V*, where [V] is the zonal mean and V* is the residual. Using the script above I have calculated the [V]. However, I am still confused about how to calculate the V*. Do you have any ideas? Thanks so much if you can give me any suggestions!!!

Cheers,
Qinxue
 

strandwg

Moderator
Staff member
Hi Chris and Gary,

Thanks very much for your kind replies!!!
And thank you very much Gary for the link. It is very helpful! And it seems I successfully calculated the zonal mean using the corresponding scripts.
May I ask a following question?
After I got the zonal mean, I realized that I still need to calculate the residual -- that is the variable at each grid minus the zonal mean. And for the pop file, there is not a constant latitude associated with each row. For example, V = [V] + V*, where [V] is the zonal mean and V* is the residual. Using the script above I have calculated the [V]. However, I am still confused about how to calculate the V*. Do you have any ideas? Thanks so much if you can give me any suggestions!!!

I recommend asking on the POP subforum, as there may be POP users who have the tool(s) you need. See

 
I recommend asking on the POP subforum, as there may be POP users who have the tool(s) you need. See


Hi Gary,

Thank you very much! I will try to ask in POP subforum.

Cheers,
Qinxue
 

pushtorganics

Ravi Kumar
New Member
This forum is good for programming conversations. Could anyone suggest to me a free website or platform where I can learn python from basic to advance but it should be a free platform.

I am designer of
Pusht Organic
 
Top