Queries regarding force-tile-extent and associated issues #353
-
|
I went to the documentation for force-tile-extent (it seems to be old. More on this below), and for this a datacube-definition.prj was needed (as shown here). So, I made one by writing the following and saving it using unicode style file: PROJCS["WGS 84 / India NSF LCC",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Lambert_Conformal_Conic_2SP"],PARAMETER["latitude_of_origin",24],PARAMETER["central_meridian",80],PARAMETER["standard_parallel_1",12.472955],PARAMETER["standard_parallel_2",35.1728044444444],PARAMETER["false_easting",4000000],PARAMETER["false_northing",4000000],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["Easting",EAST],AXIS["Northing",NORTH],AUTHORITY["EPSG","7755"]] I have faced a few issues. I will explain them in detail: The projection I chose was EPSG:7755. When I run the command However, when I Copy Text the wkt from https://epsg.io/7755 to get it in one line, and run the "ERROR 1: missing [ But that doesn't make sense. I validated the wkt in QGIS too. Nothing's missing. Do you know why this happens? I had created a bounding box for my study area to extract the north-west point's geographic longitude and latitude (in WGS84 format - 93.9574520
"Usage: force-tile-extent [-hvi] [-d datacube-dir] [-a allow-list] [-j jobs] input-vector optional: -d = directory of existing datacube Positional arguments:
So, I modified the code to and got the following ouput: Suggested Processing extent parameters: Maybe, you can give this as an example for your documentation page.
48 So, I went through the documentation and it has already been addressed in the "Frequently Asked Questions" "The tile IDs of the processed Level 2 data have negative numbers, e.g. X-100_Y0100. Make sure that the origin of the target grid (ORIGIN LAT / ORIGIN LON) is in the North-West of your study area. Potentially, you have accidentally swapped latitude and longitude. Note that a geographic location in the North-West is not necessarily North-West in the output coordinate system, too (for an example see Fig. 14). Although not recommended, higher-level FORCE functions should be able to digest negative tile numbers (note that we did not test this exhaustively)." I couldn't find Fig. 14. Could you share the link with me? I am trying to figure out why I am getting negative tile numbers even though I selected the north-west points of the bounding box (attaching it here) Any idea why I am still getting negative tile numbers?
Thanks in advance for all the help. With kind regards, Originally posted in #350 (reply in thread) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi @paulvpop, thanks for opening a new thread. There are multiple sub-questions here. I try to break it down.
Validate Succeeds PROJ.4 : +proj=lcc +lat_0=24 +lon_0=80 +lat_1=12.472955 +lat_2=35.1728044444444 +x_0=4000000 +y_0=4000000 +datum=WGS84 +units=m +no_defs OGC WKT2:2018 :
|
Beta Was this translation helpful? Give feedback.
Hi @paulvpop,
thanks for opening a new thread. There are multiple sub-questions here. I try to break it down.
yes, it seems that the documentation of
force-tile-extentis outdated. I have this on my to-do list, though on a lower priority for the moment.If you want to have an overview of different programs, best use
force-info. This is not 100% finished, but still gives you a good overview of what is there, e.g. this one:force-cube-init: Initialize a datacube definition. This tool allows you to generate a datacube-definition.prj based on a Level 2 parameter file without actually running the preprocessing before.this might be related to how parameters are passed through Docker. If …