Coder Social home page Coder Social logo

Comments (3)

emanuel-schmid avatar emanuel-schmid commented on September 2, 2024

The file itself can be read though with netCDF4.Dateset()

>>> import netCDF4 as nc
>>> nc.Dataset('data/demo/lpjml_ipsl-cm5a-lr_ewembi_historical_2005soc_co2_yield-whe-noirr_annual_FR_DE_DEMO_1861_2005.nc')
<class 'netCDF4._netCDF4.Dataset'>
root group (NETCDF4_CLASSIC data model, file format HDF5):
    CDI: Climate Data Interface version 1.9.8 (https://mpimet.mpg.de/cdi)
    Conventions: CF-1.6
    history: Wed Apr 22 10:58:30 2020: cdo -k grid sellonlatbox,-5,16,42,55 /Users/eberenzs/polybox/Shared/ISIMIP_Droughts/01_Data/ISIMIP_2b/Historical/lpjml_ipsl-cm5a-lr_ewembi_historical_2005soc_co2_yield-whe-noirr_global_annual_1861_2005.nc /Users/eberenzs/polybox/Shared/ISIMIP_Droughts/01_Data/ISIMIP_2b/Historical/lpjml_ipsl-cm5a-lr_ewembi_historical_2005soc_co2_yield-whe-noirr_FR_DE_annual_1861_2005.nc
    institution: Potsdam Institute for Climate Impact Research
    title: LPJmL simulations for ISIMIP2b
    contact: Christoph Mueller <[email protected]>
    comment3: constant current management, all crops everywhere, GGCMI harmnon growing seasons
    isimip_round: ISIMIP2b
    isimip_upload_date: May  5
    isimip_upload_version: 2
    isimip_qc_version: 1
    isimip_test_suite_pass_date: 2017.07.07
    project: isimip2b
    product: output
    dataset_type: Impact model output
    bias_correction: EWEMBI
    world_region: Global land
    sector: Agriculture
    impact_model: LPJmL
    model: ipsl-cm5a-lr
    experiment: historical
    period: historical
    ensemble: r1i1p1
    time_frequency: yr
    country: ALL
    social_forcing: 2005soc
    co2_forcing: co2
    irrigation_forcing: no irrigation (noirr)
    crop_id: whe
    crop: Wheat
    publisher: ISIMIP coordination team <[email protected]>
    description: LPJmL model output prepared according to the ISIMIP2b simulation protocol (https://www.isimip.org/protocol/#isimip2b). Model details: https://www.isimip.org/impactmodels/details/83/. Published under CC BY 4.0 licence. Use of these data strictly according to the ISIMIP Terms of Use (https://www.isimip.org/protocol/terms-of-use/). These data may change! Keep up-to-date on corrections & caveats: https://www.isimip.org/outputdata/#output-data-changelog
    doi: NA
    licence: CC BY 4.0
    creator: Christoph Müller <[email protected]>
    tracking_id: 41942b84-01fd-4795-94a1-8a49ec09589d
    creation_date: 2018-11-13T13:55:13Z
    CDO: Climate Data Operators version 1.9.8 (https://mpimet.mpg.de/cdo)
    dimensions(sizes): time(145), lon(42), lat(26)
    variables(dimensions): float64 time(time), float64 lon(lon), float64 lat(lat), float32 yield(time,lat,lon)
    groups:

from climada_python.

sameberenz avatar sameberenz commented on September 2, 2024

is this still an issue?
It works fine under UNIX.
Do you get the same issue with test_cropyield_isimip? (loading a similiarly created NetCDF-file)

from climada_python.

sameberenz avatar sameberenz commented on September 2, 2024

Since I don't work on Windows, I would appreciate if someone with CLIMADA running on a Windows-machine could possibly solve this issue. Thank you!

Here is what the output from running test_crop_potential should look like:

runfile('test_crop_potential.py')

2020-07-02 10:32:13,451 - climada - DEBUG - Loading default config file: climada_python/climada/conf/defaults.conf

test_load_EU_all (__main__.TestCropPotential)
Test defining crop potential hazard from complete demo file (Central Europe) ... 

2020-07-02 10:32:14,936 - climada.util.coordinates - INFO - Reading climada_python/data/demo/lpjml_ipsl-cm5a-lr_ewembi_historical_2005soc_co2_yield-whe-noirr_annual_FR_DE_DEMO_1861_2005.nc
ok
test_set_rel_yield (__main__.TestCropPotential)

Test setting intensity to relativ yield ... 

2020-07-02 10:32:15,646 - climada.util.coordinates - INFO - Reading climada_python/data/demo/lpjml_ipsl-cm5a-lr_ewembi_historical_2005soc_co2_yield-whe-noirr_annual_FR_DE_DEMO_1861_2005.nc
ok


----------------------------------------------------------------------
Ran 2 tests in 1.277s

OK

from climada_python.

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.