Skip to content

Data Formats module error with "netcdf forecast_model" data structure #426

Open
@ejlevine

Description

@ejlevine

I am working through the Pythia Foundations Data Formats module. When I run with the following code block:

netcdf forecast_model {
attributes:
:Conventions = "CF-1.7" ;
:title = "Forecast model run" ;
:institution = "Unidata" ;
:source = "WRF-1.5" ;
:history = "2019-07-16 02:21:52.005718 Python" ;
:references = "" ;
:comment = "" ;
}

I get an error message:

runfile('/pythia/NetCDF/ProjectPythiaNetCDF.py', wdir='/pythia/NetCDF')
File :59
netcdf forecast_model {
^
SyntaxError: invalid syntax

This happens in both spyder and ipython.

I'm in the right environment and netcdf is installed:

(pythia-book-dev) ejlevine@callisto:~/pythia/NetCDF$ conda env list

conda environments:

base /home/ejlevine/miniconda3
pythia-book-dev * /home/ejlevine/miniconda3/envs/pythia-book-dev

(pythia-book-dev) ejlevine@callisto:~/pythia/NetCDF$ conda list netcdf

packages in environment at /home/ejlevine/miniconda3/envs/pythia-book-dev:

Name Version Build Channel

libnetcdf 4.9.2 nompi_h7e745eb_109 conda-forge
netcdf4 1.6.4 nompi_py311h9a7c333_101 conda-forge

I'm running on openSUSE Leap 15.4.

Can someone please help me fix this?

thanks,
-eric

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentContent related issue

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions