Comments (3)
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.
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.
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)
- Persistent Wind Intensity Patterns in Historical Typhoon Tracks Beyond 180 Degrees Longitude HOT 9
- Syria LitPop returns Value NaN for all values HOT 2
- difficulties with installation HOT 9
- WorldBank tests fail HOT 1
- Fiona Error on fresh installs HOT 8
- haz.select() doesn't work with empty haz.fraction matrix HOT 11
- PR #833 breaks test in climada_petals HOT 1
- installation fails - channel settings HOT 3
- Flood data for Colombia, Nigeria, Sudan and Venezuela has an array of float 1.0 for .date attribute HOT 9
- xarray 2024.2 breaks unit test HOT 2
- Create a function to store the local exceedence intensity maps as netcdf file
- Data freshness HOT 2
- coordinates.lon_bounds can give a range larger than 360 degrees HOT 1
- util.coordinates.get_land_geometry can't handle the antimeridian unless the extent is (-180, 180) HOT 3
- upgrading dask to 2024.3 leads to tests failing HOT 4
- Links in tutorials within the doc do not work (the ones on the right side navigation bar are ok) HOT 2
- Shapely runtime warnings in newer climada_env builds HOT 2
- Plotting hazards with inapt crs HOT 5
- Handle the case where `Hazard.select` creates a selection where the entire fraction matrix is zero
- Drop support of Python 3.9 and adopt 3.12 instead HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from climada_python.