Fails for both a Full Disk and the meso referenced above which I just downloaded to my computer with java.lang.IllegalArgumentException: Cannot create PyString with non-byte value. The failure occurs at the createLayer line.
Version: 1.9beta1 Build-date: 2019-04-15 09:30
This error is happening on my mac. I don't see the same problem on the lunix box that I am using.
I'm glad that you were able to figure out how to get your script working.
I've been trying to simulate a case where I could replicate this problem, but I haven't been able to do so yet. If things with loadGrid are working correctly, xRange shouldn't have any default setting at all, so no xRange should be used by loadGrid unless it was passed directly through the function.
You mentioned that the xRange value was used in an earlier statement. Was this run in the same script, or was it run previously? If this is something you are still concerned about, could you please send me the part of your script where xRange was specified so I can check and see how this could've been passed to loadGrid?
This is a silly script, I am not sure it is working in the way I had hoped, I was working on finding xrange and yrange endpoints associated with lat/lon values. I needed to use these xRange and yRange values rather than the latLonBounds box because I wanted to keep the data in the fixed grid format.
Thanks for the script. I've run it several times with different lat/lon values and I'm not getting the error to appear on my Windows 7 machine using today's nightly. I'll give this a try on a macOS machine shortly. One thing I noticed is that after I displayed the data the from the second loadGrid (data object "d") the corner points of the display didn't match the list values (lalo1 and lalo2) specified at the beginning of the script. In order to get the correct lat/lon corner points, I had to remove the stride=2 from your first loadGrid command. If you want to display the data with a stride of 2, you can add stride=2 to your second loadGrid command. This would make your script: