Re: plotting missing values [message #86793 is a reply to message #86792] |
Wed, 04 December 2013 05:22   |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
Hello,
On 12/04/13 03:57, Fabien wrote:
> On 04.12.2013 02:00, David Fanning wrote:
>> Well, I've made changes over time that people who "say" they using
>> netCDF4 files have been happy with. I'm not currently working with
>> netCDF4 files, so I don't know for sure whether more is needed.
>
> NCDF_FILE is compatible with netCDF4 features (read, create, compression
> options). I just tried NCDF_BROWSER and it seems to work on my NetCDF4
> files too.
My netcdf4 files are replete with groups. Each group is self contained
and written by a separate object method - either as a subgroup (or
subsubgroup), or as a single file in its own right (all the processing
and writing code is Fortran2003, not IDL).
This flexibility is needed since all the subgroups are optional (e.g.
microwave sensors won't have non-LTE data, and infrared sensors won't
have antenna correction data).
All the datafile viewing code is IDL - but my simple netCDF reader
doesn't grok netcdf4.
Here is a (heavily truncated) ncdump of one of my files:
-----%<-----
netcdf amsua_metop-a.SpcCoeff {
// global attributes:
:write_module_history = "$Id: ..." ;
:creation_date_and_time = "2013/10/16, ..." ;
:Release = 9 ;
:Version = 1 ;
:Title = "Spectral coefficients for MetOp-A AMSU-A" ;
:History = "$Id: ..." ;
:Comment = "Converted from ..." ;
group: spccoeff {
group: sensorinfo {
} // group sensorinfo
group: accoeff {
group: sensorinfo {
} // group sensorinfo
} // group accoeff
} // group spccoeff
}
-----%<-----
Only the global attributes are read in with ncdf_data. When I click the
"Read Entire File" button I get:
IDL> ncdf_browser, 'amsua_metop-a.SpcCoeff.nc'
IDL>
A variable named "data" has been created at the main IDL level.
IDL> help, data
** Structure <1d6dc28>, 2 tags, length=120, data length=120, refs=1:
_FILENAME STRING 'amsua_metop-a.SpcCoeff.nc'
_GLOBAL_ATTR STRUCT -> <Anonymous> Array[1]
IDL> help, data._global_attr
** Structure <2013138>, 8 tags, length=104, data length=104, refs=2:
NCDF_FILENAME STRING 'amsua_metop-a.SpcCoeff.nc'
WRITE_MODULE_HISTORY
STRING '$Id: SpcCoeff_netCDF_IO.f90 '...
CREATION_DATE_AND_TIME
STRING '2013/10/16, 15:05:07 -0400UTC'
RELEASE LONG 9
VERSION LONG 1
TITLE STRING 'Spectral coefficients for '...
HISTORY STRING '$Id: SpcCoeff_Convert.f90 32636'...
COMMENT STRING 'Converted from Release-8 format'...
cheers,
paulv
|
|
|