Opened 18 years ago

Last modified 17 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:

Description

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

dimensions:
        la = 180 ;
        lo = 360 ;
variables:
        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,'condmag.nc'

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/initncdf.pro

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

Change History (2)

comment:1 Changed 18 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,'condmag.nc', XAXISNAME = 'lo', YAXISNAME = 'la'

should work...

comment:2 Changed 17 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,'./condmag.nc',XAXISNAME='lo',YAXISNAME='la'
% L.112 /Users/fplod/SAXO_DIR_ws/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/scanfile.pro: 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/scanfile.pro: 'longitude', 'lon', 'x', 'longitude*', 'lon*', 'x*', '*longitude*', '*lon*', '*x*'
% L.112 /Users/fplod/SAXO_DIR_ws/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/scanfile.pro:  => we cannot find the x dimension
% Stop encountered: SCANFILE          115 /Users/fplod/SAXO_DIR_ws/SRC/ToBeRevi
  ewed/WIDGET/AUTOUR_de_XXX/scanfile.pro

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

Note: See TracTickets for help on using tickets.