Giter Club home page Giter Club logo

Comments (3)

euronion avatar euronion commented on May 25, 2024

Addendum:
albedo is only choosen as an example. temperature and influx_toa are affected similarly. influx_diffuse and influx_direct have a different problem: All values are simply nan. (see below)

from atlite.

euronion avatar euronion commented on May 25, 2024

Update:
I recreated the cutout again to exclude problems during creation or from transfer / faulty input files.
Problems regarding coordinates persist.
The problem with influx_diffuse and influx_direct is a bit different from what I described earlier:
The values for both variables for January until including November are zero or nan. Only December has usable data in these variables.

from atlite.

FabianHofmann avatar FabianHofmann commented on May 25, 2024

The problem lays not directly in the sarah.py script but in the era5 script. The albedo and other influx variables are retrieved from era5 even though when the module is set to sarah (which is kind of weird, but I think the intention is to have a complete dataset...)

ERA5 datasets have reversed y axis. In the normal case this is fixed in the standard prepare_cutout function when the merging the empty cutout (coordinates only) with the feature datasets. In the sarah.py script the axis is not double-checked and overwritten here.

An easy fix is to make a double check and correction in the era5.py script, by adding

    ds = maybe_swap_spatial_dims(ds)

into the _rename_and_clean_coords function. This ensures the correct alignment of the datasets.
maybe_swap_spatial_dims is defined in gis.py

from atlite.

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.