[Thread Prev][Thread Next][Index]

Re: [ferret_users] Coordinates out of order or missing on axis longitude



Hi Tony,
Yes, it's the ordering 100, 180, -180, -100 that's causing the error. This is a non-standard axis; in the CF standard the coordinate values always need to be monotonic. We can see what the intent is, but it needs to be specified differently. It's easy enough to fix in Ferret.

use "http://opendap-dev-mercator.cls.fr/thredds/dodsC/mercatorPsy3v1R1v_spa_mean_best_estimate"

! If you do a SHOW DATA, you will see the variables from the file, plus one with the name of the
! misbehaving axis, which contains its coordinates. In your case it looks like there will be a variable
! called longitude.  It will have the units of the x axis from the file. You can use this variable to fix the axis

! Get the name of the axis using the RETURN=  syntax, specifying any variable from the file which has that axis.

DEFINE SYMBOL xaxname = `filevar, RETURN=xaxis`

! Use the variable that Ferret defined having the axis name to redefine the axis. 
! Here we are using xaxname as the name of the variable that Ferret created,
! and also the name of the longitude axis.

LET xunits = "`($xaxname),return=units`"
LET fix_x = IF   ($xaxname) LT 0   THEN  ($xaxname) + 360    ELSE    ($xaxname)
DEFINE AXIS/X/units=`xunits`/MODULO ($xaxname) = fix_x
  

You will get an informational message telling you that redefining an axis of a grid may alter the apparent contents of the dataset. In this case, that's exactly what you want to do.  Setting the modulo attribute and getting the units from the variable will make the definition complete.

Tony Jolibois wrote:
         Hi all,

I don't understand why ferret doesn't like the longitude of a dataset. Is it because the values of longitude are like this 100 -> 180 -> -180 -> -100 ?
When I access it the error message is

yes? use "http://opendap-dev-mercator.cls.fr/thredds/dodsC/mercatorPsy3v1R1v_spa_mean_best_estimate"
*** NOTE: Coordinates out of order or missing on axis longitude at subscript 482
*** NOTE: A dummy axis of subscripts will be used

I've send the ncdump output of the longitude of the dataset with this mail. Can someone help me ?
Regards,
Tony


longitude = 100, 100.1667, 100.3333, 100.5, 100.6667, 100.8333, 101, 101.1667, 101.3333, 101.5, 101.6667, 101.8333, 102, 102.1667, 102.3333, 102.5, 102.6667, 102.8333, 103, 103.1667, 103.3333, 103.5, 103.6667, 103.8333, 104, 104.1667, 104.3333, 104.5, 104.6667, 104.8333, 105, 105.1667, 105.3333, 105.5, 105.6667, 105.8333, 106, 106.1667, 106.3333, 106.5, 106.6667, 106.8333, 107, 107.1667, 107.3333, 107.5, 107.6667, 107.8333, 108, 108.1667, 108.3333, 108.5, 108.6667, 108.8333, 109, 109.1667, 109.3333, 109.5, 109.6667, 109.8333, 110, 110.1667, 110.3333, 110.5, 110.6667, 110.8333, 111, 111.1667, 111.3333, 111.5, 111.6667, 111.8333, 112, 112.1667, 112.3333, 112.5, 112.6667, 112.8333, 113, 113.1667, 113.3333, 113.5, 113.6667, 113.8333, 114, 114.1667, 114.3333, 114.5, 114.6667, 114.8333, 115, 115.1667, 115.3333, 115.5, 115.6667, 115.8333, 116, 116.1667, 116.3333, 116.5, 116.6667, 116.8333, 117, 117.1667, 117.3333, 117.5, 117.6667, 117.8333, 118, 118.1667, 118.3333, 118.5, 118.6667, 118.8333, 119, 119.1667, 119.3333, 119.5, 119.6667, 119.8333, 120, 120.1667, 120.3333, 120.5, 120.6667, 120.8333, 121, 121.1667, 121.3333, 121.5, 121.6667, 121.8333, 122, 122.1667, 122.3333, 122.5, 122.6667, 122.8333, 123, 123.1667, 123.3333, 123.5, 123.6667, 123.8333, 124, 124.1667, 124.3333, 124.5, 124.6667, 124.8333, 125, 125.1667, 125.3333, 125.5, 125.6667, 125.8333, 126, 126.1667, 126.3333, 126.5, 126.6667, 126.8333, 127, 127.1667, 127.3333, 127.5, 127.6667, 127.8333, 128, 128.1667, 128.3333, 128.5, 128.6667, 128.8333, 129, 129.1667, 129.3333, 129.5, 129.6667, 129.8333, 130, 130.1667, 130.3333, 130.5, 130.6667, 130.8333, 131, 131.1667, 131.3333, 131.5, 131.6667, 131.8333, 132, 132.1667, 132.3333, 132.5, 132.6667, 132.8333, 133, 133.1667, 133.3333, 133.5, 133.6667, 133.8333, 134, 134.1667, 134.3333, 134.5, 134.6667, 134.8333, 135, 135.1667, 135.3333, 135.5, 135.6667, 135.8333, 136, 136.1667, 136.3333, 136.5, 136.6667, 136.8333, 137, 137.1667, 137.3333, 137.5, 137.6667, 137.8333, 138, 138.1667, 138.3333, 138.5, 138.6667, 138.8333, 139, 139.1667, 139.3333, 139.5, 139.6667, 139.8333, 140, 140.1667, 140.3333, 140.5, 140.6667, 140.8333, 141, 141.1667, 141.3333, 141.5, 141.6667, 141.8333, 142, 142.1667, 142.3333, 142.5, 142.6667, 142.8333, 143, 143.1667, 143.3333, 143.5, 143.6667, 143.8333, 144, 144.1667, 144.3333, 144.5, 144.6667, 144.8333, 145, 145.1667, 145.3333, 145.5, 145.6667, 145.8333, 146, 146.1667, 146.3333, 146.5, 146.6667, 146.8333, 147, 147.1667, 147.3333, 147.5, 147.6667, 147.8333, 148, 148.1667, 148.3333, 148.5, 148.6667, 148.8333, 149, 149.1667, 149.3333, 149.5, 149.6667, 149.8333, 150, 150.1667, 150.3333, 150.5, 150.6667, 150.8333, 151, 151.1667, 151.3333, 151.5, 151.6667, 151.8333, 152, 152.1667, 152.3333, 152.5, 152.6667, 152.8333, 153, 153.1667, 153.3333, 153.5, 153.6667, 153.8333, 154, 154.1667, 154.3333, 154.5, 154.6667, 154.8333, 155, 155.1667, 155.3333, 155.5, 155.6667, 155.8333, 156, 156.1667, 156.3333, 156.5, 156.6667, 156.8333, 157, 157.1667, 157.3333, 157.5, 157.6667, 157.8333, 158, 158.1667, 158.3333, 158.5, 158.6667, 158.8333, 159, 159.1667, 159.3333, 159.5, 159.6667, 159.8333, 160, 160.1667, 160.3333, 160.5, 160.6667, 160.8333, 161, 161.1667, 161.3333, 161.5, 161.6667, 161.8333, 162, 162.1667, 162.3333, 162.5, 162.6667, 162.8333, 163, 163.1667, 163.3333, 163.5, 163.6667, 163.8333, 164, 164.1667, 164.3333, 164.5, 164.6667, 164.8333, 165, 165.1667, 165.3333, 165.5, 165.6667, 165.8333, 166, 166.1667, 166.3333, 166.5, 166.6667, 166.8333, 167, 167.1667, 167.3333, 167.5, 167.6667, 167.8333, 168, 168.1667, 168.3333, 168.5, 168.6667, 168.8333, 169, 169.1667, 169.3333, 169.5, 169.6667, 169.8333, 170, 170.1667, 170.3333, 170.5, 170.6667, 170.8333, 171, 171.1667, 171.3333, 171.5, 171.6667, 171.8333, 172, 172.1667, 172.3333, 172.5, 172.6667, 172.8333, 173, 173.1667, 173.3333, 173.5, 173.6667, 173.8333, 174, 174.1667, 174.3333, 174.5, 174.6667, 174.8333, 175, 175.1667, 175.3333, 175.5, 175.6667, 175.8333, 176, 176.1667, 176.3333, 176.5, 176.6667, 176.8333, 177, 177.1667, 177.3333, 177.5, 177.6667, 177.8333, 178, 178.1667, 178.3333, 178.5, 178.6667, 178.8333, 179, 179.1667, 179.3333, 179.5, 179.6667, 179.8333, 180, -179.8333, -179.6667, -179.5, -179.3333, -179.1667, -179, -178.8333, -178.6667, -178.5, -178.3333, -178.1667, -178, -177.8333, -177.6667, -177.5, -177.3333, -177.1667, -177, -176.8333, -176.6667, -176.5, -176.3333, -176.1667, -176, -175.8333, -175.6667, -175.5, -175.3333, -175.1667, -175, -174.8333, -174.6667, -174.5, -174.3333, -174.1667, -174, -173.8333, -173.6667, -173.5, -173.3333, -173.1667, -173, -172.8333, -172.6667, -172.5, -172.3333, -172.1667, -172, -171.8333, -171.6667, -171.5, -171.3333, -171.1667, -171, -170.8333, -170.6667, -170.5, -170.3333, -170.1667, -170, -169.8333, -169.6667, -169.5, -169.3333, -169.1667, -169, -168.8333, -168.6667, -168.5, -168.3333, -168.1667, -168, -167.8333, -167.6667, -167.5, -167.3333, -167.1667, -167, -166.8333, -166.6667, -166.5, -166.3333, -166.1667, -166, -165.8333, -165.6667, -165.5, -165.3333, -165.1667, -165, -164.8333, -164.6667, -164.5, -164.3333, -164.1667, -164, -163.8333, -163.6667, -163.5, -163.3333, -163.1667, -163, -162.8333, -162.6667, -162.5, -162.3333, -162.1667, -162, -161.8333, -161.6667, -161.5, -161.3333, -161.1667, -161, -160.8333, -160.6667, -160.5, -160.3333, -160.1667, -160, -159.8333, -159.6667, -159.5, -159.3333, -159.1667, -159, -158.8333, -158.6667, -158.5, -158.3333, -158.1667, -158, -157.8333, -157.6667, -157.5, -157.3333, -157.1667, -157, -156.8333, -156.6667, -156.5, -156.3333, -156.1667, -156, -155.8333, -155.6667, -155.5, -155.3333, -155.1667, -155, -154.8333, -154.6667, -154.5, -154.3333, -154.1667, -154, -153.8333, -153.6667, -153.5, -153.3333, -153.1667, -153, -152.8333, -152.6667, -152.5, -152.3333, -152.1667, -152, -151.8333, -151.6667, -151.5, -151.3333, -151.1667, -151, -150.8333, -150.6667, -150.5, -150.3333, -150.1667, -150, -149.8333, -149.6667, -149.5, -149.3333, -149.1667, -149, -148.8333, -148.6667, -148.5, -148.3333, -148.1667, -148, -147.8333, -147.6667, -147.5, -147.3333, -147.1667, -147, -146.8333, -146.6667, -146.5, -146.3333, -146.1667, -146, -145.8333, -145.6667, -145.5, -145.3333, -145.1667, -145, -144.8333, -144.6667, -144.5, -144.3333, -144.1667, -144, -143.8333, -143.6667, -143.5, -143.3333, -143.1667, -143, -142.8333, -142.6667, -142.5, -142.3333, -142.1667, -142, -141.8333, -141.6667, -141.5, -141.3333, -141.1667, -141, -140.8333, -140.6667, -140.5, -140.3333, -140.1667, -140, -139.8333, -139.6667, -139.5, -139.3333, -139.1667, -139, -138.8333, -138.6667, -138.5, -138.3333, -138.1667, -138, -137.8333, -137.6667, -137.5, -137.3333, -137.1667, -137, -136.8333, -136.6667, -136.5, -136.3333, -136.1667, -136, -135.8333, -135.6667, -135.5, -135.3333, -135.1667, -135, -134.8333, -134.6667, -134.5, -134.3333, -134.1667, -134, -133.8333, -133.6667, -133.5, -133.3333, -133.1667, -133, -132.8333, -132.6667, -132.5, -132.3333, -132.1667, -132, -131.8333, -131.6667, -131.5, -131.3333, -131.1667, -131, -130.8333, -130.6667, -130.5, -130.3333, -130.1667, -130, -129.8333, -129.6667, -129.5, -129.3333, -129.1667, -129, -128.8333, -128.6667, -128.5, -128.3333, -128.1667, -128, -127.8333, -127.6667, -127.5, -127.3333, -127.1667, -127, -126.8333, -126.6667, -126.5, -126.3333, -126.1667, -126, -125.8333, -125.6667, -125.5, -125.3333, -125.1667, -125, -124.8333, -124.6667, -124.5, -124.3333, -124.1667, -124, -123.8333, -123.6667, -123.5, -123.3333, -123.1667, -123, -122.8333, -122.6667, -122.5, -122.3333, -122.1667, -122, -121.8333, -121.6667, -121.5, -121.3333, -121.1667, -121, -120.8333, -120.6667, -120.5, -120.3333, -120.1667, -120, -119.8333, -119.6667, -119.5, -119.3333, -119.1667, -119, -118.8333, -118.6667, -118.5, -118.3333, -118.1667, -118, -117.8333, -117.6667, -117.5, -117.3333, -117.1667, -117, -116.8333, -116.6667, -116.5, -116.3333, -116.1667, -116, -115.8333, -115.6667, -115.5, -115.3333, -115.1667, -115, -114.8333, -114.6667, -114.5, -114.3333, -114.1667, -114, -113.8333, -113.6667, -113.5, -113.3333, -113.1667, -113, -112.8333, -112.6667, -112.5, -112.3333, -112.1667, -112, -111.8333, -111.6667, -111.5, -111.3333, -111.1667, -111, -110.8333, -110.6667, -110.5, -110.3333, -110.1667, -110, -109.8333, -109.6667, -109.5, -109.3333, -109.1667, -109, -108.8333, -108.6667, -108.5, -108.3333, -108.1667, -108, -107.8333, -107.6667, -107.5, -107.3333, -107.1667, -107, -106.8333, -106.6667, -106.5, -106.3333, -106.1667, -106, -105.8333, -105.6667, -105.5, -105.3333, -105.1667, -105, -104.8333, -104.6667, -104.5, -104.3333, -104.1667, -104, -103.8333, -103.6667, -103.5, -103.3333, -103.1667, -103, -102.8333, -102.6667, -102.5, -102.3333, -102.1667, -102, -101.8333, -101.6667, -101.5, -101.3333, -101.1667, -101, -100.8333, -100.6667, -100.5, -100.3333, -100.1667, -100, -99.83334, -99.66669, -99.5, -99.33334, -99.16669, -99, -98.83334, -98.66669, -98.5, -98.33334, -98.16669, -98, -97.83334, -97.66669, -97.5, -97.33334, -97.16669, -97, -96.83334, -96.66669, -96.5, -96.33334, -96.16669, -96, -95.83334, -95.66669, -95.5, -95.33334, -95.16669, -95, -94.83334, -94.66669, -94.5, -94.33334, -94.16669, -94, -93.83334, -93.66669, -93.5, -93.33334, -93.16669, -93, -92.83334, -92.66669, -92.5, -92.33334, -92.16669, -92, -91.83334, -91.66669, -91.5, -91.33334, -91.16669, -91, -90.83334, -90.66669, -90.5, -90.33334, -90.16669, -90, -89.83334, -89.66669, -89.5, -89.33334, -89.16669, -89, -88.83334, -88.66669, -88.5, -88.33334, -88.16669, -88, -87.83334, -87.66669, -87.5, -87.33334, -87.16669, -87, -86.83334, -86.66669, -86.5, -86.33334, -86.16669, -86, -85.83334, -85.66669, -85.5, -85.33334, -85.16669, -85, -84.83334, -84.66669, -84.5, -84.33334, -84.16669, -84, -83.83334, -83.66669, -83.5, -83.33334, -83.16669, -83, -82.83334, -82.66669, -82.5, -82.33334, -82.16669, -82, -81.83334, -81.66669, -81.5, -81.33334, -81.16669, -81, -80.83334, -80.66669, -80.5, -80.33334, -80.16669, -80 ;

[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement