-
Notifications
You must be signed in to change notification settings - Fork 179
add non time dependent variable to FMRC #1060
Comments
I got an answer for this problem from @cofinoa in a different forum, so I am including his answer here (in case someone faces a similar problem) and closing the Issue. Hi,
No. It's because the prototype dataset been chosen by the featureCollection doesn't contain those variables. By default the featureCollection choose the penultimate dataset/file to build-up the resulting dataset with all dataset/files in the collection.
You can change the default prototype dataset by: and append the missing variables to the first dataset/file in the collection, i.e. Then they should be "appear" in the resulting dataset. From the doc [1] you can read
....
In my case I'm reluctant to use FMRC because you have less control on building the resulting dataset. With pure ncml and aggregations you have better control on resulting dataset and good performance if you control cache and definition of the coordinate values. Regards Antonio |
Hello, I have a FMRC aggregation of several yearly files with the usual variables (ssh,t,s,u,v), e.g.
<featureCollection name="mercator" featureType="FMRC" harvest="true" path="mercator">
<collection spec="/home/opendap/datasets/mercator/**/mercator_#yyyy#\.nc"/>
<update startup="true"/>
<netcdf xmlns="http:https://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
</netcdf>
<fmrcConfig regularize="false" datasetTypes="Best Files" />
</featureCollection>
I have a different file with non time dependent variables (bathymetry, sea land mask, etc) and would like to have these variables also appear in the FMRC. I tried just renaming the file to mercator_1970.nc hoping that the
<collection spec="/home/opendap/datasets/mercator/**/mercator_#yyyy#\.nc"/>
would catch it, but it didn't work. My guess is that doesn't work because there is no time dimension in this file and time is necessary for FMRC aggregation.Besides appending the non time dependent variables to every single file with
ncks -A bathymetry_mask.nc mercator_YYYY.nc
is there a way using ncml to join all the files (with and without time dimensions) in the FMRC?
Also, I am adamant in using FMRC because my tests showed that is a lot faster to retrieve data than using aggregation joinNew or joinExisting.
Sorry if this is not the correct place to ask ncml related questions, but I couldn't find a specific repository for ncml.
Thank you.
The text was updated successfully, but these errors were encountered: