[Thread Prev][Thread Next][Index]

Re: [ferret_users] pyferret frame images with nodisplay have small white lines



Re,

In fact there is a pngonlyoption that exists and should be noticed in the documentation.

From pyferret code (pyferret/__init__.py)
pngonly: (boolean)    if True, do not display to the console and only raster (PNG)  
                             images can be saved; plots will be generated faster but  
                             removes support for deletion of parts (segments) of a plot.

Regards
Patrick


De: "Patrick Brockmann" <patrick.brockmann@xxxxxxxxxxxx>
À: "ferret users" <ferret_users@xxxxxxxx>
Envoyé: Jeudi 21 Janvier 2021 21:05:39
Objet: [ferret_users] pyferret frame images with nodisplay have small white lines

Hi all,

With pyferret and the -nodisplay option I get some white horizontal lines 
that makes the image captured by the frame command not very nice (at least strange).

Is there a workaround ? 
Initially (re)discovered from a python notebook (with ferretmagic https://github.com/PBrockmann/ipython_ferretmagic)

$ cat tyty.jnl
use levitus_climatology
shade/lev=20v temp[k=1]
frame/file=tyty.png

$ pyferret -nodisplay -script tyty.jnl

I have tested the pyferret -png option.
It produces an image without lines. That would be perfect but how to retrieve this mode
from a pyferret.start function (the way ferretmagic produces images).

Please test:

$cat tyty.py
import pyferret
pyferret.start(verify=False, journal=False, unmapped=True, quiet=True)
pyferret.run('use levitus_climatology')
pyferret.run('shade/lev=20v temp[k=1]')
pyferret.run('frame/file=tyty.png')

$python tyty.py

Tested with last 7.63 release

Regards
Patrick

--
Data Analytics and Visualization Engineer / Project Manager
LSCE/IPSL, CEA-CNRS-UVSQ laboratory
LSCE - Climate and Environment Sciences Laboratory
IPSL - Institut Pierre Simon Laplace
--


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement