AustralianAntarcticDivision / blueant

Environmental data for Antarctic and Southern Ocean science
https://australianantarcticdivision.github.io/blueant/
Other
15 stars 2 forks source link

Trouble downloading sea ice .nc files from "CERSAT SSM/I sea ice concentration" #18

Closed jasmin4689 closed 5 years ago

jasmin4689 commented 5 years ago

I am trying to download data from "CERSAT SSM/I sea ice concentration".

I have downloaded multiple data sets using the "blueant" package containing .nc files to extract metadata from these files for a specific Antarctic region. It has worked with no problem until I started downloading this dataset: "CERSAT SSM/I sea ice concentration".

I am running this code in R Studio version 1.1.453 on a MacBook Pro from 2014 with the "High Sierra" operating system. I have successfully downloaded the data from "CERSAT SSM/I sea ice concentration" for the years "2007" and "2008" but now it is not working for "2009" or any other years if I use the "accept_follow" command. It also won't download the entire data set if I run the code below without the "accept_follow" command.

The code I have used is the following:

#### Setup db Sea Ice ####

mysrc2 <- sources("CERSAT SSM/I sea ice concentration") 

## First make sure that the data source doesn't already have an 
accept_follow parameter defined
"accept_follow" %in% names(mysrc2$method[[1]])

## nope, so we can safely go ahead and impose our own
mysrc2$method[[1]]$accept_follow <- "2009"

# Download the data to local folder
cf <- bb_config(local_file_root = "./Data") %>% bb_add(mysrc2)
bb_sync(cf, verbose = TRUE)

The error message that comes up when running the code is the following:

Fri Mar 29 09:56:32 2019 Synchronizing dataset: CERSAT SSM/I sea ice concentration Source URL ftp://ftp.ifremer.fr/ifremer/cersat/products/gridded/psi- concentration/data/antarctic/daily/netcdf/



this dataset path is: /Users/jasmin4689/Documents/Uni/Data/JG_PhD_Data/JG_R/Temporal_Comparison/Data/ftp .ifremer.fr/ifremer/cersat/products/gridded/psi- concentration/data/antarctic/daily/netcdf building file list ... done. visiting ftp://ftp.ifremer.fr/ifremer/cersat/products/gridded/psi- concentration/data/antarctic/daily/netcdf/ ... bb_rget exited with an error (RETR response: 425) download failed or was interrupted: not running post-processing step

Fri Mar 29 09:57:39 2019 dataset synchronization complete: CERSAT SSM/I sea ice concentration

A tibble: 1 x 5

name id source_url
status files

1 CERSAT SSM/I sea ice … CERSAT_S… ftp://ftp.ifremer.fr/ifremer/cersat/products/gridded/psi-con… FALSE
raymondben commented 5 years ago

Hi, hmm, that's very odd! I tried just now using your code (on a Linux machine) and it worked fine. Maybe it was a temporary issue at the ifremer server - perhaps try again? Otherwise I'll have a look later when I have some time.

jasmin4689 commented 5 years ago

Hey Ben,

I have been trying on and off for two weeks now and really need the sea ice data to finish off my project as the deadline for the report is approaching.

Any suggestions what I could try?

On 2 Apr 2019, at 5:29 pm, Ben Raymond notifications@github.com wrote:

Hi, hmm, that's very odd! I tried just now using your code (on a Linux machine) and it worked fine. Maybe it was a temporary issue at the ifremer server - perhaps try again? Otherwise I'll have a look later when I have some time.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AustralianAntarcticDivision/blueant/issues/18#issuecomment-478878234, or mute the thread https://github.com/notifications/unsubscribe-auth/AuvvJWJDFEqsO10rdHi9-6DrqezUAa01ks5vcwbAgaJpZM4cXTNw.

raymondben commented 5 years ago

@jasmin4689 - do you have (or can you install) wget on your machine? (If you are using homebrew, I think it's just brew install wget --with-libressl - but I don't have a Mac so am not totally sure about that. You will need admin privileges to do it, too). If you have this, we can try a modified version of mysrc2 that uses wget under the hood instead of the current R code. Sometimes that gets around problems like this one.

jasmin4689 commented 5 years ago

Dear Ben,

after you told me that the download worked fine for you, I took my work laptop home and tried it from there and it worked perfectly. I had not considered that solution as I was able to download other data sets just fine throughout the two weeks that I had tried to download the sea ice data.

I appreciate all your help and thank you for coming up with solutions.

Greetings, Jasmin

On 2 Apr 2019, at 8:58 pm, Ben Raymond notifications@github.com wrote:

@jasmin4689 https://github.com/jasmin4689 - do you have (or can you install) wget on your machine? (If you are using homebrew, I think it's just brew install wget --with-libressl - but I don't have a Mac so am not totally sure about that. You will need admin privileges to do it, too). If you have this, we can try a modified version of mysrc2 that uses wget under the hood instead of the current R code. Sometimes that gets around problems like this one.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/AustralianAntarcticDivision/blueant/issues/18#issuecomment-478946285, or mute the thread https://github.com/notifications/unsubscribe-auth/AuvvJWjW9_2J55KbofGPpHIOKB8z1aa-ks5vcze_gaJpZM4cXTNw.

raymondben commented 5 years ago

Ah, excellent! Thanks for letting me know. If it's any consolation, we also have problems at work that don't happen elsewhere, due to firewalls/proxies/corporate access rules. And they are often difficult to track down. I'm going to assume that this particular issue was one of those, and we can't really do much about it in the code here, so I'll close the issue.