Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Can I get just vertical section plot png instead with axis ? #1018

Closed
sidd3sh opened this issue Jan 29, 2018 · 4 comments
Closed

Can I get just vertical section plot png instead with axis ? #1018

sidd3sh opened this issue Jan 29, 2018 · 4 comments

Comments

@sidd3sh
Copy link

sidd3sh commented Jan 29, 2018

Hi there,

I need vertical section png file without chart (without axis) to render it directly as an image. Can you please help me how can I achieve in thredds as it is generating chart for me?

This is the url i'm trying in my local:

https://localhost:8080/thredds/wms/testAll/ModelTemperature.nc?REQUEST=GetVerticalSection&LAYER=TEMP&CRS=CRS:84&ELEVATION=-145&TIME=2009-12-29T12:00:00.0000Z&LINESTRING=65.06689453125%2014.340454101563,75.20556640625%200.6182861328125&FORMAT=image/png&COLORSCALERANGE=-50,50&NUMCOLORBANDS=20&VERSION=1.1.1&PALETTE=ferret&LOGSCALE=false

Attaching the image file which is getting generate.

potential temperature

But image which I want is as below.

render

@sidd3sh sidd3sh closed this as completed Jan 30, 2018
@sidd3sh sidd3sh reopened this Jan 30, 2018
@lesserwhirls
Copy link
Collaborator

Greetings @Siddeshi - unfortunately, I do not believe there is a way to ask the wms server to return just the 2D color image.

@sidd3sh
Copy link
Author

sidd3sh commented Jan 31, 2018

Hi @lesserwhirls thanks for the information, I wanted just 2D image, @guygriffiths suggested me to use thredds APIs to get the subset of the data and use some other wms server which provides 2D images, so that am trying to debug thredds code I found that it uses edal-java.
The log which is getting generated like this.

DEBUG - thredds.servlet.DatasetHandler - DatasetHandler wants testAll/ModelTemperature.nc DEBUG - thredds.catalog.InvDatasetScan - translatePathToLocation(): url dsPath= testAll/ModelTemperature.nc to dataset dsPath=/public/testdata/ModelTemperature.nc DEBUG - ucar.nc2.NetcdfFile - Using IOSP ucar.nc2.iosp.netcdf3.N3raf DEBUG - uk.ac.rdg.resc.edal.cdm.CdmUtils - Creating coordinate system objects DEBUG - uk.ac.rdg.resc.ncwms.controller.AbstractWmsController - Got 2 control points DEBUG - uk.ac.rdg.resc.edal.util.Utils - Transforming 500 points from CRS:WGS84 to WGS84(DD) DEBUG - uk.ac.rdg.resc.edal.util.Utils - Transforming 1000 points from CRS:WGS84 to WGS84(DD) DEBUG - uk.ac.rdg.resc.ncwms.controller.AbstractWmsController - With 1000 transect points, we'll sample 74 grid points DEBUG - uk.ac.rdg.resc.ncwms.controller.AbstractWmsController - Using transect consisting of 500 points DEBUG - uk.ac.rdg.resc.edal.cdm.PixelMap - Creating PixelMap: Source CRS: WGS84(DD), Target CRS: CRS:WGS84 DEBUG - uk.ac.rdg.resc.edal.cdm.PixelMap - SourceGrid class: class uk.ac.rdg.resc.edal.coverage.grid.impl.RectilinearGridImpl, targetDomain class: class uk.ac.rdg.resc.edal.coverage.domain.impl.HorizontalDomain

I wanted some clarification; I went through edal-java I could see the class CdmUtils which is implemented in the package uk.ac.rdg.resc.edal.util.cdm, but in the log it is showing different package uk.ac.rdg.resc.edal.cdm.CdmUtils.

  1. My question is, does thredds use the external jar (edal-cdm) or customising as per the requirement ?
  2. Is it possible to use thredds for reading subset of data from necdf file and invoke some other wms server API for 2D image? How can I achieve this ?

@guygriffiths
Copy link
Contributor

@Siddeshi - To clarify, you could use THREDDS to get a subset of the data, but you will not be able to plot it using a WMS server - that's not what WMS is designed for. I suggested that you use another package, by which I meant e.g. ncview, python, MATLAB etc.

I guess you are using a 4.x version of THREDDS? That depends on an older version of EDAL, hence the diffference package.

@sidd3sh
Copy link
Author

sidd3sh commented Jan 31, 2018

@guygriffiths thank you so much for the clarification. Sure will look into other packages.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants