Closed faronium closed 7 years ago
This is a misunderstanding of how to use the catalog.json
. While the URLs in the catalog appear to be files, they are actually dataset IDs and are not intended to be used as a direct download URL.
One should read farther below in the next section about how to construct a proper download URL:
Downloading the actual data values themselves is also done with a DAP request. There are a couple differences, however. First, to download data, the client must be logged in via OpenID. Secondly, the URL template for the request is http://tools.pacificclimate.org/dataportal/[page_id]/data/[dataset_id].[format_extension]?[dap_selection]
Everything after [format_extension]
is optional though, so one could just do http://tools.pacificclimate.org/dataportal/data/bc_prism/pr_monClim_PRISM_historical_run1_198101-201012.nc.nc and get the same results. Note the second .nc
at the end.
A user recently reported corrupted netcdf files when downloading PRISM data. I attempted to replicate by downloading using a BC-wide polygon select on the PRISM portal and was delivered data without issue. Upon further pursuit, it was revealed that the user was using links found here:
http://tools.pacificclimate.org/dataportal/docs/raster.html#dataset-listings
Which suggests ustilizing the JSON found here:
http://tools.pcic.uvic.ca/dataportal/bc_prism/catalog/catalog.json
These links yield corrupted netcdf files with bad time stamps and erroneous and meaningless data. So, the problem either is that the link to the data catalogue needs to be removed or replaced with a link to the valid data, or the files sitting behind the portal are getting corrupted upon dwnload. Again, note that data downloaded from the graphical portal are fine.
I'm pasting in the e-mail chain incase there are any useful clues in it. The reported issue of low bandwidth didn't prove to be an issue on our end.
Cheers, Faron
I got it from here:
http://tools.pacificclimate.org/dataportal/docs/raster.html#dataset-listings
Thanks for your help!
Charles
Charles Cuell, Ph.D. Climate Resilience Consulting Ltd Charles.Cuell@crcteam.ca +1 250.353.1732
www.crcteam.ca
On 19 April 2017 at 13:11, Faron Anslow fanslow@uvic.ca wrote: