Add Attributes to imported remote dataset

18 views
Skip to first unread message

Caio Fonteles

unread,
Oct 22, 2024, 9:00:14 AM10/22/24
to ERDDAP
Hi,

I am trying to add a new attribute to a dataset that I am importing from another erddap (also from my institution).

I am able to import all the datasets if I don't add anything besides sourceUrl. However, if I try to add new attributes the code crashs because there is no content in "addAttributes" tag which has.

here is a snnipet of my datasets.xml:
dataset type="EDDTableFromErddap" datasetID="RS_AR_Parana_Corrientes" active="true">
    <!-- RS_AR_Parana_Corrientes -->
  </dataset>
  <dataset type="EDDTableFromErddap" datasetID="RS_AR_SantaFe_SantaFe" active="true">
    <!-- RS_AR_SantaFe_SantaFe -->
    <addAttributes>
      <att name="project">EMODNET</att>
    </addAttributes>  
  </dataset>
  <dataset type="EDDTableFromErddap" datasetID="RS_AR_Uruguay_Concordia" active="true">
    <!-- RS_AR_Uruguay_Concordia -->
  </dataset>

The code works until RS_AR_Parana_Corrientes and none of the follow datasets are imported to erddap.

do you know what can be causing this issue?

Thanks in advance!

Caio

Marco Alba

unread,
Oct 22, 2024, 9:09:57 AM10/22/24
to ERDDAP
Hi!
From the documentation (https://erddap.github.io/setupDatasetsXml.html#EDDFromErddapNoAddAttributes) you cannot add "<addAttributes>" section to the dataset:

No <addAttributes>, <axisVariable>, or <dataVariable> - Unlike other types of datasets, EDDTableFromErddap and EDDGridFromErddap datasets don't allow global <addAttributes>, <axisVariable>, or <dataVariable> sections in the datasets.xml for that dataset

Kind regards

Marco

Reply all
Reply to author
Forward
0 new messages