Coder Social home page Coder Social logo

atmtools / arts-lectures Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 6.0 546.4 MB

Provides a set of practical exercises using the radiative-transfer model ARTS

Home Page: http://radiativetransfer.org/

Python 27.87% TeX 39.05% Makefile 0.82% Jupyter Notebook 32.26%
education science radiative-transfer atmospherice-science

arts-lectures's People

Contributors

lkluft avatar m-brath avatar olemke avatar stefanbuehler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

arts-lectures's Issues

Examples not woking

I installed ATRS and Testexample .py worked. But when I tried to run absorption.ipynb its showing like this


Exception Traceback (most recent call last)
/tmp/ipykernel_12347/2548510084.py in
5
6 # Call ARTS to calculate absorption cross sections
----> 7 freq, abs_xsec = calculate_absxsec(species, pressure, temperature)

~/arts-2.4.0/controlfiles-python/example/01-rotational_spectra/absorption_module.py in calculate_absxsec(species, pressure, temperature, fmin, fmax, fnum, lineshape, normalization, verbosity)
59
60 ws.abs_lines_per_speciesReadSpeciesSplitCatalog(
---> 61 basename="spectroscopy/Artscat/"
62 )
63

~/arts-2.4.0/build/python/pyarts/workspace/workspace.py in call(self, *args, **kwargs)
269
270 def call(self, *args, **kwargs):
--> 271 self.m.call(self.ws, *args, **kwargs)
272
273 def repr(self):

~/arts-2.4.0/build/python/pyarts/workspace/methods.py in call(*args, **kwargs)
456 if (e_ptr):
457 raise Exception("Call to ARTS WSM " + self.name + " failed with error: "
--> 458 + e_ptr.decode("utf8").format())
459
460 # Remove temporaries from workspace (in reverse order).

Exception: Call to ARTS WSM abs_lines_per_speciesReadSpeciesSplitCatalog failed with error: Cannot find any bands in the directory you are reading

attribute error while exexcuting Exercise 5: Jacobian and opacity rule


AttributeError Traceback (most recent call last)
/tmp/ipykernel_75718/1219081892.py in <cell line: 3>()
1 # Calculate Jacobians (ARTS)
2 jacobian_quantity = "H2O"
----> 3 calc_jacobians(jacobian_quantity=jacobian_quantity)
4
5 # read in everything

~/arts-lectures-master/exercises/05-jacobian/jacobian_module.py in calc_jacobians(jacobian_quantity, fmin, fmax, fnum, verbosity)
137 """Calculate jacobians for a given species and frequency range."""
138 ws = pyarts.workspace.Workspace(verbosity=0)
--> 139 ws.water_p_eq_agendaSet()
140 ws.PlanetSet(option="Earth")
141 ws.verbositySetScreen(ws.verbosity, verbosity)

~/.local/lib/python3.10/site-packages/pyarts/workspace/workspace.py in getattr(self, name)
479 i = arts_api.lookup_workspace_variable(name.encode())
480 if i < 0:
--> 481 raise AttributeError("No workspace variable " + str(name) + " found.")
482 vs = arts_api.get_variable(i)
483 group_id = vs.group

AttributeError: No workspace variable water_p_eq_agendaSet found.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.