Coder Social home page Coder Social logo

acccmip6's People

Contributors

pkufubo avatar taufiqhassan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

acccmip6's Issues

how to choose a specific Variant Label for cmip6 dataset?

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?
image

cannot select Table ID

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.

realization option cannot handle too big realization numbers

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

Download by mask

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.

Dataset EC-Earth3 couldn't be retrieved.

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

-bash: acccmip6: command not found

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.

urllib.error.HTTPError: HTTP Error 500: 500

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

Multiple model lables will mislead the search result?

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.

image

If I remove the historical,piControl experiment, I get the result from hist-noLu,hist-GHG,hist-aer experiments.

image

I search the historical,piControl,hist-noLu,hist-GHG,hist-aer experiments in cmip6 dataset. I can get the right answer.
image

Intersected realizations in different scenarios

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.

File Not Found Error

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

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.