[Met_help] [rt.rap.ucar.edu #95200] History for PYTHON_NUMPY
Julie Prestopnik via RT
met_help at ucar.edu
Wed Jun 10 14:42:39 MDT 2020
----------------------------------------------------------------
Initial Request
----------------------------------------------------------------
Hello,
I tried to pass a python script into MET but got error as below (I am
working on wcoss):
cd /gpfs/dell2/emc/modeling/noscrub/Binyu.Wang/MET/Scripts
[Binyu.Wang at v72a3 Scripts]$ plot_data_plane PYTHON_NUMPY ASH.ps
'name="read_Kasatochi_NC.py
Kasatochi_2008221-181500_2008222-005500.netcdf.test ASH_MASS_LOADING";'
DEBUG 1: Opening data file: PYTHON_NUMPY
WARNING:
WARNING: python_dataplane() -> an error occurred importing module
"./read_Kasatochi_NC.py"
WARNING:
ERROR :
ERROR : plot_data_plane -> trouble getting field
"name="read_Kasatochi_NC.py
Kasatochi_2008221-181500_2008222-005500.netcdf.test ASH_MASS_LOADING";"
from file "PYTHON_NUMPY"
Is there a problem with my PYTHON? Thank you very much!
Binyu
----------------------------------------------------------------
Complete Ticket History
----------------------------------------------------------------
Subject: PYTHON_NUMPY
From: David Fillmore
Time: Fri May 08 09:20:10 2020
John - can you take a look at Binyu's python script on WCOSS?
thanks,
David
On Fri, May 8, 2020 at 9:10 AM binyu.wang at noaa.gov via RT
<met_help at ucar.edu>
wrote:
>
> Fri May 08 09:09:57 2020: Request 95200 was acted upon.
> Transaction: Ticket created by binyu.wang at noaa.gov
> Queue: met_help
> Subject: PYTHON_NUMPY
> Owner: Nobody
> Requestors: binyu.wang at noaa.gov
> Status: new
> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=95200 >
>
>
> Hello,
> I tried to pass a python script into MET but got error as below (I
am
> working on wcoss):
>
> cd /gpfs/dell2/emc/modeling/noscrub/Binyu.Wang/MET/Scripts
>
> [Binyu.Wang at v72a3 Scripts]$ plot_data_plane PYTHON_NUMPY ASH.ps
> 'name="read_Kasatochi_NC.py
> Kasatochi_2008221-181500_2008222-005500.netcdf.test
ASH_MASS_LOADING";'
> DEBUG 1: Opening data file: PYTHON_NUMPY
> WARNING:
> WARNING: python_dataplane() -> an error occurred importing module
> "./read_Kasatochi_NC.py"
> WARNING:
> ERROR :
> ERROR : plot_data_plane -> trouble getting field
> "name="read_Kasatochi_NC.py
> Kasatochi_2008221-181500_2008222-005500.netcdf.test
ASH_MASS_LOADING";"
> from file "PYTHON_NUMPY"
>
> Is there a problem with my PYTHON? Thank you very much!
> Binyu
>
>
------------------------------------------------
Subject: PYTHON_NUMPY
From: Julie Prestopnik
Time: Fri May 08 11:28:42 2020
Hi Binyu.
I am unable to reproduce the problem you are experiencing. I logged
into
venus, with a clean environment, ran:
*module use
/gpfs/dell2/emc/verification/noscrub/Julie.Prestopnik/modulefilesmodule
load met/9.0*
Then, I copied your "Scripts" directory
to
/gpfs/dell2/emc/verification/noscrub/Julie.Prestopnik/met_help/wang_20200508/Scripts,
ran the same command, and got a successful run:
[Julie.Prestopnik at v71a3 Scripts]$ plot_data_plane PYTHON_NUMPY ASH.ps
> 'name="read_Kasatochi_NC.py
> Kasatochi_2008221-181500_2008222-005500.netcdf.test
ASH_MASS_LOADING";'
> DEBUG 1: Opening data file: PYTHON_NUMPY
> 3.6.3 (default, Feb 25 2019, 15:56:15)
> [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
> Input File: 'Kasatochi_2008221-181500_2008222-005500.netcdf.test'
> Variable Name : 'ASH_MASS_LOADING'
> Data Shape: (1450, 1600)
> Data Type: dtype('float64')
> Attributes: {'valid': '20080809_005500', 'init': '20080809_005500',
> 'lead': '00', 'accum': '00', 'name': 'ASH_MASS_LOADING',
'long_name':
> 'ASH_MASS_LOADING', 'level': 'Surface', 'units': 'g/m^2', 'grid':
{'name':
> 'Polar Stereographic', 'type': 'Polar Stereographic', 'hemisphere':
'N',
> 'scale_lat': 60.0, 'lat_pin': 22.67176, 'lon_pin': -168.7561,
'x_pin': 0.0,
> 'y_pin': 0.0, 'lon_orient': -145.0, 'd_km': 5.0, 'r_km': 6371.2,
'nx':
> 1600, 'ny': 1450}}
> DEBUG 1: Creating postscript file: ASH.ps
I suspect there could be an issue with the environment. Here are the
modules I have loaded for reference:
> [Julie.Prestopnik at v71a3 Scripts]$ module list
>
>
> Currently Loaded Modules:
>
> 1) EnvVars/1.0.3 2) ips/18.0.5.274 3) python/3.6.3 4)
met/9.0
>
I hope this helps. Please check your environment, try rerunning, and
let
us know how it goes.
Thanks!
Julie
On Fri, May 8, 2020 at 9:20 AM David Fillmore via RT
<met_help at ucar.edu>
wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=95200 >
>
> John - can you take a look at Binyu's python script on WCOSS?
> thanks,
> David
>
> On Fri, May 8, 2020 at 9:10 AM binyu.wang at noaa.gov via RT <
> met_help at ucar.edu>
> wrote:
>
> >
> > Fri May 08 09:09:57 2020: Request 95200 was acted upon.
> > Transaction: Ticket created by binyu.wang at noaa.gov
> > Queue: met_help
> > Subject: PYTHON_NUMPY
> > Owner: Nobody
> > Requestors: binyu.wang at noaa.gov
> > Status: new
> > Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=95200 >
> >
> >
> > Hello,
> > I tried to pass a python script into MET but got error as below (I
am
> > working on wcoss):
> >
> > cd /gpfs/dell2/emc/modeling/noscrub/Binyu.Wang/MET/Scripts
> >
> > [Binyu.Wang at v72a3 Scripts]$ plot_data_plane PYTHON_NUMPY ASH.ps
> > 'name="read_Kasatochi_NC.py
> > Kasatochi_2008221-181500_2008222-005500.netcdf.test
ASH_MASS_LOADING";'
> > DEBUG 1: Opening data file: PYTHON_NUMPY
> > WARNING:
> > WARNING: python_dataplane() -> an error occurred importing module
> > "./read_Kasatochi_NC.py"
> > WARNING:
> > ERROR :
> > ERROR : plot_data_plane -> trouble getting field
> > "name="read_Kasatochi_NC.py
> > Kasatochi_2008221-181500_2008222-005500.netcdf.test
ASH_MASS_LOADING";"
> > from file "PYTHON_NUMPY"
> >
> > Is there a problem with my PYTHON? Thank you very much!
> > Binyu
> >
> >
>
>
--
Julie Prestopnik
Software Engineer
National Center for Atmospheric Research
Research Applications Laboratory
Phone: 303.497.8399
Email: jpresto at ucar.edu
My working day may not be your working day. Please do not feel
obliged to
reply to this email outside of your normal working hours.
------------------------------------------------
Subject: PYTHON_NUMPY
From: binyu.wang at noaa.gov
Time: Fri May 08 14:11:06 2020
Hello Julie,
Thank you so much. Yes you are correct, after I update the
environment, the
error is gone.
I did get more question though: I use that to my config file, and got
new
error from using the PYTHON script:
cd
/gpfs/dell2/emc/modeling/noscrub/Binyu.Wang/MET/grid2grid/verf_met_ens/ush
[Binyu.Wang at v71a3 ush]$ ./verf_g2g_kasat.sh
---
ERROR :
ERROR : VarInfo::set_magic() -> embedded whitespace found in the nstr
"/gpfs/dell2/emc/modeling/noscrub/Binyu.Wang/MET/Scripts/read_Kasatochi_NC.py
$OBSV_FILE ASH_MASS_LOADING" or lstr "(*,*)".
ERROR :
my config is:
/gpfs/dell2/emc/modeling/noscrub/Binyu.Wang/MET/grid2grid/verf_met_ens/parm/verf_g2g_ens_stat_regn_config_kasat
Any suggestions? Thank you.
Binyu
On Fri, May 8, 2020 at 1:28 PM Julie Prestopnik via RT
<met_help at ucar.edu>
wrote:
> Hi Binyu.
>
> I am unable to reproduce the problem you are experiencing. I logged
into
> venus, with a clean environment, ran:
>
>
> *module use
>
/gpfs/dell2/emc/verification/noscrub/Julie.Prestopnik/modulefilesmodule
> load met/9.0*
>
> Then, I copied your "Scripts" directory
> to
>
/gpfs/dell2/emc/verification/noscrub/Julie.Prestopnik/met_help/wang_20200508/Scripts,
> ran the same command, and got a successful run:
>
> [Julie.Prestopnik at v71a3 Scripts]$ plot_data_plane PYTHON_NUMPY
ASH.ps
> > 'name="read_Kasatochi_NC.py
> > Kasatochi_2008221-181500_2008222-005500.netcdf.test
ASH_MASS_LOADING";'
> > DEBUG 1: Opening data file: PYTHON_NUMPY
> > 3.6.3 (default, Feb 25 2019, 15:56:15)
> > [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
> > Input File: 'Kasatochi_2008221-181500_2008222-005500.netcdf.test'
> > Variable Name : 'ASH_MASS_LOADING'
> > Data Shape: (1450, 1600)
> > Data Type: dtype('float64')
> > Attributes: {'valid': '20080809_005500', 'init':
'20080809_005500',
> > 'lead': '00', 'accum': '00', 'name': 'ASH_MASS_LOADING',
'long_name':
> > 'ASH_MASS_LOADING', 'level': 'Surface', 'units': 'g/m^2', 'grid':
> {'name':
> > 'Polar Stereographic', 'type': 'Polar Stereographic',
'hemisphere': 'N',
> > 'scale_lat': 60.0, 'lat_pin': 22.67176, 'lon_pin': -168.7561,
'x_pin':
> 0.0,
> > 'y_pin': 0.0, 'lon_orient': -145.0, 'd_km': 5.0, 'r_km': 6371.2,
'nx':
> > 1600, 'ny': 1450}}
> > DEBUG 1: Creating postscript file: ASH.ps
>
>
> I suspect there could be an issue with the environment. Here are
the
> modules I have loaded for reference:
>
> > [Julie.Prestopnik at v71a3 Scripts]$ module list
> >
> >
> > Currently Loaded Modules:
> >
> > 1) EnvVars/1.0.3 2) ips/18.0.5.274 3) python/3.6.3 4)
met/9.0
> >
>
> I hope this helps. Please check your environment, try rerunning,
and let
> us know how it goes.
>
> Thanks!
>
> Julie
>
> On Fri, May 8, 2020 at 9:20 AM David Fillmore via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=95200 >
> >
> > John - can you take a look at Binyu's python script on WCOSS?
> > thanks,
> > David
> >
> > On Fri, May 8, 2020 at 9:10 AM binyu.wang at noaa.gov via RT <
> > met_help at ucar.edu>
> > wrote:
> >
> > >
> > > Fri May 08 09:09:57 2020: Request 95200 was acted upon.
> > > Transaction: Ticket created by binyu.wang at noaa.gov
> > > Queue: met_help
> > > Subject: PYTHON_NUMPY
> > > Owner: Nobody
> > > Requestors: binyu.wang at noaa.gov
> > > Status: new
> > > Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=95200
> >
> > >
> > >
> > > Hello,
> > > I tried to pass a python script into MET but got error as below
(I am
> > > working on wcoss):
> > >
> > > cd /gpfs/dell2/emc/modeling/noscrub/Binyu.Wang/MET/Scripts
> > >
> > > [Binyu.Wang at v72a3 Scripts]$ plot_data_plane PYTHON_NUMPY ASH.ps
> > > 'name="read_Kasatochi_NC.py
> > > Kasatochi_2008221-181500_2008222-005500.netcdf.test
ASH_MASS_LOADING";'
> > > DEBUG 1: Opening data file: PYTHON_NUMPY
> > > WARNING:
> > > WARNING: python_dataplane() -> an error occurred importing
module
> > > "./read_Kasatochi_NC.py"
> > > WARNING:
> > > ERROR :
> > > ERROR : plot_data_plane -> trouble getting field
> > > "name="read_Kasatochi_NC.py
> > > Kasatochi_2008221-181500_2008222-005500.netcdf.test
ASH_MASS_LOADING";"
> > > from file "PYTHON_NUMPY"
> > >
> > > Is there a problem with my PYTHON? Thank you very much!
> > > Binyu
> > >
> > >
> >
> >
>
> --
> Julie Prestopnik
> Software Engineer
> National Center for Atmospheric Research
> Research Applications Laboratory
> Phone: 303.497.8399
> Email: jpresto at ucar.edu
>
> My working day may not be your working day. Please do not feel
obliged to
> reply to this email outside of your normal working hours.
>
>
------------------------------------------------
More information about the Met_help
mailing list