First, you need to verify where the data are with respect to longitude.  At
the actual value or in between.  netCDF doesn't understand such
distinctions and sadly, a lot of earth science data ignores the issue.  If
the former, then you have a gap.  You can use Slab to replicate the last
"column", Mark->Compute-Unmark to move it, and CollectMultiGrid to place it
on the other end.  That's not the only way to do this.  Another is to use
Construct to make the correct grid and then fill it from the data you read
in and duplicating the extra "column".

If the latter, then are the data cell-centered?  If so, the use Post to
convert via Interpolation.  Alternatively, I have a macro in the old
bonuspak (ConvertToCellCentered) I put together to help address this common
problem.  You can get at it from
http://www.research.ibm.com/dx/bonuspak/html/bonuspak312.html
(http://www.research.ibm.com/dx/bonuspak/contrib/macros/ConvertToCellCentered.net)



Patrick Joeckel <[EMAIL PROTECTED]>@opendx.watson.ibm.com on
04/04/2002 08:17:55 AM

Please respond to [email protected]

Sent by:    [EMAIL PROTECTED]


To:    [email protected]
cc:
Subject:    [opendx-users] close connections / modulo axis



Dear OpenDX Users,

can someone help me with the following problem?

I successfully import 3-D data from a netCDF file. The data positions
are geographic coordinates (irregularly spaced)
between x=-87 and x=+87 (latitude), between y=0 and y=355 (longitude),
and on n levels.
The connections are regular (a mesh-array with 32 x 64 x n items).
If I now warp this data onto a sphere, there is a gap at
y=0 <--> y=360 longitude.

How can I tell openDX to close this gap. If I understand the data model
right,
this should be possible by 'simply' adding a 'connection' in y-direction,
so that openDX can interpolate between 355 and 0.
How can this be done with the available modules, or is there another
solution?


SIncerely,

            Patrick Joeckel


--
---------------------------------------------------------------
Dr. Patrick Joeckel
Max Planck Institute for Chemistry
Joh.-J. Becher Weg 27
55128 Mainz                   phone:++49-6131-305452
Germany                       fax  :++49-6131-305436
                             e-mail:[EMAIL PROTECTED]
                         http://www.mpch-mainz.mpg.de/~joeckel
---------------------------------------------------------------
Never trust an operating system you don't have sources for.


Reply via email to