Skip to content
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

Error when creating *_relief_server.txt #187

Closed
Esteban82 opened this issue Mar 17, 2023 · 3 comments
Closed

Error when creating *_relief_server.txt #187

Esteban82 opened this issue Mar 17, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Esteban82
Copy link
Member

I process the planets_relief data. When I run this codesrv_tiler.sh I found and errors in the file "planet"_relief_server.txt

Here I compare the earth_relief_server.txt. The p for the registration went to another column and displace the rest of the info.

# Data for SRTM 2.5 created by me
/server/earth/earth_relief/	earth_relief_05m_05m/	p	0.5	0	12M	 180	2023-03-08	geo	-	-	SRTM15 Earth Relief at 05x05 arc minutes reduced by Gaussian Cartesian filtering (9.3 km fullwidth)	Tozer et al., 2019 []
/server/earth/earth_relief/	earth_relief_06m_g.grd	06m	g	0.5	0	8.1M	0	2023-03-08	-	-	geo	SRTM15 Earth Relief at 6x6 arc minutes reduced by Gaussian Cartesian filtering (11.2 km fullwidth) [Tozer et al., 2019]
# Data for version 2.4 that is ok.
/server/earth/earth_relief/	earth_relief_05m_p/	05m	p	0.5	0	 11M	180	2022-03-30	-	-	geo	SRTM15 Earth Relief at 05x05 arc minutes reduced by Gaussian Cartesian filtering (9.3 km fullwidth) [Tozer et al., 2019]
/server/earth/earth_relief/	earth_relief_06m_g.grd	06m	g	0.5	0	8.0M	0	2022-03-30	-	-	geo	SRTM15 Earth Relief at 6x6 arc minutes reduced by Gaussian Cartesian filtering (11.2 km fullwidth) [Tozer et al., 2019]

More details

I found the error when I use make mercury-relief. With make, the error stop the proccess and I got a truncated mercury_relief_server.txt. Then, I run the bash srv_tiler.sh and I got these messages which could help find the error:

$ bash scripts/srv_tiler.sh mercury_relief
...
...
Tiling: mercury/mercury_relief/mercury_relief_05m_g.grd split into 2 tiles
Convert subset S90W180 from mercury_relief_05m_g.grd to ./mercury/mercury_relief/mercury_relief_05m_g/S90W180.mercury_relief_05m_g.jp2
Convert subset S90E000 from mercury_relief_05m_g.grd to ./mercury/mercury_relief/mercury_relief_05m_g/S90E000.mercury_relief_05m_g.jp2
mercury_relief_05m_g.grd: Moved to /home/federico/Github/GenericMappingTools/gmtserver-admin/staging/tiled
Tiling: mercury/mercury_relief/mercury_relief_05m_p.grd split into 2 tiles
Convert subset S90W180 from mercury_relief_05m_p.grd to ./mercury/mercury_relief/mercury_relief_05m_p/S90W180.mercury_relief_05m_p.jp2
Convert subset S90E000 from mercury_relief_05m_p.grd to ./mercury/mercury_relief/mercury_relief_05m_p/S90E000.mercury_relief_05m_p.jp2
mercury_relief_05m_p.grd: Moved to /home/federico/Github/GenericMappingTools/gmtserver-admin/staging/tiled
No tiling requested for mercury_relief_06m_g.grd
scripts/srv_tiler.sh: línea 178: printf: 4.3: número no válido
No tiling requested for mercury_relief_06m_p.grd
scripts/srv_tiler.sh: línea 178: printf: 4.3: número no válido
No tiling requested for mercury_relief_10m_g.grd
scripts/srv_tiler.sh: línea 178: printf: 7.1: número no válido
No tiling requested for mercury_relief_10m_p.grd
scripts/srv_tiler.sh: línea 178: printf: 7.1: número no válido
No tiling requested for mercury_relief_15m_g.grd
scripts/srv_tiler.sh: línea 178: printf: 10.7: número no válido
No tiling requested for mercury_relief_15m_p.grd
scripts/srv_tiler.sh: línea 178: printf: 10.7: número no válido
No tiling requested for mercury_relief_20m_g.grd
scripts/srv_tiler.sh: línea 178: printf: 14.2: número no válido
No tiling requested for mercury_relief_20m_p.grd
scripts/srv_tiler.sh: línea 178: printf: 14.2: número no válido
No tiling requested for mercury_relief_30m_g.grd
scripts/srv_tiler.sh: línea 178: printf: 21.3: número no válido
No tiling requested for mercury_relief_30m_p.grd
scripts/srv_tiler.sh: línea 178: printf: 21.3: número no válido
No tiling requested for mercury_relief_01d_g.grd
scripts/srv_tiler.sh: línea 178: printf: 42.6: número no válido
No tiling requested for mercury_relief_01d_p.grd
scripts/srv_tiler.sh: línea 178: printf: 42.6: número no válido
File with gmt_data_server.txt section: mercury_relief_server.txt left in staging folder

The mercury_relief_server.txt looks like this:

#
# Messenger Mercury Relief
#
/server/mercury/mercury_relief/	mercury_relief_01m_01m/	g	0.5	0	226M	  30	2023-03-17	@mercury_relief.cpt	-	-	Messenger Mercury Relief at 01x01 arc minutes reduced by Gaussian Cartesian filtering (0.8 km fullwidth)	Becker et al., 2016 []
/server/mercury/mercury_relief/	mercury_relief_01m_01m/	p	0.5	0	226M	  30	2023-03-17	@mercury_relief.cpt	-	-	Messenger Mercury Relief at 01x01 arc minutes reduced by Gaussian Cartesian filtering (0.8 km fullwidth)	Becker et al., 2016 []
/server/mercury/mercury_relief/	mercury_relief_02m_02m/	g	0.5	0	62M	  60	2023-03-17	@mercury_relief.cpt	-	-	Messenger Mercury Relief at 02x02 arc minutes reduced by Gaussian Cartesian filtering (1.5 km fullwidth)	Becker et al., 2016 []
/server/mercury/mercury_relief/	mercury_relief_02m_02m/	p	0.5	0	62M	  60	2023-03-17	@mercury_relief.cpt	-	-	Messenger Mercury Relief at 02x02 arc minutes reduced by Gaussian Cartesian filtering (1.5 km fullwidth)	Becker et al., 2016 []
/server/mercury/mercury_relief/	mercury_relief_03m_03m/	g	0.5	0	29M	  90	2023-03-17	@mercury_relief.cpt	-	-	Messenger Mercury Relief at 03x03 arc minutes reduced by Gaussian Cartesian filtering (2.2 km fullwidth)	Becker et al., 2016 []
/server/mercury/mercury_relief/	mercury_relief_03m_03m/	p	0.5	0	29M	  90	2023-03-17	@mercury_relief.cpt	-	-	Messenger Mercury Relief at 03x03 arc minutes reduced by Gaussian Cartesian filtering (2.2 km fullwidth)	Becker et al., 2016 []
/server/mercury/mercury_relief/	mercury_relief_04m_04m/	g	0.5	0	17M	 180	2023-03-17	@mercury_relief.cpt	-	-	Messenger Mercury Relief at 04x04 arc minutes reduced by Gaussian Cartesian filtering (2.9 km fullwidth)	Becker et al., 2016 []
/server/mercury/mercury_relief/	mercury_relief_04m_04m/	p	0.5	0	17M	 180	2023-03-17	@mercury_relief.cpt	-	-	Messenger Mercury Relief at 04x04 arc minutes reduced by Gaussian Cartesian filtering (2.9 km fullwidth)	Becker et al., 2016 []
/server/mercury/mercury_relief/	mercury_relief_05m_05m/	g	0.5	0	12M	 180	2023-03-17	@mercury_relief.cpt	-	-	Messenger Mercury Relief at 05x05 arc minutes reduced by Gaussian Cartesian filtering (3.6 km fullwidth)	Becker et al., 2016 []
/server/mercury/mercury_relief/	mercury_relief_05m_05m/	p	0.5	0	12M	 180	2023-03-17	@mercury_relief.cpt	-	-	Messenger Mercury Relief at 05x05 arc minutes reduced by Gaussian Cartesian filtering (3.6 km fullwidth)	Becker et al., 2016 []
/server/mercury/mercury_relief/	mercury_relief_06m_g.grd	06m	g	0.5	0	8,0M	0	2023-03-17	-	-	@mercury_relief.cpt	Messenger Mercury Relief at 6x6 arc minutes reduced by Gaussian Cartesian filtering (4 km fullwidth) [Becker et al., 2016]
/server/mercury/mercury_relief/	mercury_relief_06m_p.grd	06m	p	0.5	0	8,0M	0	2023-03-17	-	-	@mercury_relief.cpt	Messenger Mercury Relief at 6x6 arc minutes reduced by Gaussian Cartesian filtering (4 km fullwidth) [Becker et al., 2016]
/server/mercury/mercury_relief/	mercury_relief_10m_g.grd	10m	g	0.5	0	3,1M	0	2023-03-17	-	-	@mercury_relief.cpt	Messenger Mercury Relief at 10x10 arc minutes reduced by Gaussian Cartesian filtering (7 km fullwidth) [Becker et al., 2016]
/server/mercury/mercury_relief/	mercury_relief_10m_p.grd	10m	p	0.5	0	3,1M	0	2023-03-17	-	-	@mercury_relief.cpt	Messenger Mercury Relief at 10x10 arc minutes reduced by Gaussian Cartesian filtering (7 km fullwidth) [Becker et al., 2016]
/server/mercury/mercury_relief/	mercury_relief_15m_g.grd	15m	g	0.5	0	1,5M	0	2023-03-17	-	-	@mercury_relief.cpt	Messenger Mercury Relief at 15x15 arc minutes reduced by Gaussian Cartesian filtering (10 km fullwidth) [Becker et al., 2016]
/server/mercury/mercury_relief/	mercury_relief_15m_p.grd	15m	p	0.5	0	1,5M	0	2023-03-17	-	-	@mercury_relief.cpt	Messenger Mercury Relief at 15x15 arc minutes reduced by Gaussian Cartesian filtering (10 km fullwidth) [Becker et al., 2016]
/server/mercury/mercury_relief/	mercury_relief_20m_g.grd	20m	g	0.5	0	866K	0	2023-03-17	-	-	@mercury_relief.cpt	Messenger Mercury Relief at 20x20 arc minutes reduced by Gaussian Cartesian filtering (14 km fullwidth) [Becker et al., 2016]
/server/mercury/mercury_relief/	mercury_relief_20m_p.grd	20m	p	0.5	0	864K	0	2023-03-17	-	-	@mercury_relief.cpt	Messenger Mercury Relief at 20x20 arc minutes reduced by Gaussian Cartesian filtering (14 km fullwidth) [Becker et al., 2016]
/server/mercury/mercury_relief/	mercury_relief_30m_g.grd	30m	g	0.5	0	413K	0	2023-03-17	-	-	@mercury_relief.cpt	Messenger Mercury Relief at 30x30 arc minutes reduced by Gaussian Cartesian filtering (21 km fullwidth) [Becker et al., 2016]
/server/mercury/mercury_relief/	mercury_relief_30m_p.grd	30m	p	0.5	0	412K	0	2023-03-17	-	-	@mercury_relief.cpt	Messenger Mercury Relief at 30x30 arc minutes reduced by Gaussian Cartesian filtering (21 km fullwidth) [Becker et al., 2016]
/server/mercury/mercury_relief/	mercury_relief_01d_g.grd	01d	g	0.5	0	118K	0	2023-03-17	-	-	@mercury_relief.cpt	Messenger Mercury Relief at 1x1 arc degrees reduced by Gaussian Cartesian filtering (42 km fullwidth) [Becker et al., 2016]
/server/mercury/mercury_relief/	mercury_relief_01d_p.grd	01d	p	0.5	0	118K	0	2023-03-17	-	-	@mercury_relief.cpt	Messenger Mercury Relief at 1x1 arc degrees reduced by Gaussian Cartesian filtering (42 km fullwidth) [Becker et al., 2016]
@Esteban82 Esteban82 added the bug Something isn't working label Mar 17, 2023
@Esteban82 Esteban82 self-assigned this Mar 17, 2023
Esteban82 referenced this issue Mar 18, 2023
* Optimize planetry recipes for keeping highest resolution

See #171 for background.  I have solved the issue by determining the exact increment and tile size required for the highest resolution, which gets a name based on the floor of the actual increment.  Need floor since 2.56 cannot be rint to 3 since we also will make a 03m grid.
Testing this now but seems to work so want to get these into the repo for further testing.

* Update date

* Update mercury_relief.recipe

Co-authored-by: Federico Esteban <[email protected]>
Esteban82 added a commit that referenced this issue Mar 18, 2023
See #187 for details. 
With #174 a typo was made when editting this file. The variable $REG  was replaced by $IREG which doesn't exist. I changed back to $REG.
PaulWessel pushed a commit that referenced this issue Mar 18, 2023
See #187 for details. 
With #174 a typo was made when editting this file. The variable $REG  was replaced by $IREG which doesn't exist. I changed back to $REG.
@Esteban82
Copy link
Member Author

Fix by #188 .

@PaulWessel
Copy link
Member

Suspect language settings.
What does echo $LANG tell you? Perhaps these scripts need to have a
LANG=C
at the top to ensure it is run with the intended decimal system etc.

@Esteban82
Copy link
Member Author

The issue was already fix.

But maybe it is a good idea to add LANG=C in the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants