taufiqhassan / acccmip6 Goto Github PK
View Code? Open in Web Editor NEWPython package for accessing and downloading CMIP6 database
License: MIT License
Python package for accessing and downloading CMIP6 database
License: MIT License
Hi,
does it has the functionality to download by mask? I could not find a proper way to do it directly.
For instance if I want to download the data from a specific region, some websites (such as Copernicus) allow me to choose a geographical area and download the data only within the extension I want.
Dear Tau
I am using acccmip6 to download historical experiments tas data. However historical experiments have more than 140s realizations and the realization options in acccmip6 cannot handle this amount of realizations, which the `-rlzn 1' option will include realizations like r1i1p1f1, r11i1p1f1 and r1i1p1f1 etc. How could I selected the r1 realizations without r11 realizations for models. Could this to be bug?
Sincerely
Hello,
I use conda to install acccmip6.
However,I run the command:
acccmip6 -o S -m CanESM5 -e ssp245,hist-piAer -v vas,zg -f mon
It turns out:
(wrf4palm1.0) lqy@DESKTOP-LR1ELST:~$ acccmip6 -o S -m CanESM5 -e ssp245,hist-piAer -v vas,zg -f mon
TIPS: Use the check (-c) argument to check your inputs.
Traceback (most recent call last):
File "/home/lqy/anaconda3/envs/wrf4palm1.0/bin/acccmip6", line 11, in
sys.exit(main())
File "/home/lqy/anaconda3/envs/wrf4palm1.0/lib/python3.8/site-packages/acccmip6/cli.py", line 47, in main
SearchCmip6(model=model, experiment=experiment, variable=variable, frequency=frequency, realm=realm, check=check, desc=desc, year=year, time=time, rlzn=rlzn, node=node, skip=skipped, cr=cr, set_server=server)
File "/home/lqy/anaconda3/envs/wrf4palm1.0/lib/python3.8/site-packages/acccmip6/access_cm.py", line 117, in SearchCmip6
info = search.get_info()
File "/home/lqy/anaconda3/envs/wrf4palm1.0/lib/python3.8/site-packages/acccmip6/utilities/c6db.py", line 141, in get_info
info = _extract_info(self._var, self._mod, self._realm, self._exp, self._freq, self.n_files, self.rlzn, self.year,self.links, node=self.nd, set_server=self.set_server)._get_info()
File "/home/lqy/anaconda3/envs/wrf4palm1.0/lib/python3.8/site-packages/acccmip6/utilities/util.py", line 244, in _get_info
links=_Construct_urls(self.var, self.mod, self.realm, self.exp, self.freq, node=self.node, set_server=self.set_server)._get_wget(0)
File "/home/lqy/anaconda3/envs/wrf4palm1.0/lib/python3.8/site-packages/acccmip6/utilities/util.py", line 186, in _get_wget
urllib.request.urlretrieve(url, str(dir_path))
File "/home/lqy/anaconda3/envs/wrf4palm1.0/lib/python3.8/urllib/request.py", line 247, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "/home/lqy/anaconda3/envs/wrf4palm1.0/lib/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/home/lqy/anaconda3/envs/wrf4palm1.0/lib/python3.8/urllib/request.py", line 531, in open
response = meth(req, response)
File "/home/lqy/anaconda3/envs/wrf4palm1.0/lib/python3.8/urllib/request.py", line 640, in http_response
response = self.parent.error(
File "/home/lqy/anaconda3/envs/wrf4palm1.0/lib/python3.8/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/home/lqy/anaconda3/envs/wrf4palm1.0/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/home/lqy/anaconda3/envs/wrf4palm1.0/lib/python3.8/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 500: 500
May I ask you how to slove?
Thanks for your time
Hi,
I am using accmip6 to downloading CMIP6 GCMs.
I found a file can't be accessed in the default server(https://handle-esgf.dkrz.de/lp/21.14100/dab45247-bb68-49db-8f32-7a3424a10170), but the is OK in other replicas and the speed is really quick(10MB/s). So I am wondering that can I select the server(default or other replicas) or is there possible to add a function to select the relative quick server to access?
Thanks
Thanks for this tool.
However, I tried to use it on my macOS terminal but it retruned the above error.
The installation was successful but the running is not working.
Hi,all!
I want to know how to download experiments result from historical,piControl,hist-noLu,hist-GHG,hist-aer by using acccmip6. Because I get some confuse result in searching.
I use acccmip6 package to download the experiment for historical,piControl,hist-noLu,hist-GHG,hist-aer.
The code as "acccmip6 -o S -e historical,piControl,hist-noLu,hist-GHG,hist-aer -v tas -f mon
". But I get the search result as below.
As you can see, the result seems like only have historical,piControl experiment, no matter the loaction for historical,piControl in the code.
If I remove the historical,piControl experiment, I get the result from hist-noLu,hist-GHG,hist-aer experiments.
I search the historical,piControl,hist-noLu,hist-GHG,hist-aer experiments in cmip6 dataset. I can get the right answer.
Hello!
I couldn't download dataset EC-Earth3 by acccmip6 recent days, even I get success about a month ago. However, the dataset can be found in official website.
Command of it like so:
acccmip6 -o D -m EC-Earth3 -e historical,ssp126,ssp245,ssp370,ssp585 -v pr -f day -rlzn 1 -dir /cmip/pr -skip 1p2,1f2
Thanks,
wangq
hello , do you know this problem? ****acccmip6: command not found(when i input "acccmip6 -h" in ubuntu)
Hi
Thanks for this package! I am wondering can I download two scenarios results with intersected realizations?
For example, I want the BCC-ESM1 model results in historical and SSP585 at the same realizations but skiping other realizations.
Thanks.
Hi while trying to download the file I was constantly getting an error FileNotFoundError: [Errno 2] No such file or directory which caused to brake the entire downloading process.
I fixed the error locally by adding an exception block just below the last except block of DownloadCmip6 function of download_dat.py. Maybe you can think better way to handle this error. Thanks!
except: m=m+1 try: os.remove(url.split('/')[len(url.split('/'))-1]) except FileNotFoundError: print('File not found so skipped!') pass
I do the code acccmip6 -o S -rlzn 1 -e ssp585 -f mon -m CESM2 -dir ./
But only can search siv var
Hi,all!
I want to know how to download the specific Variant Label for cmip6 dataset using acccmip6 package(version is 5.4.0). I looked through the guidence of acccmip6, but I only know that -skip option can aviod some Variant Label .
I want to choose "r1i1p1f1" ,but If there is so many Variant Label,like "r1i1p1f1,r10i1f1p1,r101i1p1f1" .... It's lot work by using -skip option. Any idea?
when I downloaded data by selecting 6hrPt Frequency, there are two Tables (6hrPlev and 6hrPlevPt). But I just need 6hrPlevPt. So too many variables will be downloaded, which will take double time.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.