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

subscript ranges

netCDF says all subscript ranges are 1:n for Fortran, 0:n-1 for C.
Let us consider a minor extension to specify the logical subscript range
in the file.  I am doing this via an attribute consisting of pairs of integers,
but maybe there is some legitimacy to be recognized.

Thirty years ago, Algol's array limits had both lower and upper limits, as in
1982:1987 for yearly stock market data. Derivative languages like Pascal
and Modula also.  Even fortran 77 grudgingly allows phi(0:n) for my
electric potentials defined in the physical interval (0,n*dx),
and (-m+1:m) for my Fourier coefficients --just like the sum limits in the
equations in the reports.  Why not?  (Not in C? Yeah, well that's C)

All I'm suggesting is that the file legitimize the "self-description" that
the natural subscript range not start necessarily at 0 (C) and 1 (Fortran).

Actually, writing this reminded me that netCDF doesn't recognize in the
self-description the existence of complex-valued quantities, another concept
popular for some time.

------
I am very encouraged by the development and availability of netCDF and HDF,
and building on both that is happening.


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community 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