[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #TLW-910405]: Additional group questions F90



I suspect that the group name is actually 'mol_lay'
and not 'group mol_lay' You should include the 'group'
keyword as part of the group name.


> Full Name: Lena Iredell
> Email Address: address@hidden
> Organization: NASA
> Package Version: netcdf-4.4.1
> Operating System: F90
> Hardware: linux
> Description of problem: I'm trying to find out information about group data. 
> When doing a ncdump I see that there are 4 subgroups. Is there a ncdump 
> command that gives the "ncid" number for the groups? My program:
> 
> The ncid of the main file is 65536.
> 
> status = nf90_inq_ncid(ncid,'group mol_lay', grp_ncid1)
> print *,' group mol_lay '
> print *,' nf90_inq_ncid ',status
> print *,' grp_ncid1 ',grp_ncid1
> 
> with all the parameters declared integer.
> Here is the result that I see:
> 
> 
> group mol_lay
> nf90_inq_ncid         -125
> grp_ncid1            0
> 
> What am I doing wrong?
> 
> This is the documentation from your web page:
> 3.1 Find a Group ID: NF90_INQ_NCID
> 
> Given an ncid and group name (NULL or "" gets root group), return ncid of the 
> named group.
> Usage
> 
> function nf90_inq_ncid(ncid, name, grp_ncid)
> integer, intent(in) :: ncid
> character (len = *), intent(in) :: name
> integer, intent(out) :: grp_ncid
> integer :: nf90_inq_ncid
> 
> NCID
> The group id for this operation.
> NAME
> A character array that holds the name of the desired group. Must be less then 
> NF90_MAX_NAME.
> GRPID
> The ID of the group will go here.
> 
> Errors
> 
> NF90_NOERR
> No error.
> NF90_EBADID
> Bad group id.
> NF90_ENOTNC4
> Attempting a netCDF-4 operation on a netCDF-3 file. NetCDF-4 operations can 
> only be performed on files defined with a create mode which includes flag 
> HDF5. (see NF90_OPEN).
> NF90_ESTRICTNC3
> This file was created with the strict netcdf-3 flag, therefore netcdf-4 
> operations are not allowed. (see NF90_OPEN).
> NF90_EHDFERR
> An error was reported by the HDF5 layer.
> 
> Example
> 
> This example is from nf90_test/ftst_groups.F.
> 
> However the "Example" is not a active link. I can't see the code. It looks as 
> though your error messages are characters, not integers?
> 
> Thanks for your help!!!!
> 
> 
> 

=Dennis Heimbigner
  Unidata


Ticket Details
===================
Ticket ID: TLW-910405
Department: Support netCDF
Priority: Normal
Status: Open
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.