Comments (6)
Can you try using relative file names?
Have you seen this explanation?
https://github.com/gher-ulg/DIVAnd.jl/blob/master/src/SDNMetadata.jl#L702
How can we make it clearer?
from divand.jl.
from divand.jl.
The idea is to the have a similar directory tree locally than on the remote server so that the pathname match.
Can you try to do the following?
- in your work-directory
/home/menashe/netcdf/
(for example), can you create the following sub-directoriesBaltic Sea/Autumn (September-November) - 6-years running averages
Baltic Sea/Summer (June-August) - 6-years running averages
Baltic Sea/Spring (March-May) - 6-years running averages
Baltic Sea/Winter (December-February) - 6-years running averages
- move the files
Water_body_silicate.4Danl.nc
in the corresponding directory - Note the tools
rsync
allows you to easily mirror a directory structure from a remote server:
rsync -avzu [email protected]:"/production/apache/data/emodnet-domains/Baltic\ Sea" /home/menashe/netcdf/
- In julia, change to directory "Baltic Sea" in your work directory:
cd("/home/menashe/netcdf/Baltic Sea")
files = ["Winter (December-February) - 6-years running averages/Water_body_silicate.4Danl.nc","Spring (March-May) - 6-years running averages/Water_body_silicate.4Danl.nc","Summer (June-August) - 6-years running averages/Water_body_silicate.4Danl.nc","Autumn (September-November) - 6-years running averages/Water_body_silicate.4Danl.nc"]
@show files
DIVAnd.divadoxml(files,"Water_body_silicate","EMODNET-chemistry","export.zip","test.xml";
ignore_errors = true,
additionalvars = Dict("abstract" => "Here goes the abstract"),
WMSlayername = ["winter","spring","summer","autumn"]
)
Double-check that the file names are relative files (i.e. not starting with /home ...)
The issue with the multi-season XML files is that we must tell divadoxml also the part about Autumn (September-November) - 6-years running averages
to construct correct URLs.
from divand.jl.
from divand.jl.
To override the NetCDF_URL use the following:
DIVAnd.divadoxml(files,"Water_body_silicate","EMODNET-chemistry","export.zip","test2.xml";
ignore_errors = true,
additionalvars = Dict("abstract" => "Here goes the abstract", "NetCDF_URL" => "http://hostname/path/to/the/zip/file"),
WMSlayername = ["winter","spring","summer","autumn"]
)
By the way, do not use the function glob that I mentioned earlier because the order of the season is then alphabetical and not chronological.
The resulting XML file has:
- 1 NetCDF link
- 4 OpenDAP links (1 per season)
- 8 WMS links (4 seasons and for the maps "observations" and "masked analysis")
This is committed to the master 4f4ba08 . CI checks are running https://travis-ci.org/gher-ulg/DIVAnd.jl/builds/460271579.
Attached is the produced XML file.
test2.xml.txt
from divand.jl.
Thank you!
from divand.jl.
Related Issues (20)
- Removing duplicates from a unique source of data HOT 3
- Function `fit( )` not used HOT 4
- MethodError when trying to run diva3d with fitcorrlen = true HOT 28
- OutOfMemoryError() error in Black Sea product HOT 3
- MethodError after uncomment some lines from DIVAnd_save.jl HOT 10
- Test "test_vocab.jl" fails HOT 2
- Http 500 Internal Server Error[π] HOT 3
- [π]High memory consumption and inability to use divandgo or conjugate gradient inversion. HOT 16
- [π] Getting lists of data points that are used for each depth layer HOT 2
- [DOC] documentation of `diffusion` function HOT 11
- [Help needed] Correlation length and lengraddepth HOT 16
- Background of all observations over time HOT 15
- [π] When running DIVAnd, artifacts appear which seem to be linked to the bathymetry HOT 33
- L-shape criterium[π] HOT 1
- Sigma coordinates ?[π] HOT 11
- Unhandled Task ERROR: EOFError: read end of file HOT 5
- [π] DomainError when use background HOT 4
- "gradient" effect on DIVAnd maps[π] HOT 20
- 'data access' and 'WEB_visualisation' attributes not correct anymore HOT 3
- [Help needed]How to create and use my bathymetry fileοΌ HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from divand.jl.