Questions tagged [ncml]

NcML is an XML representation of the metadata in netCDF, a data model and file format for scientific data.

The NetCDF Markup Language (NcML) is an XML dialect that enables users to create and manipulate many different scientific files, using Unidata's Common Data Model (CDM), which is based on netCDF. NcML is maintained by the Unidata Program Center at the University Corporation for Atmospheric Research.

15 questions
22
votes
2 answers

How to get the parent node name of the current node?

what's the right syntax to get the current node's parent node's name? I know it's about the AxisName parent but what's the right syntax? for example of the following xml
user851380
  • 339
  • 1
  • 7
  • 10
4
votes
1 answer

Can multiple collections of NetCDF files be aggregated using NcML?

I've got 40 NetCDF files that all constitute one simulation from an ocean model. The time series of data for each variable is split into multiple files, so that the directory listing looks like this: $ ls ./output/*.nc 1_hvel.nc 3_hvel.nc…
Rich Signell
  • 14,842
  • 4
  • 49
  • 77
3
votes
2 answers

regExp for matching directories

I have a somewhat complex directory structure for NetCDF files I want to create a THREDDS catalog for. /data/buoy/A0121/realtime/A0121.met.realtime.nc /A0121.waves.realtime.nc …
Eric Bridger
  • 3,751
  • 1
  • 19
  • 34
3
votes
5 answers

Using NCML to reduce dimensions in netCDF file

I'm trying to use NCML to 'convert' a CF-1.4 file to CF-1.6. Of particular interest is how to 1) remove dimensions and then 2) change the dimensions of variables. For example, below are the top portions (ncdump) of two netCDF files. The first is…
JimP
  • 83
  • 5
2
votes
1 answer

how to accumulate the value of position() function in xslt

I have this xml file
user851380
  • 339
  • 1
  • 7
  • 10
2
votes
2 answers

How to create a netCDF-4 file with a variable length variable from ncml?

I'm trying to write a netCDF-4 file with a variable length variable. Ideally I'd have used the ncgen utility, but it does not support ncml input. Therefore, I'm using the netCDF-java lib 4.6.6. The following ncml without a variable length variable…
Bash Frank
  • 35
  • 4
2
votes
1 answer

Using ncml to aggregate netcdf files?

We have hourly output from an ocean model stored in a series of netcdf files, one for each month. We store the first and last hour of the month in each file. We would like to aggregate these files using NcML, but we don't want to get duplicate time…
Aaron
  • 23
  • 3
1
vote
2 answers

how to select two nodes at one select statement

I have a xml file like this
user851380
  • 339
  • 1
  • 7
  • 10
1
vote
0 answers

Multifile or NcML reader for NetCDF4 in Python

I would like to find a way in Python to aggregate over the slow index (time) of a NetCDF dataset with dimensions (time,y,x) where the files store blocks of time. Apparently NetCDF4-python do this for a NetCDF4 classic file or NetCDF3, but the files…
Eli S
  • 1,379
  • 4
  • 14
  • 35
1
vote
0 answers

Possible to add attributes via NcML to non-cached THREDDS datasets?

For several years on our THREDDS Data Server (TDS) we've been happily using the cache="false" functionality on datasetRoot to tell the TDS not to cache several netcdf files.
Rich Signell
  • 14,842
  • 4
  • 49
  • 77
1
vote
1 answer

NcML aggregation of remote 3D and 4D variables?

Can NcML be used to aggregate 3D and 4D grids? I wasn't sure since they differ in the number of dimensions. e.g. sea surface height (ssh) and water temperature, where ssh has three dimensions [time, lat, lon] and temp has four dimensions [time,…
John Maurer
  • 123
  • 1
  • 9
1
vote
2 answers

Is there a hardwired limit to the NcML/THREDDS values element?

Is there a limit to the size or number of entries that can be placed within the values NcML element? I'm attempting to get a set of NetCDF files without lon/lat variables - but with x/y variables - to be read as a featureCollection by adding NcML…
0
votes
2 answers

NcML aggregation of remote THREDDS catalog

I want to aggregate all files within a specific directory of a remote THREDDS catalog. These are grib2 files for nam forecast. This is the main list of directories for each month. Here is my ncml file for the aggregation of this catalog of…
Sia
  • 207
  • 2
  • 9
0
votes
1 answer

Write netcdf-4 file

I'm trying to write a Netcdf-4 file from a Dataset model, following this http://www.unidata.ucar.edu/software/thredds/current/netcdf-java/tutorial/NetcdfWriting.html resulting in the following code: NetcdfDataset model =…
republicca
  • 43
  • 1
  • 8
0
votes
1 answer

Get NcML from OPeNDAP server

Unidata's ToolsUI (java GUI program) can generate NcML from OPeNDAP dataset link, and ncdump command line utility can too. I'm wondering if it's possible to output NcML from web service, either as OPeNDAP feature or a separate web service that can…
theta
  • 24,593
  • 37
  • 119
  • 159