Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues about ''retrieve'' #271

Open
QuocPhamBao opened this issue Feb 9, 2023 · 4 comments
Open

Issues about ''retrieve'' #271

QuocPhamBao opened this issue Feb 9, 2023 · 4 comments

Comments

@QuocPhamBao
Copy link

Hello
I used to implement this to extract some data and it is successful:
r1 <- retrieve('slp.1966.nc', lev = 500, it = as.Date(c('1966-01-08',
'1966-01-17')), lon=c(-180,180),lat=c(35,90))

However, I recently used the same for the data in NCEP: https://downloads.psl.noaa.gov/Datasets/ncep.reanalysis/Dailies/surface/
and it is not working.
This is the error notification:
"Warning : Calendar attribute has not been found in the meta data and will be set automatically."
Error in grep(x, seq(length(idim))) : invalid 'pattern' argument

I still can use it for the old data that I download from NCEP last year (July), but I am unable to use new data from the NCEP.
I attached two files (an old file and a new file which were downloaded from NCEP).
I do not know if there is any update about this package?

Regards

@abdelkaderm
Copy link
Contributor

Hi

I will have a look and come back to you.

Bests,

@abdelkaderm
Copy link
Contributor

abdelkaderm commented Feb 10, 2023

We have recently made some changes that affected the command line you are using and we will try to fix it. In the meantime, you can try the following two lines separately that should work.

x <- retrieve('Downloads/slp.1966.nc', param = 'slp', lev = 500, lon=c(-180,180),lat=c(35,90))
x <- subset(x,it =as.Date(c('1966-01-08','1966-01-17')))

@QuocPhamBao
Copy link
Author

Thank you ! It is very useful.

@abdelkaderm
Copy link
Contributor

You are welcome 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants