Re: Error with the print command

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue, 18 Aug 2009 08:54:45 -0600 (MDT)

On Tue, 18 Aug 2009, John Allen wrote:

> Hi,
> For some reason when I am attempting to operate the print command I recieve
> the following error:
>
> print (tenv)
> warning:Error Forking pager check PAGER environment variable and restart,
> continuing using "more"
> fatal:Error Forking pager again, check PATH environment variable, can't
> continue
>
> I have had a look through the archives and found one suggestion to reset the
> PAGER variable, however im not sure how to go about this, or if this indeed
> would solve the problem.

Hi John,

What is your PAGER environment set to?

    printenv PAGER

You can try unsetting it before you run NCL:

>From ksh/sh:

<pre>
   unset PAGER
</pre>

>From csh/tcsh:

<pre>
   unsetenv PAGER
</pre>

The "printVarSummary" command is working because it didn't need to
page the output to multiple pages in order to display it on your
screen.

--Mary

> It sounds like it may be set to something that
> Now this is not just an item on some isolated variable, and applies to
> anything I try to print, the above being drawn from
> ncl 19> f = addfile("reganal.meso_laps_pt125.1101.00.nc", "r")
> ncl 20> sigma = f->lvl
> ncl 21> psfc = f ->sfc_pres (time | 0, lat | :, lon | :)
> ncl 22> penv= pres_sigma(sigma,psfc)
> ncl 23> qenv = f ->mix_rto (time | 0, lvl | :, lat | :, lon | :)
> ncl 24> tenv = f->air_temp (time | 0, lvl | :, lat | :, lon | :)
> ncl 25> print (tenv)
> warning:Error Forking pager check PAGER environment variable and restart,
> continuing using "more"
> fatal:Error Forking pager again, check PATH environment variable, can't
> continue
>
> Now what is particularly strange is that the following command does work:
> ncl 26> printVarSummary (tenv)
> Variable: tenv
> Type: float
> Total Size: 33408000 bytes
> 8352000 values
> Number of Dimensions: 3
> Dimensions and sizes: [lvl | 29] x [lat | 480] x [lon | 600]
> Coordinates:
> lvl: [0.05..0.9988]
> lat: [-55..4.875]
> lon: [95..169.875]
> Number Of Attributes: 5
> grid_type : spatial
> level_type : sigma
> long_name : air temperature
> units : K
> accum_type : instantaneous
> But no other of the print commands does.
>
> Any help as to why this is happening or a correction would be appreciated.
> Thanks,
> John
>
>
>
>
> --
> ********************************************
> John Allen
> School of Earth Sciences
> The University of Melbourne
> Victoria, 3010, Australia
>
> ********************************************
>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Aug 18 2009 - 08:54:45 MDT

This archive was generated by hypermail 2.2.0 : Mon Aug 24 2009 - 11:15:23 MDT