Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #KWE-346293]: degrees_east > 180 plots off map!



Hi Rich-

> On Tue, Apr 15, 2008 at 5:30 PM, Unidata IDV Support
> <support-idv@xxxxxxxxxxxxxxxx> wrote:
> 
> >  It's really that the map lines go from -180 to 180 and the data
> >  goes from 0-360.  Depending on the projection, one will not
> >  line up.
> 
> Ah, okay.

Let me explain that a bit more.  The map projection from the
data is based on the range of the longitude values in the data.
In your case, you have values > 180.  The  map lines are in
-180 to 180.  So, the map projection is going to be to the
right of the map lines:

-180       180  200+(your area)

     map        data

However, when you change the data to be in the -180 to 180 range,
then both are within the same bounds.

(not sure if that clears it up or makes it more  confusing).

> >
> >  > If would be nice if IDV did this so I didn't have to!
> >
> >  That would be nice. ;-)
> >
> >  > http://stellwagen.er.usgs.gov/models/share/peru.ncml
> >
> >  That dataset only goes to about -160.  Is that the correct
> >  link?  I'm not sure I'm understanding the problem you are seeing
> >  with this example.
> 
> If you delete the line in the NcML where I overwrote the Longitude
> values you will see the problem.

I've put a check in there to see if the bounds of the map
projection fall within 0-360 or -180 to 180.  Based on that
I normalize all longitudes to fit in that range.  I've got
a lot of testing to do, but this might just work.  Thanks
for the suggestion.

Don


Ticket Details
===================
Ticket ID: KWE-346293
Department: Support IDV
Priority: Normal
Status: Open


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690