Using EDDType EDDGridSideBySide

171 views
Skip to first unread message

Hui Shi - NOAA Affiliate

unread,
Jan 9, 2024, 6:38:46ā€ÆPMJan 9
to ERDDAP
Hello all!
I'm trying toĀ combine two or more datasets with shared axises and serve them as oneĀ datasetĀ on ERDDAP, i.e., to have multiple options in the "Color:" dropdown menu. I am starting with twoĀ child datasets with different dataset IDs, andĀ was looking at the classĀ EDDGridSideBySide.Ā 

When I try to generate the dataset xml file, the list of EDDType options does not include EDDSideBySide. Is there a way to add it to the list? After adding this dataset type,Ā how/where could I specify the two child datasetsĀ in the xml file? And is it correct to put all the netcdf files (for two different variables) in one folder?

Does anyone perhaps have experience with this erddap dataset type? Your help is much appreciated!

Best,
Daisy

Roy Mendelssohn - NOAA Federal

unread,
Jan 9, 2024, 7:19:37ā€ÆPMJan 9
to Hui Shi - NOAA Affiliate, ERDDAP
Hi Daisy:

I can send you some examples tomorrow. But can you provide more info as about the datasets - ie what axes they share, what if any is the overlap in the coordinaet valuse and any attempts you have made to combine them. Generally the more information you can provide about the problem the better.

Thanks,

-Roy
> --
> You received this message because you are subscribed to the Google Groups "ERDDAP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to erddap+un...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/erddap/a272bffa-9217-4209-9a66-e6776138d91fn%40googlegroups.com.

**********************
"The contents of this message do not reflect any position of the U.S. Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
***Note new street address***
110 McAllister Way
Santa Cruz, CA 95060
Phone: (831)-420-3666
Fax: (831) 420-3980
e-mail: Roy.Men...@noaa.gov www: https://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected"
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.

bobsimons2.00

unread,
Jan 10, 2024, 12:47:13ā€ÆPMJan 10
to ERDDAP
Daisy, although you didn't explicitly say it, I gather that you wonder why there is no EDDGridSideBySide in the GenerateDatasetsXml program. The reason is that EDDGridSideBySide works with any type of EDDGrid dataset. So the way to create one of these datasets is to create the 2 (or more) datasets (usually starting with GenerateDatasetsXml for each of them) that you want to combine; get them working independently in ERDDAP; then put them both within an EDDGridSideBySide dataset that you create, by hand in a text editor, in datasets.xml. (See the skeleton xml for EDDGridSideBySide in setupDatasetsXml.html that shows the required structure of the xml.)Ā  There might be an example in the datasets.xml that comes in ErddapContent.zip.Ā 

Hui Shi - NOAA Affiliate

unread,
Jan 12, 2024, 5:38:19ā€ÆPMJan 12
to bobsimons2.00, Roy Mendelssohn - NOAA Federal, ERDDAP
Thank you Roy and Bob!Ā 
I was able to combine the two datasets and serve them as one on ERDDAPĀ by adding selected skeleton XMLĀ in the dataset.xml file. The EDDGridSideBySide is a such nice and convenient feature to use and the examples you shared really helped:Ā https://github.com/BobSimons/erddap/releases/download/v2.22/erddapContent.zip

Best,
Daisy







Roy Mendelssohn - NOAA Federal

unread,
Jan 12, 2024, 6:08:44ā€ÆPMJan 12
to Hui Shi - NOAA Affiliate, bobsimons2.00, ERDDAP
Glad you got it to work. ERDDAP has a lot of nice and somewhat unique features.

-Roy

Hui Shi - NOAA Affiliate

unread,
Jan 12, 2024, 6:18:30ā€ÆPMJan 12
to Roy Mendelssohn - NOAA Federal, bobsimons2.00, ERDDAP
Agreed!šŸ‘šŸ˜Š
Reply all
Reply to author
Forward
0 new messages