-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to read HDF4 file? #356
Comments
Try this. The logic to be followed is that explained in GDAL docs to access to subdatasets.
|
Maybe there is an error about my gmt, julia> out = gmt("read -Tg " * file);
ERROR: could not load library "libgmt"
libgmt.so: 无法打开共享对象文件: 没有那个文件或目录 # I guess it means Can't open share object file, No such file or directory.
Stacktrace:
[1] GMT_Create_Session at /home/usrname/.julia/packages/GMT/VY9y7/src/libgmt.jl:6 [inlined] (repeats 2 times)
[2] gmt(::String) at /home/usrname/.julia/packages/GMT/VY9y7/src/gmt_main.jl:125
[3] top-level scope at none:0
julia> versioninfo()
Julia Version 1.4.1
Commit 381693d3df* (2020-04-14 17:20 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-8.0.1 (ORCJIT, haswell)
Environment:
JULIA_NUM_THREADS = 4
My system is Ubuntu 20.04, I use |
When I run |
Ah, you are on Linux and probably did not install GMT on a standard place so the OS does not know where the GMT shared libs are. Try this from the README.md
|
Sorry for replying late, I run the code at terminal:
and install gmt like ythis:
What does the meaning of "/Users/j/programs/gmt6/lib"? Error in detail: julia> file = "2014068005444_41824_CS_2B-GEOPROF_GRANULE_P1_R05_E06_F00.hdf=gd?HDF4_EOS:EOS_SWATH:\"2014068005444_41824_CS_2B-GEOPROF_GRANULE_P1_R05_E06_F00.hdf\""
"2014068005444_41824_CS_2B-GEOPROF_GRANULE_P1_R05_E06_F00.hdf=gd?HDF4_EOS:EOS_SWATH:\"2014068005444_41824_CS_2B-GEOPROF_GRANULE_P1_R05_E06_F00.hdf\""
julia> out = gmt("read -Tg " * file * ":2B-GEOPROF:CPR_Cloud_mask");
ERROR: could not load library "libgmt"
libgmt.so: 无法打开共享对象文件: 没有那个文件或目录
Stacktrace:
[1] GMT_Create_Session at /home/usrname/.julia/packages/GMT/VY9y7/src/libgmt.jl:6 [inlined] (repeats 2 times)
[2] gmt(::String) at /home/usrname/.julia/packages/GMT/VY9y7/src/gmt_main.jl:125
[3] top-level scope at REPL[16]:1
caused by [exception 1]
UndefVarError: API not defined
Stacktrace:
[1] gmt(::String) at /home/usrname/.julia/packages/GMT/VY9y7/src/gmt_main.jl:122
[2] top-level scope at REPL[16]:1 |
It means the path to the directory where you have Now, I have no idea why some people need to do that. The Travis CI tests run on a Linux machine and they run fine. |
Can I close this issue? |
I see an example for HDF5 as follows:
Now I have a HDF4 file, and I run `gdalinfo "filename.hdf".
I'm a new one to use gmt. I don't know how to use the information to read HDF4 in julia.
Any one can help me? Thank you, guys.
The text was updated successfully, but these errors were encountered: