Re: ncl_convert2nc "Permission denied" problem for certain users

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Sun, 12 Apr 2009 14:21:42 -0600

Kristoffer,

When you run ncl_convert2nc, it needs to create a temporary NCL script,
and it tries to create it in a temporary directory.

It uses $TMPDIR by default, so if your $TMPDIR is full or unwritable
by you, ncl_convert2nc will not be successful.

On your system, it looks like it is trying to use the directory:

     /var/folders/4f/4fy53OzrFeSwaSFwQiNiyU+++TI/-Tmp-/

(This appears to be the directory structure that Apple uses for
its TMPDIR).

I'm guessing that either this directory got clobbered by accident,
or it is full and won't let you write any more files.

You can setenv TMPDIR to something else if you
want your temporary files to be written somewhere
else, but you should look into what happened
to the above directory.

--Mary

On Apr 11, 2009, at 9:27 PM, Kristoffer Walker wrote:

> Hello folks,
>
> I'm fairly new to grib format and netcdf. Using ncl_convert2nc, I can
> only successfully convert from grib2 to netcdf as one of two users on
> my Mac running OS 10.5.6. I also have no problem doing the conversion
> as user root. Here is what I see for the user that it fails on. Any
> ides?
>
> sail.ucsd.edu:/Users/ofis/Sites/CEL/RT/GE>ncl -V
> 5.1.0
> sail.ucsd.edu:/Users/ofis/Sites/CEL/RT/GE>setenv | grep NCL
> PATH=/opt/local/bin:/opt/local/sbin:/Library/Frameworks/
> Python.framework/Versions/Current/bin:/opt/antelope/4.10/bin:/opt/
> antelope/4.10/bin:/opt/antelope/perl/bin:/opt/antelope/tcltk8.4.4/
> bin:/
> usr/sbin:.:/usr/local/share/NCL/bin:/usr/local/bin:/home/walker/Bin:/
> usr/X11R6/bin:/Applications/MATLAB7/bin:/sw/bin:/usr/local/share/gmt/
> bin:/Users/walker/Research_Projects/Lib/Chavez/bin:/Users/walker/
> Research_Projects/Bin:/Volumes/seis06b/Meteorology/bin/:/opt/local/
> bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/
> Current/bin:.:/usr/local/share/NCL/bin:/usr/local/bin:/home/walker/
> Bin:/usr/X11R6/bin:/Applications/MATLAB7/bin:/sw/bin:/usr/local/share/
> gmt/bin:/Users/walker/Research_Projects/Lib/Chavez/bin:/Users/walker/
> Research_Projects/Bin:/Volumes/seis06b/Meteorology/bin/:/usr/bin:/
> bin:/
> sbin:/usr/local/bin:/usr/X11/bin
> NCARG_ROOT=/usr/local/share/NCL
> sail.ucsd.edu:/Users/ofis/Sites/CEL/RT/GE>ncl_convert2nc
> enp.t00z.grib.grib2
> /var/folders/4f/4fy53OzrFeSwaSFwQiNiyU+++TI/-Tmp-/tmp23158.ncl:
> Permission denied.
> Processing file: enp.t00z.grib.grib2...
> Copyright (C) 1995-2009 - All Rights Reserved
> University Corporation for Atmospheric Research
> NCAR Command Language Version 5.1.0
> The use of this software is governed by a License Agreement.
> See http://www.ncl.ucar.edu/ for more details.
> fatal: can't find file "/var/folders/4f/4fy53OzrFeSwaSFwQiNiyU+++TI/-
> Tmp-/tmp23158.ncl"
>
>
> rm: /var/folders/4f/4fy53OzrFeSwaSFwQiNiyU+++TI/-Tmp-/tmp23158.ncl:
> Permission denied
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Apr 12 2009 - 14:21:42 MDT

This archive was generated by hypermail 2.2.0 : Thu Apr 16 2009 - 10:05:49 MDT