CICE-Consortium / Icepack

Development repository for sea-ice column physics
Other
25 stars 131 forks source link

timeseries plots in conda environment #404

Closed eclare108213 closed 3 months ago

eclare108213 commented 1 year ago

I'm not sure if this is a problem with my particular conda setup, but it would be nice to have gnuplot (or some equivalent) available for use with the timeseries.csh script (which I copied from configuration/scripts/tests into my local test directory).

$ ./timeseries.csh logs/ice_diag.full_ITD.221007-155537 Plotting data for 'area fraction' and saving to logs/ice_diag.full_ITD.221007-155537_area_fraction.png gnuplot: Command not found.

phil-blain commented 1 year ago

Hi @eclare108213, in CICE we now have a Python version of this script that gets copied into $ICE_CASEDIR along with the gnuplot version. Maybe this is just a matter of adding that Python script to the Icepack repo?

dabail10 commented 6 months ago

Just successfully did a standalone icepack run on my laptop! I just came across the gnuplot thing. Can we make this a priority to get gnuplot installed for Icepack?

dabail10 commented 6 months ago

Ok. I just downloaded the python version. Didn't we have this in Icepack originally? Anyhow, it is python2 and does not work with python3. Anyone volunteering to update this?

dabail10 commented 6 months ago

Adding @apcraig to this as well.

dabail10 commented 6 months ago

Hi @eclare108213, in CICE we now have a Python version of this script that gets copied into $ICE_CASEDIR along with the gnuplot version. Maybe this is just a matter of adding that Python script to the Icepack repo?

The issue is that the python timeseries script is configured for the full CICE log output (e.g. total ice area for NH and SH). I think the gnuplot version is the way to go. I am looking into a way to install gnuplot on my Mac.

anton-seaice commented 6 months ago

The issue is that the python timeseries script is configured for the full CICE log output (e.g. total ice area for NH and SH). I think the gnuplot version is the way to go. I am looking into a way to install gnuplot on my Mac.

You should just be able to add - gnuplot as another line in environment.yml and run $ conda env update

I do agree though that moving to a python version would be easier to modify / maintain going forward.

dabail10 commented 6 months ago

I tried a pip install gnuplot and it did not find it.

anton-seaice commented 6 months ago

I tried a pip install gnuplot and it did not find it.

Yeah correct - pip is for python and gnuplot is an executable / not python

dabail10 commented 6 months ago

Got it! The conda install works.

dabail10 commented 6 months ago

Ok. As @anton-seaice suggests, we can add gnuplot to the conda environment. Then at least we will have something for the tutorial.

eclare108213 commented 5 months ago

I am testing out the homework instructions and ran into this issue. - gnuplot is in my new clone's environment.yml file under # Plotting dependencies, but I'm getting an error gnuplot: Command not found. and the .png files are all empty. The conda environment is activated. Help?

eclare108213 commented 5 months ago

Never mind - I thought the conda environment was activated, but only for 'base', not 'icepack'.

apcraig commented 3 months ago

This has been fixed, gnuplot is now part of the icepack conda env as of March 1, 2024, #483