Opened 15 years ago

Last modified 15 years ago

#61 reopened enhancement

trouble with xxx

Reported by: pinsard Owned by: somebody
Priority: blocker Milestone: provide usefull and beautifull documentations
Component: component1 Version:
Keywords: netcdf xxx Cc:


I would like to plot data from a file with following netcdf attributes

        la = 180 ;
        lo = 360 ;
        double la(la) ;
        double lo(lo) ;
        double cond_sed(la, lo) ;
                cond_sed:units = "siemens" ;
        double cond_oc(la, lo) ;
                cond_oc:units = "siemens" ;
        double cond_tot(la, lo) ;
                cond_tot:units = "siemens" ;
        double Br(la, lo) ;
                Br:units = "tesla" ;

// global attributes:
                :description = "Conductance and magnetic field (from Rob)" ;
                :author = "Frederic Vivier" ;
                :date = "July 9, 2003" ;

When I do

IDL> xxx,''

I have the following error message :

the xaxis was not found, check the use of XAXISNAME keyword
% Stop encountered: INITNCDF          131 /Users/fplod/SAXO_DIR_ws/SRC/ToBeReviewed/INIT/

Can you give me some advice either on xxx usage or on changes that I can made in to make it plotable xxx ?

Change History (2)

comment:1 Changed 15 years ago by smasson

  • Resolution set to fixed
  • Status changed from new to closed

initncdf was not able to find automatically the name of the variable containing the x axis values.
As said by the error message, you should use the keyword XAXISNAME of initncdf to specified which variable should be used. Thanks to _extra (and other tricks!) you can directly use this keyword when calling xxx. So something like:

IDL> xxx,'', XAXISNAME = 'lo', YAXISNAME = 'la'

should work...

comment:2 Changed 15 years ago by pinsard

  • Resolution fixed deleted
  • Status changed from closed to reopened

Sorry but the solution you gave me do not solve my problem.
I have new error message :

IDL> xxx,'./',XAXISNAME='lo',YAXISNAME='la'
% L.112 /Users/fplod/SAXO_DIR_ws/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/ none of the dimensions name matches one of the following regular expression:
% L.112 /Users/fplod/SAXO_DIR_ws/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/ 'longitude', 'lon', 'x', 'longitude*', 'lon*', 'x*', '*longitude*', '*lon*', '*x*'
% L.112 /Users/fplod/SAXO_DIR_ws/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/  => we cannot find the x dimension
% Stop encountered: SCANFILE          115 /Users/fplod/SAXO_DIR_ws/SRC/ToBeRevi

If you want to make some test, is available in cerbere:/usr/home/fplod/incas/geomag/geomag_ws/.

Note: See TracTickets for help on using tickets.