-
Notifications
You must be signed in to change notification settings - Fork 57
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
nc toolbox reading https links #96
Comments
Is there anyway you can post the URL in question?
…-- B
Brian Schlining
On Feb 14, 2017, 3:22 PM -0800, coopy1989 ***@***.***>, wrote:
Hi,
I have had a code which talked to an OPeNDAP http database (OceanColor SST), and had it working very successfully prior to the US government changing to a https (secure) connection.
I have tried to read the netcdf file from the OPeNDAP using the command
"this_URL_ds = ncdataset(this_URL)" but it no longer seems to work.
given the URL, ncdataset is now trying to access is on a https server, is this expected behavior (i.e. it not working)?
Regards,
Carlin
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Sure. See below: I checked this just now and im still getting an error. Thanks. this_URL = 'https://oceandata.sci.gsfc.nasa.gov:443/opendap/MODISA/L3SMI/2005/005/A2005005.L3m_DAY_SST_sst_4km.nc'; setup_nctoolbox |
When I try to connect to that URL it returns a 403 (Forbidden) status code. Status code 403 responses are the result of the web server being configured to deny access to the requested resource by the client. I don't think this was intentional as you can download the data from https://oceandata.sci.gsfc.nasa.gov/opendap/MODISA/L3SMI/2005/005/A2005005.L3m_DAY_SST4_sst4_4km.nc.html. I suspect that the opendap server is not configured correctly, you should contact someone at NASA and let them know ... maybe https://oceancolor.gsfc.nasa.gov/staff/gene/ |
Isn't this the answer? Just drop the :443 and use @coopy1989, I'm surprised you could access the port 443 from a government site before. Usually they only allow access on port 80. |
FYI - https://oceancolor.gsfc.nasa.gov/forum/oceancolor/topic_show.pl?tid=6420, this provides some background as to why things changed (my codes worked perfectly prior to this, with the port 80 link). Thanks for the responses. Because of this (https://www.mathworks.com/support/bugreports/1072120), i assumed that maybe nctoolbox may have only been configured to also read only http links. rsignell, i tried that link, and for me it unfortunately doesn't work (I dont think it matters but Im reading this from UWA in Australia). The odd thing is that if i use an inbuilt matlab net cdf read function i.e. ncread/ncinfo, the link (through port 443) can be read fine, but the array which comes in isnt at all correct in terms of numbers (i suspect matlab isnt correctly reading the integer format correctly?), and this is the reason i used the nctoolbox in the first place as the toolbox provided a much more simple way of reading in the OPeNDAP nc file. When I jumped on the OceanColor forum (to grap that link at the top of this post), since last time i looked (in early Jan) it seems as a number of people are having teething issues reading the :443 links. So maybe its time to go back to Ocean color, if you are certain that the nctoolbox code is ok for https/:443 links? Cheers, Carlin |
So I have picked this up again, I looked at the nc files which come from OPeNDAP. On further inspection these are now CF compliant (Climate Forecasting), which means that the 'data' within them is in a Geo2D format. Thats fine, nctoolbox can deal with that. What i did notice in the errors were http errors (see attached), something to do with the java which obviously is used to read the files. If the java is unable to read the 'https' URL links, is this something which will be updated with a java update or is it something in the codes of ncdataset which needs to be tweaked to allow that? Thanks, Carlin |
@coopy1989 , attachments don't work on github. Can you include a few examples inline? |
I know its messy, but not too long, so ive included the entirety of the error. See below - Given that there is a lot of mention of HTTP in the Java bit, this leads me to suspect that there is some http limitation with Java.
Caused by:
|
I'll try to find some time to look into this tomorrow. |
Thanks @hohonuuli ! |
Hi,
I have had a code which talked to an OPeNDAP http database (OceanColor SST), and had it working very successfully prior to the US government changing to a https (secure) connection.
I have tried to read the netcdf file from the OPeNDAP using the command
"this_URL_ds = ncdataset(this_URL)" but it no longer seems to work.
given the URL, ncdataset is now trying to access is on a https server, is this expected behavior (i.e. it not working)?
Regards,
Carlin
The text was updated successfully, but these errors were encountered: