You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -482,7 +484,7 @@ The aggregation element allows multiple datasets to be combined into a single lo
482
484
**promoteGlobalAttribute** element.
483
485
4. Specify which variables should be cached (outer aggregation only) with a **cacheVariable** element.
484
486
5. Nested **netcdf** datasets can be explicitly listed.
485
-
6. Nested netcdf datasets can be implictly specified with a **scan** element.
487
+
6. Nested netcdf datasets can be implicitly specified with a **scan** element.
486
488
7. The scan directory **location**.
487
489
8. If you specify a **regExp**, only files with whose full pathnames match the regular expression will be included.
488
490
9. If you specify a **suffix**, only files with that ending will be included. A regExp attribute will override, that is,
@@ -495,17 +497,18 @@ The aggregation element allows multiple datasets to be combined into a single lo
495
497
13. You can optionally specify that the files should be opened in **enhance** mode (default is *None*).
496
498
Generally you should do this if the ncml needs to operate on the dataset after the CoordSysBuilder has augmented it.
497
499
Otherwise, you should not enhance.
498
-
14. A specialized **scanFmrc** element can be used for a forecastModelRunSingleCollection aggregation, where forecast
500
+
14.**numericTimeSettings** is used in conjunction with **dateFormatMark** to create a numeric, UDUNITS compatible aggregated time variable. See more below.
501
+
15. A specialized **scanFmrc** element can be used for a forecastModelRunSingleCollection aggregation, where forecast
499
502
model run data is stored in multiple files, with one forecast time per file.
500
-
15. For scanFmrc, the run date and the forecast date is extracted from the file pathname using a **runDateMatcher** and
503
+
16. For scanFmrc, the run date and the forecast date is extracted from the file pathname using a **runDateMatcher** and
501
504
either a **forecastDateMatcher** or a **forecastOffsetMatcher** attribute. See more below.
502
-
16. You must specify an **aggregation type**.
503
-
17. For all types except joinUnion, you must specify the **dimension name** to join.
504
-
18. The **recheckEvery** allows you to rescan periodically to see if the set of files has changed.
505
-
19. Only for *joinExisting* and *forecastModelRunCollection* types: if **timeUnitsChange** is set to true, the units of the
505
+
17. You must specify an **aggregation type**.
506
+
18. For all types except joinUnion, you must specify the **dimension name** to join.
507
+
19. The **recheckEvery** allows you to rescan periodically to see if the set of files has changed.
508
+
20. Only for *joinExisting* and *forecastModelRunCollection* types: if **timeUnitsChange** is set to true, the units of the
506
509
joined coordinate variable may change, so examine them and do any appropriate conversion so that the aggregated
507
510
coordinate values have consistent units.
508
-
20. Experimental, do not use.
511
+
21. Experimental, do not use.
509
512
510
513
##### DateFormatMark
511
514
A **dateFormatMark** is used on joinNew types to create date coordinate values out of the filename. It consists of a
@@ -521,6 +524,16 @@ A **dateFormatMark** is used on joinNew types to create date coordinate values o
521
524
in which case the coordinate values of the time can be created from the filename, instead of having to open each file
522
525
and read it.
523
526
527
+
##### numericTimeSettings
528
+
**numericTimeSettings** can be combined with a **dateFormatMark** to produce a numeric, UDUNITS compatible time variable.
529
+
**numericTimeSettings** consists of a data type plus a UDUNITS compatible time unit.
530
+
Care must be taken when choosing these parameters to prevent truncation.
Copy file name to clipboardExpand all lines: docs/src/site/pages/netcdfJava_tutorial/ncml/NcmlAggregation.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -235,6 +235,7 @@ These are the ways that coordinate values may be assigned to a `joinExisting` co
235
235
</aggregation>
236
236
~~~
237
237
* If there is exactly one time slice in each file of the `joinExisting` aggregation, and you are using a scan element to dynamically scan the files in a directory, then you can use the `dateFormatMark` attribute to derive the date from the filename.
238
+
* You can combine `dateFormatMark` with `numericTimeSettings` to produce a time variable with numeric values and a UDUNITS compatible unit.
238
239
* If you do not specify a coordinate variable, one must exist in each of the nested datasets, and the coordinate values will be read from it, just like any other aggregation variable.
239
240
In this case, when the units of the aggregation coordinate change on the existing coordinate variables, you must add **timeUnitsChange=\"true\"** on the aggregation element:
0 commit comments