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
netcdf error #34
Comments
If you turn on |
Could you please let me know which file need to be changed? |
I found it and turn it on as It shows like this.
|
I think this error is real one.
|
I hope this one is really one.
|
This is gdalinfo for one of the files in the timeslice.
|
--stats
|
--noct
|
-stats -noct
|
This line:
Should be more like:
What version of GDAL is it? Mine is:
|
This is the gdal version of docker container.
|
I see. And you're right, those lines are in the output you posted. The output must be different when it runs in the task pipeline. Here is a patch you can use to print the actual last 10 lines if there's an error. diff --git a/src/storagemanager/src/org/vpac/ndg/task/FileStatistics.java b/src/storagemanager/src/org/vpac/ndg/task/FileStatistics.java
index aee4ba5..882d231 100644
--- a/src/storagemanager/src/org/vpac/ndg/task/FileStatistics.java
+++ b/src/storagemanager/src/org/vpac/ndg/task/FileStatistics.java
@@ -148,7 +148,18 @@ public class FileStatistics extends Task {
}
if (foundCount < 4) {
- throw new TaskException("Unable to extract statistics from gdalinfo output");
+ StringBuilder sb = new StringBuilder();
+ int start = lines.length - 11;
+ if (start < 0)
+ start = 0;
+ for (int i = start; i < lines.length; i++) {
+ if (i > start)
+ sb.append("\n");
+ sb.append(lines[i]);
+ }
+ throw new TaskException(String.format(
+ "Unable to extract statistics from gdalinfo output."
+ + "Last 10 lines were\n %s", sb.toString()));
}
|
After inserting logging this error came out.
|
Ok! So min and max are zero, so there can be no standard deviation - I guess this prevents the The coordinates are possibly weird, too. If I run this: gdalinfo -noct -stats /var/lib/ndg/storagepool/boundaries_m100/2014-01-01T00-00-00.000/LGA_tile_x1_y1.nc Then I get:
etc. So, perhaps the VRT file is not being created properly. See if you can find the temporary directory it's working in, and have a look at the |
In an earlier comment you said something about
So maybe |
So the temp directory means setting in the rsa.xml, right? And for the projection and resolution, do you mean this?
|
Part of the reason this is so hard to debug is that the temporary directory gets deleted after the task has finished (even if it errors). That projection information is not right for this project. It should be: <targetSrsEpsgId>3111</targetSrsEpsgId>
<gridOriginPointInTargetSrs>
<x class="double">2000000</x>
<y class="double">2900000</y>
</gridOriginPointInTargetSrs>
<upPositive>true</upPositive>
<filelockingOn>false</filelockingOn> |
I wrote logs on near the error spots. It says
|
Alex, after patch your code, I faced build error like this
|
One more step to go. Here is the error message. Could you please have a look of it?
|
This might happen if the source dataset has no tiles in the requested spatial extents. Please check that:
|
Hi Jin, is this issue fixed? Alex |
Yes, it's fixed. |
Hi all,
I am trying to import LGA and SA3 data to landblade, but during the processing there are some errors invoked.
Here is the message coming out from lb-importer.
But the actual error is coming out from SpatialCubeService.
The text was updated successfully, but these errors were encountered: