/[MITgcm]/MITgcm/pkg/mnc/README.txt
ViewVC logotype

Diff of /MITgcm/pkg/mnc/README.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by edhill, Mon Jan 5 06:20:07 2004 UTC revision 1.2 by edhill, Tue Jan 6 23:19:27 2004 UTC
# Line 1  Line 1 
1    
2    API Discussions:
3    ================
4    
5  As discussed in our group meeting of 2003-12-17 (AJA, CNH, JMC, AM,  As discussed in our group meeting of 2003-12-17 (AJA, CNH, JMC, AM,
6  PH, EH3), the NetCDF interface should resemble the following FORTRAN  PH, EH3), the NetCDF interface should resemble the following FORTRAN
7  subroutines:  subroutines:
# Line 34  using a simple interface such as: Line 37  using a simple interface such as:
37    
38    MNC_INIT(              myThid )    MNC_INIT(              myThid )
39    
40      MNC_FILE_CREATE(       myThid, fname )
41    MNC_FILE_OPEN(         myThid, fname, itype )    MNC_FILE_OPEN(         myThid, fname, itype )
42    MNC_FILE_ADD_ATTR_STR( myThid, fname, atname, sval )    MNC_FILE_ADD_ATTR_STR( myThid, fname, atname, sval )
43    MNC_FILE_ADD_ATTR_INT( myThid, fname, atname, ival )    MNC_FILE_ADD_ATTR_INT( myThid, fname, atname, ival )
# Line 42  using a simple interface such as: Line 46  using a simple interface such as:
46    MNC_FILE_READ_HEADER(  myThid, fname )    MNC_FILE_READ_HEADER(  myThid, fname )
47    
48    MNC_DIM_INIT(          myThid, dname, dunits, dlen )    MNC_DIM_INIT(          myThid, dname, dunits, dlen )
49      MNC_DIM_REMOVE(        myThid, dname )
50    
51    MNC_GRID_INIT(         myThid, fname, gname, ndim, dnames )    MNC_GRID_INIT(         myThid, fname, gname, ndim, dnames )
52    MNC_GRID_SET_XY_1DLL(  myThid, fname, gname, lats, lons )    MNC_GRID_SET_LL(       myThid, fname, gname, type, lats, lons )
   MNC_GRID_SET_XY_2DLL(  myThid, fname, gname, lats, lons )  
53    
54    MNC_VAR_INIT_DBL(      myThid, fname, gname, vname, fillval )    MNC_VAR_INIT_DBL(      myThid, fname, gname, vname, fillval )
55    MNC_VAR_INIT_REAL(     myThid, fname, gname, vname, fillval )    MNC_VAR_INIT_REAL(     myThid, fname, gname, vname, fillval )
# Line 62  using a simple interface such as: Line 66  using a simple interface such as:
66  The above interface is powerful yet easy to use (easier than the  The above interface is powerful yet easy to use (easier than the
67  entire NetCDF interface) since it helps the user keep track of the  entire NetCDF interface) since it helps the user keep track of the
68  associations between files, "grids", variables, and dimensions.  associations between files, "grids", variables, and dimensions.
69    
70    
71    To-Do:
72    ======
73    
74     1) CNH pointed out that grid interpolation needs to be handled
75        "on-the-fly" since pre-processing would result in overly large
76        input files.  We need an interpolation API...

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.22