GithubHelp home page GithubHelp logo

Comments (3)

zxdawn avatar zxdawn commented on June 14, 2024

I checked the condition in datasets.py

salem/salem/datasets.py

Lines 178 to 181 in 2d10174

# Some necessary checks
if (np.max(sub_x) < 0) or (np.min(sub_x) > mx) or \
(np.max(sub_y) < 0) or (np.min(sub_y) > my):
raise RuntimeError('subset not valid')

Here's the result:

max(sub_x) 148234
max(sub_y) 31341
min(sub_x) 116714 mx 383
min(sub_y) 7316 mx 283

It seems something is wrong in transform.

from salem.

fmaussion avatar fmaussion commented on June 14, 2024

Thanks!

To use topographical shading in salem, you have to download your own topography data. In this line:

maps[0].set_topography(get_demo_file('hef_srtm.tif'))

you use the topography file hef_srtm.tif, which is a very small subset of the Alps.

from salem.

zxdawn avatar zxdawn commented on June 14, 2024

@fmaussion Thank you! I find the link to download the data. By the way, I decided to use geo_em.nc to add the color. Thank you for your excellent work! It saves a lot time.

from salem.

Related Issues (20)

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.