Skip to content
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

Duplicate longitude wrap #1736

Merged
merged 1 commit into from
Dec 23, 2015
Merged

Duplicate longitude wrap #1736

merged 1 commit into from
Dec 23, 2015

Conversation

danlipsa
Copy link
Contributor

No description provided.

@@ -609,6 +609,8 @@ def project(pts, projection, wc, geo=None):
pname = projDict.get(projection._type, projection.type)
projName = pname
pd.SetName(projName)
pd.SetOptionalParameter("over", "true")
pd.SetCentralMeridian(float(xm + xM) / 2.0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danlipsa what about case where user specified the central meridian?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just seen your post about this. I'll look at it and use that value instead.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danlipsa what about case where user specified the central meridian?

@doutriaux1 that what was the question @danlipsa asked in the issue. How does someone specify that in vcs?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aashish24 I replied to @danlipsa he's on it. Thx.

@aashish24
Copy link
Contributor

thanks @doutriaux1

@danlipsa when you make a pull request which has new baselines, could you please reference to the data pull request as well?

CDAT/uvcdat-testdata#96

@aashish24
Copy link
Contributor

@doutriaux1 once this and the clipped data (and two of yours merged in) we should finalize the release.. what you think?

@doutriaux1 doutriaux1 mentioned this pull request Dec 14, 2015
@doutriaux1
Copy link
Contributor

@sankhesh was VERY close from getting XCode 7 in, I would like to have this in as well!

@danlipsa danlipsa force-pushed the duplicate-longitude-wrap branch 4 times, most recently from f68d2f9 to 1412d21 Compare December 16, 2015 18:40
@aashish24
Copy link
Contributor

@danlipsa some tests arw failing. Are you lookinf intonit?

@danlipsa
Copy link
Contributor Author

@aashish24 @sankhesh @doutriaux1 This is strange. For some machines all test pass, for some there are 85 tests failing. I don't see what is different about the machines that fail. Any ideas?

@doutriaux1
Copy link
Contributor

weird I was going to say "MESA" but no. Very odd. But most machines fail though.

@sankhesh
Copy link
Contributor

I'm compiling on my Mac to see if I can reproduce those issues. Hopefully I can.

@danlipsa
Copy link
Contributor Author

@doutriaux1 @aashish24 At least on https://open.cdash.org/viewTest.php?onlyfailed&buildid=4151636
seems to be a problem with the baselines
https://open.cdash.org/testDetails.php?test=402903788&build=4151636
has the wrong baseline.
Unfortunatelly it has the wrong test image as well.

@danlipsa
Copy link
Contributor Author

@aashish24 @doutriaux1 Thanks @sankhesh for building uvdat on your mac laptop and duplicating the problem. It seems that proj4 behaves differently on that build. Removing +over option fixes the problem for the -3 projection. I am building uvcdat on my mac laptop to debug the proj4 behavior.

@danlipsa
Copy link
Contributor Author

@aashish24 @sankhesh @doutriaux1 I have a hard time building uvcdat on my mac. One problem is that cdtime and cdms2 tried to link against libpng15 which did not exist on my system. I fixed this by changing the link command to link to libpng. Now I get:

ImportError: dlopen(/Users/danlipsa/uvcdat/build/install/Externals/lib/python2.7/site-packages/vtk/vtkCommonCorePython.so, 2): Library not loaded: libvtkCommonCorePython27D-6.3.1.dylib
Referenced from: /Users/danlipsa/uvcdat/build/install/Externals/lib/python2.7/site-packages/vtk/vtkCommonCorePython.so
Reason: image not found

However that library is in:
ls -l install/Externals/lib/libvtkCommonCorePython27D-6.3.dylib
lrwxr-xr-x 1 danlipsa staff 37 Dec 17 19:09 install/Externals/lib/libvtkCommonCorePython27D-6.3.dylib -> libvtkCommonCorePython27D-6.3.1.dylib
Any suggestions?

@danlipsa
Copy link
Contributor Author

OK, I can reproduce the proj4 problem on my laptop. The build problem I was seeing (libvtkCommonCorePython27D) is still there but that appears only when you run the test through runtest. If you run it directly through python it works fine.

@aashish24
Copy link
Contributor

@aashish24 @sankhesh @doutriaux1 I have a hard time building uvcdat on my mac. One problem is that cdtime and cdms2 tried to link against libpng15 which did not exist on my system. I fixed this by changing the link command to link to libpng. Now I get:

@danlipsa you have to install xquartz (https://github.com/UV-CDAT/uvcdat/wiki/Install-on-Mac-OS-X) and then make sure you build from scratch (and remove any workardounds that you may have).

@danlipsa
Copy link
Contributor Author

Thanks @aashish24 I used xwindows installed with mac port. I will try with xquarts.

We pass two additional options to proj4
+over to not wrap longitude values
+lon_0 to set the central meridian

This fixes the wrapping issues we were seeing.
@aashish24
Copy link
Contributor

@danlipsa the mangling will be a problem since I won't have time tomorrow to look into it. the code to transition to newer proj4 is there. We would also need to build proj4 as well.

@danlipsa
Copy link
Contributor Author

@doutriaux1 Are the buildbots ok? They been running for more than 24 hours.

@doutriaux1
Copy link
Contributor

I think sometihng got stuck, I'm updating the bots system to timeout.

doutriaux1 added a commit that referenced this pull request Dec 23, 2015
@doutriaux1 doutriaux1 merged commit 07a5590 into master Dec 23, 2015
@doutriaux1 doutriaux1 deleted the duplicate-longitude-wrap branch December 23, 2015 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants