-
Notifications
You must be signed in to change notification settings - Fork 50
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
Projection MCD43C4 #204
Comments
Hi, this is reasonably related to recent updates to Could you please share your session info ? Lorenzo |
Hi, Thanks for the quick reply, this is my session info: R version 3.6.0 (2019-04-26) Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
Ok..,, I may have an idea about what's happening. Lorenzo |
How am I supposed to share these files? When I try to add them, I get a notification that this file type is not supported here. |
I converted the JSON file to a txt file so I could share them, is this okay? I don't know how to share a shapefile here, so here is some information on it:
|
thanks. To share the shapefile, you could try compressing it to zip (all 3/5 files) and attach it. |
Aha thank you, here is my shapefile: |
Hi, Would you have any idea how to solve my problem? Johanna |
sorry - I had very little time, these days. I'll try to have a look as soon as i can. Lorenzo |
Ok, I can replicate this: looking into it now. |
It appears that gdalbuildvrt does not recognize correctly anymore the "corners" of the HDF files in 4008 projection.
gives:
, that is completely wrong. Would you be able to test this also on your machine? If that is the case, I will have to find a way to reassign the corner coordinates before processing. Lorenzo |
Hi, I used this code in R instead as it didn't work in the command prompt:
And this is what I got back (I deleted most lines to make it more clear): |
to see what I am needing, you should run the command on an SDS. Something like.
should work. |
Hi, |
an SDS is one of the subdatasets of an HDF file. can you share your error message? Lorenzo |
Thanks, I was able to specify a SDS in R and then I got the following message: [81] "Corner Coordinates:" |
Yes, same problem, apparently.... Can you tell me which GDAL version you have installed? Lorenzo |
My R rgdal version is 1.5-10 and it uses GDAL version 3.0.4. |
OK. same here... It's probably a regressione related to changes in GDAL. I'll see if I can manage a quick fix. Lorenzo |
Hi Lorenzo, Having a quick glimpse at your functions I have noted the following:
I can't provide the used json now since I don't have acces to the VM of the colleague who has encountered this problem. But could try to get hold of it, if it helps you. Sorry this was just a quick review from my side. No extensive testing. Forgive me if I have missed something or am completely wrong. |
Hi @przell thanks for signaling this. I do not think that what iyoiu reported is the culprit, though, because "output_proj4" is automatically converted to a crs object already in MODIStps() main function (line 396). To understand what's happening, I'd need to have a look at the processing parameters. In particular MODIS product, output resolution, output bounding box. Could you provide me that info? |
Hi Lorenzo, |
I probably found a solution for you problem - I'll provide a fix soon for you to test. |
I pushed a patch to github - ca you try installing from github and see if it solves your issue?
|
Yes it worked perfectly, thank you so much! |
Thanks for the quick fix!
MODIStsp_GQ_online_linux.json:
Best, |
your problem is a different one that I will have to investigate. Could you please open a new issue? Closing this now. Lorenzo |
@przell In the meantime, I tested on my machine with your options file, and everything seems to work fine. |
Here are the spatial dependencies:
And here is the session Info:
I hope this helps. Thanks for the support! |
You seem to have a quite old version of the "raster" package. Could you try to update it and see if it solves the issue? Lorenzo |
Hello,
I have used MODIStsp version 1.3.9 successfully before to download MCD43C4 images. Right now I am working on a new computer and I downloaded the newest MODIStsp version 1.4.0, but I am unable to download these same images.
The difference seems to be with the native output projection in the GUI. In the new version this just says '4008', while in the older version it said '+init=epsg:4008 +proj=longlat +ellps=clrk66 +no_defs'. When I try to load the extent from the same spatial file, I now get the following error message:
'Error in st_crs.character(out_proj_crs) : invalid crs: 4008'
Whether I manually change the projection or not and then start to download the images, I always get the following error message:
[Wed Jun 03 14:01:22 2020] MODIStsp --> Starting processing
[Wed Jun 03 14:01:22 2020] Accessing http server at: https://e4ftl01.cr.usgs.gov/MOTA/MCD43C4.006/
[Wed Jun 03 14:01:26 2020] Retrieving list of available
Combined
Files for Year 2012[Wed Jun 03 14:01:27 2020] HDF File: MCD43C4.A2012001.006.2016194224247.hdf already exists on your system. Skipping download!
[Wed Jun 03 14:01:27 2020] [Wed Jun 03 14:01:27 2020] 1 files for date: 2012.01.01 were successfully downloaded!
[Wed Jun 03 14:01:27 2020] Processing Terra Nad_Refl_b1_Red files for date: 2012_01_01
Error in gdal_utils("translate", src_dataset, dst_dataset, opts) :
gdal_utils translate: an error occured
In addition: Warning message:
In CPL_gdaltranslate(source, destination, options, oo) :
GDAL Error 3: Free disk space available is 52379979776 bytes, whereas 1027057032002 are at least necessary. You can disable this check by defining the CHECK_DISK_FREE_SPACE configuration option to FALSE.
I already tried to download the older version of MODIStsp on this computer, but I'm not able to for some reason. Would you know how to solve my problem?
The text was updated successfully, but these errors were encountered: