-
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
Issues related to product version update in #238 #265
Comments
I updated MODIStsp to the latest development version. Now the error above has gone away, but when I try to download "061" version, I get: There is still an assumption somewhere that "006" should exist. "MODIStsp_get_prodlayers.R" line 31. Should the value be "061" instead of "006"? |
I am correctly downloading and processing them. |
No, this is only the default version, but the selected version is passed to the function when called. |
MODIStsp(gui = FALSE,
out_folder = "FireData",
out_folder_mod = "FireDataMod",
selprod = "Burned_Monthly_500m (MCD64A1)",
prod_version = "061",
bandsel = "Burn_Date",
user = "removed",
password = "removed",
start_date = "2001.01.01",
end_date = "2023.12.31",
verbose = TRUE,
spatmeth = "file",
spafile = spatial_filepath,
out_format = "GTiff")
|
I basically updated all "006"-related references to "061" within MCD64A1:
It makes no sense to keep "006" default, since it is no longer available for any product except for MOD44W. |
Ok, there was a bug fixed in 80efcb2. Now it may work also in manual mode.
This is ok in products for which band structure did not change from version 006 to 061.
This is true, I changed that in f8ea3ac. According to this change, tests will probably fail, so it will be necessary to test them before releasing the new master. Thank you |
I tested .xml file with both "006" and "061" versions of data. Now it works - I can download "061" version of data. If I remove "006", I will get the error above. Yes, I need to double-check all the layers too, but this was only to test the principle. The .xml file should work without any reference to "006". |
Do you mean if you remove |
I've modified the XML file as suggested here, but still cannot download v061 of MCD64A1. Any further suggestions how to remedy this?
The command I tried was like this:
And this is the error message I got:
There was no option to select version 061 in the GUI even after updating the XML file. |
@hakimabdi I got it working specifically with MCD64A1. You need to download the latest dev version of MODISTSP before the change. I try to allocate time during next weekend to update all or at least most .xml entries. |
Ok, will do, thanks for your help! |
Thank you @pkautio, when you will have updated the xml please create a PR to the devel branch. For the others, please do not use this thread for different issues. I am sorry ont to be available to provide assistance, as you would have seen. Thank you for your comprehension. |
I have now updated .xml file, which works fine in my environment. Please advice how I can update it? |
If you have experience with GitHub you can open a PR to the develop branch; otherwise, attach here the file. |
Here is the full updated .xml version. I have not checked if there are some new products, but the existing one's should be up-to-date. All 060 versions are removed and 061 version added if it was missing. I personally work with MCD64A1 and the downloading of data was tested with that product. |
Pull request has been made including the .xml updates. |
Dear developers and community, I am trying to download MCD64A1 data (version 061) - see the code below- and I get similar errors (Error in if (prod_opts$tiled == 0) { : argument is of length zero). MODIStsp(gui = FALSE, I've replaced my MODIStsp_ProdOpts.zip file by the one provided here, and also updated the version and still gives me back the same error. Best wishes |
Hi,
|
Thank you so much! |
Thank you @pkautio , I will update the package as soon as possible. |
Fixed in github master version 2.0.10.9000 (6a9eba2). |
I have updated MODIStsp_prodopts.xml.zip with MCD64A1 and deleted old .RData and launched load_prodops. MODIStsp_prodopts.RData is properly updated.
But: I get "Warning: Error in MODIStsp_get_prodlayers: Version 006 is not available for product Burned_Monthly_500m (MCD64A1)." Modistsp seems to assume that 006 should be available for all products. Something else needs to be fixed.
006 has been depreciated for almost all products (even the download folders have been deleted), but MODIStsp seems to be expecting "006" version product information to exist too. MODIStsp should be updated accordingly. 061 should be default.
If you fix this, I can update the .xml for all products.
Originally posted by @pkautio in #238 (comment)
The text was updated successfully, but these errors were encountered: