Giter VIP home page Giter VIP logo

Comments (4)

joellenb avatar joellenb commented on August 28, 2024

FastTilePlot and FastAreaTilePlot called the same code for menu items including exporting a Shapefile. Split the code such that the the FastTilePlot function will be called for tile plots and the FastAreaTilePlot function will be called for the areal interpolation plots. The new function to save a Shapefile for a FastAreaTilePlot is not yet written.

from verdi.

systemsgo avatar systemsgo commented on August 28, 2024

This is working in shapefile_mpas

from verdi.

lizadams avatar lizadams commented on August 28, 2024

using VERDI_2.0_beta_linux64_20190623.tar.gz
verified that this works correctly for the CCTM file using the following script.

#!/bin/csh -f

#script for testing command line options

echo 'running verdi_script_areal.csh'
setenv verdi_dir /proj/ie/apps/longleaf/VERDI_2.0_jun_23/VERDI_2.0_beta
cd $verdi_dir

foreach species ( O3 )
./verdi.sh \
#         -f $verdi_dir/data/model/history.2013-07-10.nc \
          -f $verdi_dir/data/model/CCTM_N1a_drydep_O3.20060701 \
         -s "${species}[1]" \
#          -quit
end

File > Save as Shapefile, then loaded it into QGIS to verify that the data matches the Areal Interpolation Plot.
Screen Shot 2019-06-25 at 10 19 08 AM
Screen Shot 2019-06-25 at 10 19 24 AM

However, If I try to do the same thing with an MPAS file, the data that is exported as a shapefile is the mpas cell data, not the areal interpolation data.
Screen Shot 2019-06-25 at 10 23 13 AM
This shows the precipw variable in QGIS, and it doesn't match the areal interpolation plot. It matches the Tile Plot.

Screen Shot 2019-06-25 at 10 28 18 AM

Screen Shot 2019-06-25 at 10 34 15 AM

from verdi.

lizadams avatar lizadams commented on August 28, 2024

The shapefile export for the MPAS areal interpolation plot doesn't work. The Shapefile that is saved is of the Tile Plot, but it does seem to use the extent of the Areal Interpolation plot (the huc03.shp covers only the SE region.) The data doesn't appear to match the areal interpolation plot because there are values over the atlantic ocean, and the areal interpolation plot only has values over the continental US.
Areal interpolation plot created using the following script:
#!/bin/csh -f

#script for testing command line options

echo 'running verdi_script_areal.csh'
setenv verdi_dir /applications/VERDI_2.1
cd $verdi_dir

foreach species ( qv )
./verdi.sh
-f $verdi_dir/data/model/history_qv_only.2016-07-04_00UTC.nc
-s "${species}[1]" \

-quit

end
Then you need to load the area file
/applications/VERDI_2.1/data/hucRegion/huc03.shp

Then create an areal interpolation plot.
Then save the areal interpolation plot as a shapefile.

Screen Shot 2021-12-08 at 6 03 28 PM

Load saved shapefile into QGIS and then select Properties
Change Simple Fill to Categorized
Then Select Classify
A plot is generated as follows:
Screen Shot 2021-12-08 at 6 07 00 PM

I would expect that if the plot was of the areal interpolation values, then there wouldn't be any cells with color over the ocean.

@systemsgo - Please take a look and see if you agree that this still needs to be fixed.

from verdi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.